PRI woes

Using a fresh install of CentOS and Asterisk 1.6, I do not get outbound ringing. I am not using SIP. I have a Toshiba PBX connected to the Asterisk server using a PRI crossover cable. I can make outbound calls, but the caller does not receive any ringing. I have tried multiple DAHDI configurations and am out of theories.

I’m hoping someone can ask the right questions here and help me figure out what might be causing this. If I have Asterisk provide ringing for outbound calls, it causes issues with long distance, early media, etc. I did post about this issue a few weeks ago, but that was using Asterisk 1.8 which needed a patch for early media and after a bunch of wasted time, I just rebuilt the entire server from the OS up using 1.6.

Call routing, voicemail, and everything else seems to be working just fine…

what is your progressinband set to in the sip.conf ?

Ian

[quote=“ianplain”]what is your progressinband set to in the sip.conf ?

Ian[/quote]

Not using SIP at all. The setup is all DAHDI / PRI.

Telco PRI -> Asterisk -> Toshiba (via PRI crossover).

Do you see any error message /notice on CLI, such as ‘unable to forward voice or dtmf’ ? what if you try ‘r’ option in your dial command to force asterisk to generate ringback to the caller… like

Dial(DAHDI/g1/123456789,r)

or you can try some musiconhold like

Dial(DAHDI/g1/123456789,m)

Nasir Javaid.

[quote=“nasirjavaid”]Do you see any error message /notice on CLI, such as ‘unable to forward voice or dtmf’ ? what if you try ‘r’ option in your dial command to force asterisk to generate ringback to the caller… like

Dial(DAHDI/g1/123456789,r)

or you can try some musiconhold like

Dial(DAHDI/g1/123456789,m)

Nasir Javaid.[/quote]

If I supply ringing with an r in the dial command, I lose early media such as the tone which prompts for 4 digit PIN on long distance calls (telco provided service)

Here is what the verbose log looks like when I attempt to make a call. Phone numbers were intentionally obscured for this post and the call completes just fine, I just don’t hear ringing:

