I have installed the latest, Asterisk 22.4.1 with DAHDI 3.4.0 on Rocky Linux 9.6. I know I’ve had to change my channel format for PJSIP (from chan_sip), but not sure if there is some difference I am not aware of with the new version..
Some details: I have 2 PRIs connected within the same card (Digium TE420 T1 card). One is set to pri_cpe and the other to pri_net.
Ultimately I need to get this to work via AMI. When I try to make the outdial is seems to create the outgoing channel on the CPE side, but the inbound call never seems to come in on the network side. Here is the error following an attempt via AMI, as shown on CLI:
[Jul 16 10:07:28] WARNING[144731][C-00000020]: chan_dahdi.c:5302 dahdi_confmute: DAHDI confmute(0) failed on channel 4: Invalid argument
[Jul 16 10:07:28] WARNING[144732]: chan_dahdi.c:5302 dahdi_confmute: DAHDI confmute(0) failed on channel 4: Invalid argument
[Jul 16 10:07:28] WARNING[144732]: chan_dahdi.c:5245 restore_gains: Unable to restore gains: Invalid argument
[Jul 16 10:07:28] WARNING[144732]: chan_dahdi.c:4908 reset_conf: Failed to reset conferencing on channel 4: Invalid argument
– Hungup ‘DAHDI/4-1’
– Executing [failed@smailboxes:1] Verbose(“OutgoingSpoolFailed”, “1,Inbound: OutgoingSpoolFailed,failed”) in new stack
Here are my AMI logs:
2025-07-16 09:40:39.263173 ><<<<<<< Action: Originate
2025-07-16 09:40:39.263173 ><<<<<<< Channel: DAHDI/2/7770001
2025-07-16 09:40:39.263173 ><<<<<<< Exten: onenumber
2025-07-16 09:40:39.263173 ><<<<<<< Priority: 7
2025-07-16 09:40:39.263173 ><<<<<<< Timeout: 90000
2025-07-16 09:40:39.263173 ><<<<<<< CallerID: Rocky Dev Sys <5146307878>
2025-07-16 09:40:39.263173 ><<<<<<< Async: yes
2025-07-16 09:40:39.263173 ><<<<<<< Context: smailboxes
2025-07-16 09:40:39.263173 ><<<<<<< Variable: audch=1
2025-07-16 09:40:39.263173 ><<<<<<< ActionID: 145737925
2025-07-16 09:40:39.265400 <>>>>>>> Response: Success
2025-07-16 09:40:39.265400 <>>>>>>> ActionID: 145737925
2025-07-16 09:40:39.265400 <>>>>>>> Message: Originate successfully queued
2025-07-16 09:40:39.265400 <>>>>>>> Event: Newchannel
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: call,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: DAHDI/2-1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Rsrvd
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: phones-custom
2025-07-16 09:40:39.265400 <>>>>>>> Exten: s
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Event: DAHDIChannel
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: call,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: DAHDI/2-1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Rsrvd
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: phones-custom
2025-07-16 09:40:39.265400 <>>>>>>> Exten: s
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> DAHDIGroup: 2049
2025-07-16 09:40:39.265400 <>>>>>>> DAHDISpan: 1
2025-07-16 09:40:39.265400 <>>>>>>> DAHDIChannel: 2
2025-07-16 09:40:39.265400 <>>>>>>> Event: DeviceStateChange
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: call,all
2025-07-16 09:40:39.265400 <>>>>>>> Device: DAHDI/2
2025-07-16 09:40:39.265400 <>>>>>>> State: INUSE
2025-07-16 09:40:39.265400 <>>>>>>> Event: Newexten
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: dialplan,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: DAHDI/2-1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Rsrvd
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: phones-custom
2025-07-16 09:40:39.265400 <>>>>>>> Exten: s
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Extension: s
2025-07-16 09:40:39.265400 <>>>>>>> Application: AppDial2
2025-07-16 09:40:39.265400 <>>>>>>> AppData: (Outgoing Line)
2025-07-16 09:40:39.265400 <>>>>>>> Event: VarSet
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: dialplan,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: DAHDI/2-1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Rsrvd
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: phones-custom
2025-07-16 09:40:39.265400 <>>>>>>> Exten: s
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Variable: audch
2025-07-16 09:40:39.265400 <>>>>>>> Value: 1
2025-07-16 09:40:39.265400 <>>>>>>> Event: NewCallerid
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: call,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: DAHDI/2-1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Rsrvd
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: 5146307878
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: Rocky Dev Sys
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: phones-custom
2025-07-16 09:40:39.265400 <>>>>>>> Exten: s
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> CID-CallingPres: 0 (Presentation Allowed, Not Screened)
2025-07-16 09:40:39.265400 <>>>>>>> Event: NewConnectedLine
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: call,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: DAHDI/2-1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Rsrvd
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: 5146307878
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: Rocky Dev Sys
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: 5146307878
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: Rocky Dev Sys
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: phones-custom
2025-07-16 09:40:39.265400 <>>>>>>> Exten: s
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Event: Hangup
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: call,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: DAHDI/2-1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 1
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Rsrvd
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: 5146307878
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: Rocky Dev Sys
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: 5146307878
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: Rocky Dev Sys
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: phones-custom
2025-07-16 09:40:39.265400 <>>>>>>> Exten: s
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.22
2025-07-16 09:40:39.265400 <>>>>>>> Cause: 0
2025-07-16 09:40:39.265400 <>>>>>>> Cause-txt: Unknown
2025-07-16 09:40:39.265400 <>>>>>>> Event: Newchannel
2025-07-16 09:40:39.265400 <>>>>>>> Privilege: call,all
2025-07-16 09:40:39.265400 <>>>>>>> Channel: OutgoingSpoolFailed
2025-07-16 09:40:39.265400 <>>>>>>> ChannelState: 0
2025-07-16 09:40:39.265400 <>>>>>>> ChannelStateDesc: Down
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDNum: 5146307878
2025-07-16 09:40:39.265400 <>>>>>>> CallerIDName: Rocky Dev Sys
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineNum: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> ConnectedLineName: <unknown>
2025-07-16 09:40:39.265400 <>>>>>>> Language: en
2025-07-16 09:40:39.265400 <>>>>>>> AccountCode:
2025-07-16 09:40:39.265400 <>>>>>>> Context: smailboxes
2025-07-16 09:40:39.265400 <>>>>>>> Exten: failed
2025-07-16 09:40:39.265400 <>>>>>>> Priority: 1
2025-07-16 09:40:39.265400 <>>>>>>> Uniqueid: 1752684039.23
2025-07-16 09:40:39.265400 <>>>>>>> Linkedid: 1752684039.23
Why am I getting this “DAHDI confmute(0)” error and why is the inbound call going to some “failed” “OutgoingSpoolFailed” extension/channel?
If I try to initiate the outdial via the Asterisk CLI I get the same problem:
server*CLI> channel originate DAHDI/4/7770001 extension onenumber
[Jul 16 09:18:27] WARNING[140800][C-00000010]: chan_dahdi.c:5302 dahdi_confmute: DAHDI confmute(0) failed on channel 4: Invalid argument
[Jul 16 09:18:27] WARNING[140859]: chan_dahdi.c:5302 dahdi_confmute: DAHDI confmute(0) failed on channel 4: Invalid argument
[Jul 16 09:18:27] WARNING[140859]: chan_dahdi.c:5245 restore_gains: Unable to restore gains: Invalid argument
[Jul 16 09:18:27] WARNING[140859]: chan_dahdi.c:4908 reset_conf: Failed to reset conferencing on channel 4: Invalid argument
Originally libpri was installed via dnf (rpm of libpri-1.6.1-6.el9.x86_64), but I tried to install it from libpri-1.6.1 source (per your suggestions in the above URL, where I found your name) and it made no difference.
Running “lsdahdi” in bash and “dahdi show channels” within Asterisk CLI both return my card channels (also: “dahdi show status” shows PRIs connected “OK”). Note, however, that after I installed libpri from source and rebooted, “asterisk show status” returns OK but “asterisk show channels” did NOT show channels until I ran “dahdi restart” first.
Neither “pri show spans” nor “pri show channels” work, but from another web search it seems they’ve removed or support was lost for this. It seems that as a result the ONLY pri commands I can run are: “pri intense..” commands.
I also noticed an absence of libpri in list when I run ldd on dahdi:
…Here’s what I got when I ran this on Rocky Linux 9 with DAHDI 3.4.0:
[root@server asterisk]# ldd /usr/lib64/asterisk/modules/chan_dahdi.so
linux-vdso.so.1 (0x00007ffe1cbf2000)
libtonezone.so.2 => /lib/libtonezone.so.2 (0x00007fd50cc93000)
libc.so.6 => /lib64/libc.so.6 (0x00007fd50ca00000)
libm.so.6 => /lib64/libm.so.6 (0x00007fd50c925000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd50cd32000)
..and here’s what it looked like on CentOS 7 with DAHDI 2.11.1:
linux-vdso.so.1 =>(0x00007ffc5ccd0000)
libtonezone.so.2.0 => /lib/libtonezone.so.2.0 (0x00007f33eb6b0000)
libpri.so.1.4 => /lib/libpri.so.1.4 (0x00007f33eb430000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f33eb210000)
libc.so.6 => /lib64/libc.so.6 (0x00007f33eae48000)
libm.so.6 => /lib64/libm.so.6 (0x00007f33eab40000)
/lib64/ld-linux-x86-64.so.2 (0x00007f33ebbb8000)
However, also from what I’ve read this may be since DAHDI no longer depends on libpri but Asterisk does.
Would anyone be able to help me figure out the problem and correct?
Thank You