Hi.
I have problem with smartroutes (using mssql ODBC connection) and freepbx distro.
When i use smartRoutes with odbc connection to mssql database and configure smartroutes to route call to several different destination, bur all times calls was routed to first on destination list (other than default) .
I try that configuration on debian with “tarball” freepbx installation and on debian works file, but I need smartroutes works on freepbx distro.
About systems detals. It’s clean instalation freepbx distro FreePBX-Distro-Net-1.86.29.55 with odbcadmin (http://www.freepbx.org/trac/ticket/5189)
Database is MSSQL Server 2005.
Hi
ODBC works and is configured, i have res_odbc with my connection in /etc/asterisk
"
[Connection]
enabled => yes
dsn => Connection
username => Centrala
password => xxxx
pre-connect => yes
pooling => yes
limit => 25
"
I check on MSSQL Profiler and on WireShark and all query’s are OK. FreePBX got correct answer from sql.
Funny thing is that odbc work file because if query don’t return correct query smart routes use default destination. But if mssql return correct query smartroutes use first destination on list, ignoring value. If first position on list was changed, next call will be routed to new first destination on list.
I had this working but I now have two problems with smart routes. It always skips to “Default Destination:” at the end of my Smart route tree. I have the tech support calls route through 5 smart routes to check multiple database columns for the caller ID. Those each have the next smart route set as their “Default Destination:” It quickly runs through the 4 routes and goes to the 5th and sends the caller to the “Default Destination:”. In fact they are all sending the call to the “Default Destination:” customer service.
I have set the Verbose to 3 and have posted the outcome here. I’m not sure to what I’m looking at to see what the problem is.
Any help would be greatly appreciated.
-- Executing [s@macro-user-callerid:19] Set("Local/187@from-queue-7db7;2", "CALLERID(number)=6197558354") in new stack
-- Executing [s@macro-user-callerid:20] Set("Local/187@from-queue-7db7;2", "CALLERID(name)=Tech-Suprt_BUCKNER,LISA") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("Local/187@from-queue-7db7;2", "Using CallerID "Tech-Suprt_BUCKNER,LISA" <6197558354>") in new stack
-- Executing [s@macro-vm:2] Set("Local/187@from-queue-7db7;2", "VMGAIN=""") in new stack
-- Executing [s@macro-vm:3] GotoIf("Local/187@from-queue-7db7;2", "0?vmx,1") in new stack
-- Executing [s@macro-vm:4] NoOp("Local/187@from-queue-7db7;2", "CAME FROM: 2 - Blocking VM cause of key: ") in new stack
-- Executing [s@macro-vm:5] Hangup("Local/187@from-queue-7db7;2", "") in new stack
== Spawn extension (macro-vm, s, 5) exited non-zero on 'Local/187@from-queue-7db7;2' in macro 'vm'
== Spawn extension (macro-exten-vm, s, 18) exited non-zero on 'Local/187@from-queue-7db7;2' in macro 'exten-vm'
== Spawn extension (from-internal, 187, 2) exited non-zero on 'Local/187@from-queue-7db7;2'
-- Executing [h@from-internal:1] Macro("Local/187@from-queue-7db7;2", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] Set("Local/187@from-queue-7db7;2", "SMARTRDB_CALLENDED1(1367800483.2)=") in new stack
-- Executing [s@macro-hangupcall:2] Set("Local/187@from-queue-7db7;2", "SMARTRDB_CALLENDED2(1367800483.2)=") in new stack
-- Executing [s@macro-hangupcall:3] Set("Local/187@from-queue-7db7;2", "SMARTRDB_CALLENDED3(1367800483.2)=") in new stack
-- Executing [s@macro-hangupcall:4] Set("Local/187@from-queue-7db7;2", "SMARTRDB_CALLENDED4(1367800483.2)=") in new stack
-- Executing [s@macro-hangupcall:5] Set("Local/187@from-queue-7db7;2", "SMARTRDB_CALLENDED5(1367800483.2)=") in new stack
-- Executing [s@macro-hangupcall:6] GotoIf("Local/187@from-queue-7db7;2", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("Local/187@from-queue-7db7;2", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] GotoIf("Local/187@from-queue-7db7;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,14)
-- Executing [s@macro-hangupcall:14] Hangup("Local/187@from-queue-7db7;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 14) exited non-zero on 'Local/187@from-queue-7db7;2' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/187@from-queue-7db7;2'
-- Nobody picked up in 2000 ms
-- Executing [169@from-queue:1] Set("Local/169@from-queue-e915;2", "QAGENT=169") in new stack
-- Executing [169@from-queue:2] Goto("Local/169@from-queue-e915;2", "2,1") in new stack
-- Goto (from-queue,2,1)
-- Executing [2@from-queue:1] Goto("Local/169@from-queue-e915;2", "from-internal,169,1") in new stack
-- Goto (from-internal,169,1)
-- Executing [169@from-internal:1] Macro("Local/169@from-queue-e915;2", "exten-vm,169,169") in new stack
-- Executing [s@macro-exten-vm:1] Macro("Local/169@from-queue-e915;2", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/169@from-queue-e915;2", "AMPUSER=6197558354") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/169@from-queue-e915;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/169@from-queue-e915;2", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("Local/169@from-queue-e915;2", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("Local/169@from-queue-e915;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("Local/169@from-queue-e915;2", "CALLERID(number)=6197558354") in new stack
-- Executing [s@macro-user-callerid:20] Set("Local/169@from-queue-e915;2", "CALLERID(name)=Tech-Suprt_BUCKNER,LISA") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("Local/169@from-queue-e915;2", "Using CallerID "Tech-Suprt_BUCKNER,LISA" <6197558354>") in new stack
-- Executing [s@macro-exten-vm:2] Set("Local/169@from-queue-e915;2", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("Local/169@from-queue-e915;2", "VMBOX=169") in new stack
-- Executing [s@macro-exten-vm:4] Set("Local/169@from-queue-e915;2", "__EXTTOCALL=169") in new stack
-- Executing [s@macro-exten-vm:5] Set("Local/169@from-queue-e915;2", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("Local/169@from-queue-e915;2", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("Local/169@from-queue-e915;2", "RT=20") in new stack
-- Executing [s@macro-exten-vm:8] Macro("Local/169@from-queue-e915;2", "record-enable,169,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Local/169@from-queue-e915;2", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("Local/169@from-queue-e915;2", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("Local/169@from-queue-e915;2", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("Local/169@from-queue-e915;2", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("Local/169@from-queue-e915;2", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("Local/169@from-queue-e915;2", "dial-one,20,trM(auto-blkvm),169") in new stack
-- Executing [s@macro-dial-one:1] Set("Local/169@from-queue-e915;2", "DEXTEN=169") in new stack
-- Executing [s@macro-dial-one:2] Set("Local/169@from-queue-e915;2", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("Local/169@from-queue-e915;2", "0?screen,1") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("Local/169@from-queue-e915;2", "0?cf,1") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("Local/169@from-queue-e915;2", "0?skip1") in new stack
-- Executing [s@macro-dial-one:6] Set("Local/169@from-queue-e915;2", "DEXTEN=") in new stack
-- Executing [s@macro-dial-one:7] Set("Local/169@from-queue-e915;2", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-dial-one:8] GotoIf("Local/169@from-queue-e915;2", "1?nodial") in new stack
-- Goto (macro-dial-one,s,41)
-- Executing [s@macro-dial-one:41] ExecIf("Local/169@from-queue-e915;2", "0?Set(DIALSTATUS=NOANSWER)") in new stack
-- Executing [s@macro-dial-one:42] NoOp("Local/169@from-queue-e915;2", "Returned from dial-one with nothing to call and DIALSTATUS: BUSY") in new stack
-- Executing [s@macro-dial-one:43] MacroExit("Local/169@from-queue-e915;2", "") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("Local/169@from-queue-e915;2", "0?exit") in new stack
-- Executing [s@macro-exten-vm:11] Set("Local/169@from-queue-e915;2", "SV_DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("Local/169@from-queue-e915;2", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("Local/169@from-queue-e915;2", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("Local/169@from-queue-e915;2", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("Local/169@from-queue-e915;2", "Voicemail is '169'") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("Local/169@from-queue-e915;2", "0?s-BUSY,1") in new stack
-- Executing [s@macro-exten-vm:17] NoOp("Local/169@from-queue-e915;2", "Sending to Voicemail box 169") in new stack
-- Executing [s@macro-exten-vm:18] Macro("Local/169@from-queue-e915;2", "vm,169,BUSY,") in new stack
-- Executing [s@macro-vm:1] Macro("Local/169@from-queue-e915;2", "user-callerid,SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/169@from-queue-e915;2", "AMPUSER=6197558354") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/169@from-queue-e915;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/169@from-queue-e915;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("Local/169@from-queue-e915;2", "CALLERID(number)=6197558354") in new stack
-- Executing [s@macro-user-callerid:20] Set("Local/169@from-queue-e915;2", "CALLERID(name)=Tech-Suprt_BUCKNER,LISA") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("Local/169@from-queue-e915;2", "Using CallerID "Tech-Suprt_BUCKNER,LISA" <6197558354>") in new stack
-- Executing [s@macro-vm:2] Set("Local/169@from-queue-e915;2", "VMGAIN=""") in new stack
-- Executing [s@macro-vm:3] GotoIf("Local/169@from-queue-e915;2", "0?vmx,1") in new stack
-- Executing [s@macro-vm:4] NoOp("Local/169@from-queue-e915;2", "CAME FROM: 2 - Blocking VM cause of key: ") in new stack
-- Executing [s@macro-vm:5] Hangup("Local/169@from-queue-e915;2", "") in new stack
== Spawn extension (macro-vm, s, 5) exited non-zero on 'Local/169@from-queue-e915;2' in macro 'vm'
== Spawn extension (macro-exten-vm, s, 18) exited non-zero on 'Local/169@from-queue-e915;2' in macro 'exten-vm'
== Spawn extension (from-internal, 169, 1) exited non-zero on 'Local/169@from-queue-e915;2'
-- Executing [h@from-internal:1] Macro("Local/169@from-queue-e915;2", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] Set("Local/169@from-queue-e915;2", "SMARTRDB_CALLENDED1(1367800485.4)=") in new stack
-- Executing [s@macro-hangupcall:2] Set("Local/169@from-queue-e915;2", "SMARTRDB_CALLENDED2(1367800485.4)=") in new stack
-- Executing [s@macro-hangupcall:3] Set("Local/169@from-queue-e915;2", "SMARTRDB_CALLENDED3(1367800485.4)=") in new stack
-- Executing [s@macro-hangupcall:4] Set("Local/169@from-queue-e915;2", "SMARTRDB_CALLENDED4(1367800485.4)=") in new stack
-- Executing [s@macro-hangupcall:5] Set("Local/169@from-queue-e915;2", "SMARTRDB_CALLENDED5(1367800485.4)=") in new stack
-- Executing [s@macro-hangupcall:6] GotoIf("Local/169@from-queue-e915;2", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("Local/169@from-queue-e915;2", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] GotoIf("Local/169@from-queue-e915;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,14)
-- Executing [s@macro-hangupcall:14] Hangup("Local/169@from-queue-e915;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 14) exited non-zero on 'Local/169@from-queue-e915;2' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/169@from-queue-e915;2'
-- Nobody picked up in 1000 ms
-- Executing [137@from-queue:1] Set("Local/137@from-queue-912f;2", "QAGENT=137") in new stack
-- Executing [137@from-queue:2] Goto("Local/137@from-queue-912f;2", "2,1") in new stack
-- Goto (from-queue,2,1)
-- Executing [2@from-queue:1] Goto("Local/137@from-queue-912f;2", "from-internal,137,1") in new stack
-- Goto (from-internal,137,1)
-- Executing [137@from-internal:1] GotoIf("Local/137@from-queue-912f;2", "1?ext-local,137,1") in new stack
-- Goto (ext-local,137,1)
-- Executing [137@ext-local:1] Macro("Local/137@from-queue-912f;2", "exten-vm,137,137") in new stack
-- Executing [s@macro-exten-vm:1] Macro("Local/137@from-queue-912f;2", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/137@from-queue-912f;2", "AMPUSER=6197558354") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/137@from-queue-912f;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/137@from-queue-912f;2", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("Local/137@from-queue-912f;2", "__TTL=63") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("Local/137@from-queue-912f;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] Set("Local/137@from-queue-912f;2", "CALLERID(number)=6197558354") in new stack
-- Executing [s@macro-user-callerid:20] Set("Local/137@from-queue-912f;2", "CALLERID(name)=Tech-Suprt_BUCKNER,LISA") in new stack
-- Executing [s@macro-user-callerid:21] NoOp("Local/137@from-queue-912f;2", "Using CallerID "Tech-Suprt_BUCKNER,LISA" <6197558354>") in new stack
-- Executing [s@macro-exten-vm:2] Set("Local/137@from-queue-912f;2", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("Local/137@from-queue-912f;2", "VMBOX=137") in new stack
-- Executing [s@macro-exten-vm:4] Set("Local/137@from-queue-912f;2", "__EXTTOCALL=137") in new stack
-- Executing [s@macro-exten-vm:5] Set("Local/137@from-queue-912f;2", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("Local/137@from-queue-912f;2", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("Local/137@from-queue-912f;2", "RT=20") in new stack
-- Executing [s@macro-exten-vm:8] Macro("Local/137@from-queue-912f;2", "record-enable,137,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Local/137@from-queue-912f;2", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("Local/137@from-queue-912f;2", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("Local/137@from-queue-912f;2", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("Local/137@from-queue-912f;2", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("Local/137@from-queue-912f;2", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("Local/137@from-queue-912f;2", "dial-one,20,trM(auto-blkvm),137") in new stack
-- Executing [s@macro-dial-one:1] Set("Local/137@from-queue-912f;2", "DEXTEN=137") in new stack
-- Executing [s@macro-dial-one:2] Set("Local/137@from-queue-912f;2", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("Local/137@from-queue-912f;2", "0?screen,1") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("Local/137@from-queue-912f;2", "0?cf,1") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("Local/137@from-queue-912f;2", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("Local/137@from-queue-912f;2", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("Local/137@from-queue-912f;2", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("Local/137@from-queue-912f;2", "EXTHASCW=") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("Local/137@from-queue-912f;2", "1?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,12)
-- Executing [s@macro-dial-one:12] GotoIf("Local/137@from-queue-912f;2", "0?docfu:skip3") in new stack
-- Goto (macro-dial-one,s,16)
-- Executing [s@macro-dial-one:16] GotoIf("Local/137@from-queue-912f;2", "1?next2:continue") in new stack
-- Goto (macro-dial-one,s,17)
-- Executing [s@macro-dial-one:17] GotoIf("Local/137@from-queue-912f;2", "1?continue") in new stack
-- Goto (macro-dial-one,s,25)
-- Executing [s@macro-dial-one:25] GotoIf("Local/137@from-queue-912f;2", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("Local/137@from-queue-912f;2", "1?dstring,1:dlocal,1") in new stack
-- Executing [dstring@macro-dial-one:1] Set("Local/137@from-queue-912f;2", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("Local/137@from-queue-912f;2", "DEVICES=137") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("Local/137@from-queue-912f;2", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("Local/137@from-queue-912f;2", "0?Set(DEVICES=37)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("Local/137@from-queue-912f;2", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("Local/137@from-queue-912f;2", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("Local/137@from-queue-912f;2", "THISDIAL=SIP/137") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("Local/137@from-queue-912f;2", "1?zap2dahdi,1") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("Local/137@from-queue-912f;2", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("Local/137@from-queue-912f;2", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("Local/137@from-queue-912f;2", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("Local/137@from-queue-912f;2", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("Local/137@from-queue-912f;2", "THISPART2=SIP/137") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("Local/137@from-queue-912f;2", "0?Set(THISPART2=DAHDI/137)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("Local/137@from-queue-912f;2", "NEWDIAL=SIP/137&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("Local/137@from-queue-912f;2", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("Local/137@from-queue-912f;2", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("Local/137@from-queue-912f;2", "THISDIAL=SIP/137") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("Local/137@from-queue-912f;2", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("Local/137@from-queue-912f;2", "DSTRING=SIP/137&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("Local/137@from-queue-912f;2", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("Local/137@from-queue-912f;2", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("Local/137@from-queue-912f;2", "DSTRING=SIP/137") in new stack
-- Executing [dstring@macro-dial-one:13] Return("Local/137@from-queue-912f;2", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("Local/137@from-queue-912f;2", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("Local/137@from-queue-912f;2", "1?skiptrace") in new stack
-- Goto (macro-dial-one,s,30)
-- Executing [s@macro-dial-one:30] Set("Local/137@from-queue-912f;2", "D_OPTIONS=trM(auto-blkvm)") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("Local/137@from-queue-912f;2", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("Local/137@from-queue-912f;2", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("Local/137@from-queue-912f;2", "1?Set(CHANNEL(musicclass)=Jazz-Tunes)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("Local/137@from-queue-912f;2", "0?qwait,1") in new stack
-- Executing [s@macro-dial-one:35] Set("Local/137@from-queue-912f;2", "__CWIGNORE=TRUE") in new stack
-- Executing [s@macro-dial-one:36] Set("Local/137@from-queue-912f;2", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] Dial("Local/137@from-queue-912f;2", "SIP/137,20,trM(auto-blkvm)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/137
-- Local/137@from-queue-912f;1 is ringing
-- SIP/137-00000001 is ringing
-- Local/137@from-queue-912f;1 is ringing
-- Stopped music on hold on SIP/fpbx-1-bc260839-00000000
== Spawn extension (ext-queues, 2, 12) exited non-zero on 'SIP/fpbx-1-bc260839-00000000'
-- Executing [h@ext-queues:1] Macro("SIP/fpbx-1-bc260839-00000000", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] Set("SIP/fpbx-1-bc260839-00000000", "SMARTRDB_CALLENDED1(1367800479.0)=") in new stack
== Spawn extension (macro-dial-one, s, 37) exited non-zero on 'Local/137@from-queue-912f;2' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'Local/137@from-queue-912f;2' in macro 'exten-vm'
== Spawn extension (ext-local, 137, 1) exited non-zero on 'Local/137@from-queue-912f;2'
-- Executing [h@ext-local:1] Macro("Local/137@from-queue-912f;2", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] Set("Local/137@from-queue-912f;2", "SMARTRDB_CALLENDED1(1367800486.6)=") in new stack
-- Executing [s@macro-hangupcall:2] Set("SIP/fpbx-1-bc260839-00000000", "SMARTRDB_CALLENDED2(1367800479.0)=") in new stack
-- Executing [s@macro-hangupcall:2] Set("Local/137@from-queue-912f;2", "SMARTRDB_CALLENDED2(1367800486.6)=") in new stack
-- Executing [s@macro-hangupcall:3] Set("SIP/fpbx-1-bc260839-00000000", "SMARTRDB_CALLENDED3(1367800479.0)=") in new stack
-- Executing [s@macro-hangupcall:3] Set("Local/137@from-queue-912f;2", "SMARTRDB_CALLENDED3(1367800486.6)=") in new stack
-- Executing [s@macro-hangupcall:4] Set("SIP/fpbx-1-bc260839-00000000", "SMARTRDB_CALLENDED4(1367800479.0)=") in new stack
-- Executing [s@macro-hangupcall:4] Set("Local/137@from-queue-912f;2", "SMARTRDB_CALLENDED4(1367800486.6)=") in new stack
-- Executing [s@macro-hangupcall:5] Set("SIP/fpbx-1-bc260839-00000000", "SMARTRDB_CALLENDED5(1367800479.0)=") in new stack
-- Executing [s@macro-hangupcall:5] Set("Local/137@from-queue-912f;2", "SMARTRDB_CALLENDED5(1367800486.6)=") in new stack
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/fpbx-1-bc260839-00000000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/fpbx-1-bc260839-00000000", "0?skipblkvm") in new stack
-- Executing [s@macro-hangupcall:10] NoOp("SIP/fpbx-1-bc260839-00000000", "Cleaning Up Block VM Flag: BLKVM/2/SIP/fpbx-1-bc260839-00000000") in new stack
-- Executing [s@macro-hangupcall:11] NoOp("SIP/fpbx-1-bc260839-00000000", "Deleting: BLKVM/2/SIP/fpbx-1-bc260839-00000000 TRUE") in new stack
-- Executing [s@macro-hangupcall:12] GotoIf("SIP/fpbx-1-bc260839-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,14)
-- Executing [s@macro-hangupcall:14] Hangup("SIP/fpbx-1-bc260839-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 14) exited non-zero on 'SIP/fpbx-1-bc260839-00000000' in macro 'hangupcall'
== Spawn extension (ext-queues, h, 1) exited non-zero on 'SIP/fpbx-1-bc260839-00000000'
-- Executing [s@macro-hangupcall:6] GotoIf("Local/137@from-queue-912f;2", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("Local/137@from-queue-912f;2", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] GotoIf("Local/137@from-queue-912f;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,14)
-- Executing [s@macro-hangupcall:14] Hangup("Local/137@from-queue-912f;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 14) exited non-zero on 'Local/137@from-queue-912f;2' in macro 'hangupcall'
== Spawn extension (ext-local, h, 1) exited non-zero on 'Local/137@from-queue-912f;2'