OK, here is the full call flow, I think.
I discovered something just now.
I did a test call with a direct dialed number and it worked. It returned busy.
The call that failed, that is attached, was a speed dial call.
Prefix = 3, speedial = 25.
It seems to hit a macro called sub-flp, and after that, it returns the busy signal to the wrong channel. It plays the busy signal to the destination number. That’s how it looks to me.
If I left anything out, just let me know.
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:1] Macro("SIP/202-000000a4", "user-callerid,") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:1] Set("SIP/202-000000a4", "AMPUSER=202") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:2] GotoIf("SIP/202-000000a4", "0?report") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:3] ExecIf("SIP/202-000000a4", "0?Set(REALCALLERIDNUM=202)") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:4] Set("SIP/202-000000a4", "AMPUSER=202") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:5] Set("SIP/202-000000a4", "AMPUSERCIDNAME=Phil") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:6] GotoIf("SIP/202-000000a4", "0?report") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:7] Set("SIP/202-000000a4", "AMPUSERCID=202") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:8] Set("SIP/202-000000a4", "CALLERID(all)="Phil" <202>") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:9] ExecIf("SIP/202-000000a4", "0?Set(CHANNEL(language)=)") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:10] GotoIf("SIP/202-000000a4", "0?continue") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:11] Set("SIP/202-000000a4", "__TTL=63") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:12] GotoIf("SIP/202-000000a4", "1?continue") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Goto (macro-user-callerid,s,19)
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:19] NoOp("SIP/202-000000a4", "Using CallerID "Phil" <202>") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:2] Set("SIP/202-000000a4", "SPEEDDIALLOCATION=25") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:3] Macro("SIP/202-000000a4", "speeddial-lookup,25,202") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/202-000000a4", "0]?lookupsys") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:2] Set("SIP/202-000000a4", "SPEEDDIALNUMBER=") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:3] Set("SIP/202-000000a4", "SPEEDDIALNUMBER=") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:4] GotoIf("SIP/202-000000a4", "1?lookupsys") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Goto (macro-speeddial-lookup,s,104)
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:104] Set("SIP/202-000000a4", "SPEEDDIALNUMBER=4109999999") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:105] GotoIf("SIP/202-000000a4", "0?failed") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:106] NoOp("SIP/202-000000a4", "Found system speeddial 25: 4109999999") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:107] Goto("SIP/202-000000a4", "end") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Goto (macro-speeddial-lookup,s,206)
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:206] NoOp("SIP/202-000000a4", "End of Speeddial-lookup") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:4] GotoIf("SIP/202-000000a4", "0?failed") in new stack
[Aug 8 14:28:21] VERBOSE[22323] pbx.c: -- Executing [[email protected]:5] Dial("SIP/202-000000a4", "Local/[email protected]/n,") in new stack
[Aug 8 14:28:21] VERBOSE[22323] app_dial.c: -- Called [email protected]/n
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] Macro("Local/[email protected];2", "user-callerid,SKIPTTL,") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] Set("Local/[email protected];2", "AMPUSER=202") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:2] GotoIf("Local/[email protected];2", "1?report") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Goto (macro-user-callerid,s,10)
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:10] GotoIf("Local/[email protected];2", "1?continue") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Goto (macro-user-callerid,s,19)
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:19] NoOp("Local/[email protected];2", "Using CallerID "Phil" <202>") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:2] NoOp("Local/[email protected];2", "Calling Out Route: 10_Digits") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:3] Set("Local/[email protected];2", "MOHCLASS=default") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:4] Set("Local/[email protected];2", "_NODEST=") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:5] Macro("Local/[email protected];2", "record-enable,202,OUT,") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?check") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Goto (macro-record-enable,s,4)
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "0?MacroExit()") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:5] GotoIf("Local/[email protected];2", "0?Group:OUT") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Goto (macro-record-enable,s,15)
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:15] GotoIf("Local/[email protected];2", "0?IN") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:16] ExecIf("Local/[email protected];2", "1?MacroExit()") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:6] Macro("Local/[email protected];2", "dialout-trunk,2,4109999999,") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] Set("Local/[email protected];2", "DIAL_TRUNK=2") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:2] GosubIf("Local/[email protected];2", "0?sub-pincheck,s,1") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?disabletrunk,1") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:4] Set("Local/[email protected];2", "DIAL_NUMBER=4109999999") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:5] Set("Local/[email protected];2", "DIAL_TRUNK_OPTIONS=tTrwWkK") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:6] Set("Local/[email protected];2", "OUTBOUND_GROUP=OUT_2") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "0?nomax") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:8] GotoIf("Local/[email protected];2", "0?chanfull") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "0?skipoutcid") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:10] Set("Local/[email protected];2", "DIAL_TRUNK_OPTIONS=tTwWkK") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:11] Macro("Local/[email protected];2", "outbound-callerid,2") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES()=)") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:2] ExecIf("Local/[email protected];2", "1?Set(REALCALLERIDNUM=202)") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "1?normcid") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:6] Set("Local/[email protected];2", "USEROUTCID=") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:7] Set("Local/[email protected];2", "EMERGENCYCID=") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:8] Set("Local/[email protected];2", "TRUNKOUTCID=4105551234") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "1?trunkcid") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Goto (macro-outbound-callerid,s,12)
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:12] ExecIf("Local/[email protected];2", "1?Set(CALLERID(all)=4105551234)") in new stack
[Aug 8 14:28:21] VERBOSE[22324] pbx.c: -- Executing [[email protected]:13] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:14] ExecIf("Local/[email protected];2", "0?Set(CALLERID(all)=)") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:12] GosubIf("Local/[email protected];2", "1?sub-flp-2,s,1") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "0?Set(TARGET_FLP42=9999999)") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:2] GotoIf("Local/[email protected];2", "0?match") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Return()") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "1?Set(TARGET_FLP42=14109999999)") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:5] GotoIf("Local/[email protected];2", "1?match") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Goto (sub-flp-2,s,9)
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:9] Set("Local/[email protected];2", "DIAL_NUMBER=14109999999") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:10] Return("Local/[email protected];2", "") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:13] Set("Local/[email protected];2", "OUTNUM=14109999999") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:14] Set("Local/[email protected];2", "custom=SIP/VoicePulse") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:15] ExecIf("Local/[email protected];2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)tTwWkK)") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:16] Macro("Local/[email protected];2", "dialout-trunk-predial-hook,") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "security check") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:2] GotoIf("Local/[email protected];2", "0?Record911") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:3] GotoIf("Local/[email protected];2", "0?alarm") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:4] MacroExit("Local/[email protected];2", "") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:17] GotoIf("Local/[email protected];2", "0?bypass,1") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]unk:18] GotoIf("Local/[email protected];2", "0?customtrunk") in new stack
[Aug 8 14:28:22] VERBOSE[22324] pbx.c: -- Executing [[email protected]:19] Dial("Local/[email protected];2", "SIP/VoicePulse/14109999999,300,tTwWkK") in new stack
[Aug 8 14:28:22] VERBOSE[22324] netsock.c: == Using SIP RTP TOS bits 184
[Aug 8 14:28:22] VERBOSE[22324] netsock.c: == Using SIP RTP CoS mark 5
[Aug 8 14:28:22] VERBOSE[22324] netsock.c: == Using SIP VRTP TOS bits 136
[Aug 8 14:28:22] VERBOSE[22324] netsock.c: == Using SIP VRTP CoS mark 6
[Aug 8 14:28:22] VERBOSE[22324] netsock.c: == Using UDPTL TOS bits 184
[Aug 8 14:28:22] VERBOSE[22324] netsock.c: == Using UDPTL CoS mark 5
[Aug 8 14:28:22] VERBOSE[22324] app_dial.c: -- Called VoicePulse/14109999999
[Aug 8 14:28:25] VERBOSE[16533] chan_sip.c: -- Got SIP response 486 "Busy Here" back from 64.61.93.190
[Aug 8 14:28:25] VERBOSE[22324] app_dial.c: -- SIP/VoicePulse-000000a5 is busy
[Aug 8 14:28:25] VERBOSE[22324] app_dial.c: == Everyone is busy/congested at this time (1:1/0/0)
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:20] NoOp("Local/[email protected];2", "Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 17") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:21] Goto("Local/[email protected];2", "s-BUSY,1") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Goto (macro-dialout-trunk,s-BUSY,1)
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] NoOp("Local/[email protected];2", "Dial failed due to trunk reporting BUSY - giving up") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:2] PlayTones("Local/[email protected];2", "busy") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:3] Busy("Local/[email protected];2", "20") in new stack
[Aug 8 14:28:25] VERBOSE[22323] app_dial.c: -- Local/[email protected];1 is busy
[Aug 8 14:28:25] VERBOSE[22323] app_dial.c: == Everyone is busy/congested at this time (1:1/0/0)
[Aug 8 14:28:25] VERBOSE[22323] pbx.c: -- Executing [[email protected]:6] Playback("SIP/202-000000a4", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
[Aug 8 14:28:25] VERBOSE[22324] app_macro.c: == Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on 'Local/[email protected];2' in macro 'dialout-trunk'
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: == Spawn extension (from-internal, 4109999999, 6) exited non-zero on 'Local/[email protected];2'
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?skiprg") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Goto (macro-hangupcall,s,4)
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:4] GotoIf("Local/[email protected];2", "1?skipblkvm") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Goto (macro-hangupcall,s,7)
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?theend") in new stack
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Goto (macro-hangupcall,s,9)
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: -- Executing [[email protected]:9] Hangup("Local/[email protected];2", "") in new stack
[Aug 8 14:28:25] VERBOSE[22324] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'Local/[email protected];2' in macro 'hangupcall'
[Aug 8 14:28:25] VERBOSE[22324] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/[email protected];2'
[Aug 8 14:28:25] VERBOSE[22323] file.c: -- <SIP/202-000000a4> Playing 'silence/1.gsm' (language 'en')
[Aug 8 14:28:26] VERBOSE[22323] file.c: -- <SIP/202-000000a4> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: == Spawn extension (from-internal, 325, 6) exited non-zero on 'SIP/202-000000a4'
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Executing [[email protected]:1] Macro("SIP/202-000000a4", "hangupcall") in new stack
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Executing [[email protected]:1] GotoIf("SIP/202-000000a4", "1?skiprg") in new stack
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Goto (macro-hangupcall,s,4)
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Executing [[email protected]:4] GotoIf("SIP/202-000000a4", "1?skipblkvm") in new stack
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Goto (macro-hangupcall,s,7)
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Executing [[email protected]:7] GotoIf("SIP/202-000000a4", "1?theend") in new stack
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Goto (macro-hangupcall,s,9)
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: -- Executing [[email protected]:9] Hangup("SIP/202-000000a4", "") in new stack
[Aug 8 14:28:28] VERBOSE[22323] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/202-000000a4' in macro 'hangupcall'
[Aug 8 14:28:28] VERBOSE[22323] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/202-000000a4'
[Aug 8 14:28:28] VERBOSE[16402] chan_sip.c: == Extension Changed 202[ext-local] new state Idle for Notify User 207