Problem With DAHDI

Home » Asterisk Users » Problem With DAHDI
Asterisk Users 3 Comments

Hi again!

I tried to attach two VoIP-phones to my new Asterisk 13.14.1 on a Banana PI
with Armbian/Debian 9.

First test was to call a test service that say the time. Works!
Second test was to record my voice and play it again. Works!
Third test was to call the other VoIP-phone. It does NOT work… 🙁

Then I noticed that, by starting, Asterisk says the following messages:

[Feb 15 18:42:54] NOTICE[3428]: loader.c:1446 load_modules: 319 modules will be loaded.
[Feb 15 18:43:01] NOTICE[3428]: res_odbc.c:1089 load_module: res_odbc loaded.
[Feb 15 18:43:12] WARNING[3428]: res_phoneprov.c:1231 get_defaults: Unable to find a valid server address or name.
[Feb 15 18:43:15] NOTICE[3428]: pbx_lua.c:1640 load_or_reload_lua_stuff: Lua PBX Switch loaded. SIP channel loading…
[Feb 15 18:43:24] NOTICE[3428]: chan_skinny.c:8429 config_load: Configuring skinny from skinny.conf
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:4126 dahdi_open: Unable to open ‘/dev/dahdi/channel’: No such file or directory
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:12110 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:17518 build_channels: Unable to register channel ‘1’
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:19041 process_dahdi: Dahdichan ‘1’ failure ignored: ignore_failed_channels.
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:4126 dahdi_open: Unable to open ‘/dev/dahdi/channel’: No such file or directory
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:12110 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:17518 build_channels: Unable to register channel ‘1’
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:19041 process_dahdi: Dahdichan ‘1’ failure ignored: ignore_failed_channels.
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:4126 dahdi_open: Unable to open ‘/dev/dahdi/channel’: No such file or directory
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:12110 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:17518 build_channels: Unable to register channel ‘1’
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:19041 process_dahdi: Dahdichan ‘1’ failure ignored: ignore_failed_channels.
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:4126 dahdi_open: Unable to open ‘/dev/dahdi/channel’: No such file or directory
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:12110 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:17518 build_channels: Unable to register channel ‘1’
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:19041 process_dahdi: Dahdichan ‘1’ failure ignored: ignore_failed_channels.
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:4126 dahdi_open: Unable to open ‘/dev/dahdi/channel’: No such file or directory
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:12110 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:17518 build_channels: Unable to register channel ‘1’
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:19041 process_dahdi: Dahdichan ‘1’ failure ignored: ignore_failed_channels.
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:4126 dahdi_open: Unable to open ‘/dev/dahdi/channel’: No such file or directory
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:12110 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1
[Feb 15 18:43:24] ERROR[3428]: chan_dahdi.c:17518 build_channels: Unable to register channel ‘1’
[Feb 15 18:43:24] WARNING[3428]: chan_dahdi.c:19041 process_dahdi: Dahdichan ‘1’ failure ignored: ignore_failed_channels.
[Feb 15 18:43:28] NOTICE[3428]: confbridge/conf_config_parser.c:2094 verify_default_profiles: Adding default_menu menu to app_confbridge
[Feb 15 18:43:28] NOTICE[3428]: cel_tds.c:452 tds_load_module: cel_tds has no global category, nothing to configure.
[Feb 15 18:43:28] WARNING[3428]: cel_tds.c:557 load_module: cel_tds module had config problems; declining load
[Feb 15 18:43:28] NOTICE[3428]: cel_custom.c:97 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Feb 15 18:43:29] ERROR[3428]: codec_dahdi.c:820 find_transcoders: Failed to open /dev/dahdi/transcode: No such file or directory Asterisk Ready.

it does not seems to be normal, but I can’t understand why /dev/dahdi/channel does not exists… I installed the Paket asterisk-dahdi, of course…

Other question: what does the error about res_phoneprov.c means?

Can someone help me?

Thank you very much!
Luca Bertoncello
(lucabert@lucabert.de)

3 thoughts on - Problem With DAHDI

  • This means that you have configured a dahdi channel in
    /etc/asterisk/chan_dahdi.conf . The default configuration does not include one. Do you have any DAHDI device on the system?

    If /dev/dahdi/channel itself does not exist, it means that the kernel-level support is not loaded (or not even configured). It is generally from the kernel module dahdi, which is an out-of-tree one.

    If you really want it, you may need to run:

    m-a a-i dahdi

    But do you really have a DAHDI device?

  • Tzafrir Cohen schrieb:

    I think not…

    No, I haven’t…

    I remove the configuration

    dahdichan = 1

    for every user and I don’t have any error anymore.

    But if I try to call another VoIP-phone it rings but no voice will be transferred…

    Any idea?
    I tryed to enable the debugging and I see that:

    > 0xaa90a380 — Strict RTP learning after remote address set to: 192.168.200.10:41000
    — Executing [00493517654321@default:1] Dial(“SIP/00493511234567-00000000”, “SIP/00493517654321”) in new stack
    == Using SIP RTP CoS mark 5
    — Called SIP/00493517654321
    — SIP/00493517654321-00000001 is ringing
    > 0xb4606f38 — Strict RTP learning after remote address set to: 192.168.200.11:41000
    — SIP/00493517654321-00000001 answered SIP/00493511234567-00000000
    — Channel SIP/00493517654321-00000001 joined ‘simple_bridge’ basic-bridge <0ef9a447-b1b3-45af-a4af-7c4ac4d10546>
    — Channel SIP/00493511234567-00000000 joined ‘simple_bridge’ basic-bridge <0ef9a447-b1b3-45af-a4af-7c4ac4d10546>
    — Channel SIP/00493517654321-00000001 left ‘simple_bridge’ basic-bridge <0ef9a447-b1b3-45af-a4af-7c4ac4d10546>
    — Channel SIP/00493511234567-00000000 left ‘simple_bridge’ basic-bridge <0ef9a447-b1b3-45af-a4af-7c4ac4d10546>
    == Spawn extension (default, 00493517654321, 1) exited non-zero on ‘SIP/00493511234567-00000000’

    Where is the error?!?

    Thanks Luca Bertoncello
    (lucabert@lucabert.de)

  • Luca Bertoncello schrieb:

    Got it!
    A “little” firewall problem… 🙁

    Regards Luca Bertoncello
    (lucabert@lucabert.de)