[Jun 21 06:21:14] VERBOSE[25877] chan_dahdi.c: -- Accepting overlap call from '4807' to '1234567' on channel 0/23, span 2 [Jun 21 06:21:14] VERBOSE[25922] chan_dahdi.c: -- Starting simple switch on 'DAHDI/47-1' [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [1234567@from-internal:1] Macro("DAHDI/47-1", "user-callerid,SKIPTTL,") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:1] Set("DAHDI/47-1", "AMPUSER=4807") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/47-1", "0?report") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/47-1", "1?Set(REALCALLERIDNUM=4807)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:4] Set("DAHDI/47-1", "AMPUSER=4807") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:5] Set("DAHDI/47-1", "AMPUSERCIDNAME=Mark") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/47-1", "0?report") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:7] Set("DAHDI/47-1", "AMPUSERCID=4807") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:8] Set("DAHDI/47-1", "CALLERID(all)="Mark" <4807>") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:9] ExecIf("DAHDI/47-1", "0?Set(CHANNEL(language)=)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/47-1", "1?continue") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Goto (macro-user-callerid,s,19) [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:19] Set("DAHDI/47-1", "CALLERID(number)=4807") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:20] Set("DAHDI/47-1", "CALLERID(name)=Mark") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-user-callerid:21] NoOp("DAHDI/47-1", "Using CallerID "Mark" <4807>") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [1234567@from-internal:2] Set("DAHDI/47-1", "_NODEST=") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [1234567@from-internal:3] Macro("DAHDI/47-1", "record-enable,4807,OUT,") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-record-enable:1] GotoIf("DAHDI/47-1", "1?check") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Goto (macro-record-enable,s,4) [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-record-enable:4] ExecIf("DAHDI/47-1", "0?MacroExit()") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-record-enable:5] GotoIf("DAHDI/47-1", "0?Group:OUT") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Goto (macro-record-enable,s,15) [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-record-enable:15] GotoIf("DAHDI/47-1", "0?IN") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-record-enable:16] ExecIf("DAHDI/47-1", "1?MacroExit()") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [1234567@from-internal:4] Macro("DAHDI/47-1", "dialout-trunk,1,1234567,,") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("DAHDI/47-1", "DIAL_TRUNK=1") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("DAHDI/47-1", "0?sub-pincheck,s,1") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("DAHDI/47-1", "0?disabletrunk,1") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("DAHDI/47-1", "DIAL_NUMBER=1234567") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("DAHDI/47-1", "DIAL_TRUNK_OPTIONS=tr") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("DAHDI/47-1", "OUTBOUND_GROUP=OUT_1") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("DAHDI/47-1", "0?nomax") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:8] GotoIf("DAHDI/47-1", "0?chanfull") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("DAHDI/47-1", "0?skipoutcid") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("DAHDI/47-1", "DIAL_TRUNK_OPTIONS=") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("DAHDI/47-1", "outbound-callerid,1") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("DAHDI/47-1", "0?Set(CALLERPRES()=)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("DAHDI/47-1", "0?Set(REALCALLERIDNUM=4807)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("DAHDI/47-1", "1?normcid") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Goto (macro-outbound-callerid,s,6) [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("DAHDI/47-1", "USEROUTCID=") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("DAHDI/47-1", "EMERGENCYCID=") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("DAHDI/47-1", "TRUNKOUTCID=414-555-1212") in new stac [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("DAHDI/47-1", "1?trunkcid") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Goto (macro-outbound-callerid,s,12) [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("DAHDI/47-1", "1?Set(CALLERID(all)=414-555-1212)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("DAHDI/47-1", "0?Set(CALLERID(all)=)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("DAHDI/47-1", "0?Set(CALLERID(all)=)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("DAHDI/47-1", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:12] ExecIf("DAHDI/47-1", "0?AGI(fixlocalprefix)") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("DAHDI/47-1", "OUTNUM=1234567") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("DAHDI/47-1", "custom=DAHDI/g0") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("DAHDI/47-1", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("DAHDI/47-1", "dialout-trunk-predial-hook,") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("DAHDI/47-1", "") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("DAHDI/47-1", "0?bypass,1") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("DAHDI/47-1", "0?customtrunk") in new stack [Jun 21 06:21:17] VERBOSE[25922] pbx.c: -- Executing [s@macro-dialout-trunk:19] Dial("DAHDI/47-1", "DAHDI/g0/1234567,300,") in new stack [Jun 21 06:21:17] VERBOSE[25922] chan_dahdi.c: -- Requested transfer capability: 0x10 - 3K1AUDIO [Jun 21 06:21:17] VERBOSE[25922] app_dial.c: -- Called g0/1234567 [Jun 21 06:21:17] VERBOSE[25922] app_dial.c: -- DAHDI/1-1 is proceeding passing it to DAHDI/47-1 [Jun 21 06:21:18] VERBOSE[25922] app_dial.c: -- DAHDI/1-1 is making progress passing it to DAHDI/47-1 [Jun 21 06:21:20] VERBOSE[25877] chan_dahdi.c: -- Channel 0/23, span 2 got hangup request, cause 16 [Jun 21 06:21:20] WARNING[25922] app_dial.c: Unable to write frame [Jun 21 06:21:20] VERBOSE[25922] chan_dahdi.c: -- Hungup 'DAHDI/1-1' [Jun 21 06:21:20] VERBOSE[25922] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'DAHDI/47-1' in macro 'dialout-trunk' [Jun 21 06:21:20] VERBOSE[25922] pbx.c: == Spawn extension (from-internal, 1234567, 4) exited non-zero on 'DAHDI/47-1' [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Executing [h@from-internal:1] Macro("DAHDI/47-1", "hangupcall") in new stack [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/47-1", "1?skiprg") in new stack [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Goto (macro-hangupcall,s,4) [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/47-1", "1?skipblkvm") in new stack [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Goto (macro-hangupcall,s,7) [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/47-1", "1?theend") in new stack [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Goto (macro-hangupcall,s,9) [Jun 21 06:21:20] VERBOSE[25922] pbx.c: -- Executing [s@macro-hangupcall:9] Hangup("DAHDI/47-1", "") in new stack [Jun 21 06:21:20] VERBOSE[25922] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'DAHDI/47-1' in macro 'hangupcall' [Jun 21 06:21:20] VERBOSE[25922] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'DAHDI/47-1' [Jun 21 06:21:20] VERBOSE[25922] chan_dahdi.c: -- Hungup 'DAHDI/47-1'

No other ideas on this?

I have been researching and researching for some time now and realized that the outgoing calls were using 3k1AUDIO for voice calls. I’ve changed the legacy PBX to use SPEECH and hope to test this weekend to see if that makes a difference. The legacy PBX does not have this issue, so I am not confident, but I also can’t view debug info, or even logs for that matter, on the legacy PBX so I don’t know what it does.

I’m considering that everything may be working perfectly fine between Asterisk and telco, but not between the legacy PBX and Asterisk. To verify if this is the case, I will see if I have the same problem on a SIP call during my testing.

Resolved.

Made multiple changes to chan_dahdi.conf, including removing overlap completely and adding language=en.