> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2017-01-27 12:28:47.646740'},'','312','','','','00994125555555','from-internal','SIP/CUCM-01-0001e167','','',3,'','1485512927.131100','1485512927.131100','','','')] -- Executing [00994125555555@from-internal:1] Macro("SIP/CUCM-01-0001e167", "user-callerid,LIMIT,EXTERNAL,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/CUCM-01-0001e167", "TOUCH_MONITOR=1485512927.131100") in new stack -- Executing [s@macro-user-callerid:2] Set("SIP/CUCM-01-0001e167", "AMPUSER=312") in new stack -- Executing [s@macro-user-callerid:3] GotoIf("SIP/CUCM-01-0001e167", "0?report") in new stack -- Executing [s@macro-user-callerid:4] ExecIf("SIP/CUCM-01-0001e167", "1?Set(REALCALLERIDNUM=312)") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/CUCM-01-0001e167", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/CUCM-01-0001e167", "0?limit") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/CUCM-01-0001e167", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:8] GotoIf("SIP/CUCM-01-0001e167", "1?report") in new stack -- Goto (macro-user-callerid,s,15) -- Executing [s@macro-user-callerid:15] GotoIf("SIP/CUCM-01-0001e167", "1?continue") in new stack -- Goto (macro-user-callerid,s,28) -- Executing [s@macro-user-callerid:28] Set("SIP/CUCM-01-0001e167", "CALLERID(number)=312") in new stack -- Executing [s@macro-user-callerid:29] Set("SIP/CUCM-01-0001e167", "CALLERID(name)=") in new stack -- Executing [s@macro-user-callerid:30] Set("SIP/CUCM-01-0001e167", "CDR(cnum)=312") in new stack -- Executing [s@macro-user-callerid:31] Set("SIP/CUCM-01-0001e167", "CDR(cnam)=") in new stack -- Executing [s@macro-user-callerid:32] Set("SIP/CUCM-01-0001e167", "CHANNEL(language)=ru") in new stack -- Executing [00994125555555@from-internal:2] Set("SIP/CUCM-01-0001e167", "MOHCLASS=default") in new stack -- Executing [00994125555555@from-internal:3] Set("SIP/CUCM-01-0001e167", "_NODEST=") in new stack -- Executing [00994125555555@from-internal:4] Gosub("SIP/CUCM-01-0001e167", "sub-record-check,s,1(out,00994125555555,)") in new stack -- Executing [s@sub-record-check:1] Set("SIP/CUCM-01-0001e167", "REC_POLICY_MODE_SAVE=") in new stack -- Executing [s@sub-record-check:2] GotoIf("SIP/CUCM-01-0001e167", "1?check") in new stack -- Goto (sub-record-check,s,7) -- Executing [s@sub-record-check:7] Set("SIP/CUCM-01-0001e167", "__MON_FMT=wav") in new stack -- Executing [s@sub-record-check:8] GotoIf("SIP/CUCM-01-0001e167", "1?next") in new stack -- Goto (sub-record-check,s,11) -- Executing [s@sub-record-check:11] ExecIf("SIP/CUCM-01-0001e167", "0?Return()") in new stack -- Executing [s@sub-record-check:12] ExecIf("SIP/CUCM-01-0001e167", "0?Set(__REC_POLICY_MODE=)") in new stack -- Executing [s@sub-record-check:13] GotoIf("SIP/CUCM-01-0001e167", "0?out,1") in new stack -- Executing [s@sub-record-check:14] Set("SIP/CUCM-01-0001e167", "__REC_STATUS=INITIALIZED") in new stack -- Executing [s@sub-record-check:15] Set("SIP/CUCM-01-0001e167", "NOW=1485512927") in new stack -- Executing [s@sub-record-check:16] Set("SIP/CUCM-01-0001e167", "__DAY=27") in new stack -- Executing [s@sub-record-check:17] Set("SIP/CUCM-01-0001e167", "__MONTH=01") in new stack -- Executing [s@sub-record-check:18] Set("SIP/CUCM-01-0001e167", "__YEAR=2017") in new stack -- Executing [s@sub-record-check:19] Set("SIP/CUCM-01-0001e167", "__TIMESTR=20170127-122847") in new stack -- Executing [s@sub-record-check:20] Set("SIP/CUCM-01-0001e167", "__FROMEXTEN=312") in new stack -- Executing [s@sub-record-check:21] Set("SIP/CUCM-01-0001e167", "__CALLFILENAME=out-00994125555555-312-20170127-122847-1485512927.131100") in new stack -- Executing [s@sub-record-check:22] Goto("SIP/CUCM-01-0001e167", "out,1") in new stack -- Goto (sub-record-check,out,1) -- Executing [out@sub-record-check:1] ExecIf("SIP/CUCM-01-0001e167", "1?Set(__REC_POLICY_MODE=)") in new stack -- Executing [out@sub-record-check:2] GosubIf("SIP/CUCM-01-0001e167", "0?record,1(exten,00994125555555,312)") in new stack -- Executing [out@sub-record-check:3] Return("SIP/CUCM-01-0001e167", "") in new stack -- Executing [00994125555555@from-internal:5] Macro("SIP/CUCM-01-0001e167", "dialout-trunk,22,994125555555,,on") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/CUCM-01-0001e167", "DIAL_TRUNK=22") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/CUCM-01-0001e167", "0?sub-pincheck,s,1()") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/CUCM-01-0001e167", "0?disabletrunk,1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/CUCM-01-0001e167", "DIAL_NUMBER=994125555555") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/CUCM-01-0001e167", "DIAL_TRUNK_OPTIONS=Ttr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/CUCM-01-0001e167", "OUTBOUND_GROUP=OUT_22") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/CUCM-01-0001e167", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/CUCM-01-0001e167", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/CUCM-01-0001e167", "DIAL_TRUNK_OPTIONS=Tt") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/CUCM-01-0001e167", "outbound-callerid,22") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/CUCM-01-0001e167", "0?Set(CALLERPRES()=)") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/CUCM-01-0001e167", "0?Set(REALCALLERIDNUM=312)") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/CUCM-01-0001e167", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("SIP/CUCM-01-0001e167", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/CUCM-01-0001e167", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/CUCM-01-0001e167", "TRUNKOUTCID=<121234567>") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/CUCM-01-0001e167", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,14) -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/CUCM-01-0001e167", "1?Set(CALLERID(all)=<121234567>)") in new stack -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/CUCM-01-0001e167", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/CUCM-01-0001e167", "0?Set(CALLERID(all)=)") in new stack -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/CUCM-01-0001e167", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack -- Executing [s@macro-outbound-callerid:18] Set("SIP/CUCM-01-0001e167", "CDR(outbound_cnum)=121234567") in new stack -- Executing [s@macro-outbound-callerid:19] Set("SIP/CUCM-01-0001e167", "CDR(outbound_cnam)=") in new stack -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/CUCM-01-0001e167", "0?sub-flp-22,s,1()") in new stack -- Executing [s@macro-dialout-trunk:13] Set("SIP/CUCM-01-0001e167", "OUTNUM=994125555555") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/CUCM-01-0001e167", "custom=SIP/Azerbaijan") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/CUCM-01-0001e167", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/CUCM-01-0001e167", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack -- Executing [s@macro-dialout-trunk:17] Macro("SIP/CUCM-01-0001e167", "dialout-trunk-predial-hook,") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/CUCM-01-0001e167", "") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/CUCM-01-0001e167", "0?bypass,1") in new stack -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/CUCM-01-0001e167", "0?Set(CONNECTEDLINE(num,i)=994125555555)") in new stack -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/CUCM-01-0001e167", "0?Set(CONNECTEDLINE(name,i)=CID:121234567)") in new stack -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/CUCM-01-0001e167", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:22] Dial("SIP/CUCM-01-0001e167", "SIP/Azerbaijan/994125555555,300,Tt") in new stack == Using SIP VIDEO TOS bits 136 == Using SIP VIDEO CoS mark 6 == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2017-01-27 12:28:47.665794'},'','','','','','s','from-internal','SIP/Azerbaijan-0001e168','','',3,'','1485512927.131101','1485512927.131100','','','')] -- Called SIP/Azerbaijan/994125555555 -- Got SIP response 500 "Internal Server Error" back from 10.10.100.50:5060 -- SIP/Azerbaijan-0001e168 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0)