[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'