Не выходит реализовать перевод внешнего звонка на внешний номер (если внутренний не отвечает перевести на мобильный). Тем много, все прочитаны но результата нет. Не понимаю почему не подменяется CID, Fixed CID Value выставлен в нужное значение, с внутренних номеров звонки проходят как надо.
Система: FreePBX 13
Конфигурация:
Trunk:
Код: Выделить всё
username=2000001
type=peer
secret=111111
qualify=yes
nat=yes
insecure=port,invite
host=sip6.chukchi.net
fromuser=2000001
fromdomain=sip6.chukchi.net
context=from-pstn
canreinvite=no
Код: Выделить всё
[outrt-1] ; Russia
include => outrt-1-custom
exten => _[9]XXXXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _[9]XXXXXXXXX/912,1,Macro(user-callerid,LIMIT,EXTERNAL,)
exten => _[9]XXXXXXXXX/912,n,Gosub(sub-record-check,s,1(out,${EXTEN},dontcare))
exten => _[9]XXXXXXXXX/912,n,Set(MOHCLASS=${IF($["${MOHCLASS}"=""]?default:${MOHCLASS})})
exten => _[9]XXXXXXXXX/912,n,Set(_NODEST=)
exten => _[9]XXXXXXXXX/912,n,Macro(dialout-trunk,2,8${EXTEN},,off)
exten => _[9]XXXXXXXXX/912,n,Macro(outisbusy,)
Код: Выделить всё
exten => FM912,1,Goto(912,FM912)
exten => 912,1,GotoIf($[ "${DB(AMPUSER/912/followme/ddial)}" = "EXTENSION" ]?ext-local,912,1)
exten => 912,n(FM912),Macro(user-callerid,)
exten => 912,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}I)
exten => 912,n,Set(CONNECTEDLINE(num,i)=912)
exten => 912,n,Gosub(sub-presencestate-display,s,1(912))
exten => 912,n,Set(CONNECTEDLINE(name)=${DB(AMPUSER/912/cidname)}${PRESENCESTATE_DISPLAY})
exten => 912,n,Set(FM_DIALSTATUS=${EXTENSION_STATE(912@ext-local)})
exten => 912,n,Set(__EXTTOCALL=${EXTEN})
exten => 912,n,Set(__PICKUPMARK=${EXTEN})
exten => 912,n,Macro(blkvm-setifempty,)
exten => 912,n,GotoIf($["${GOSUB_RETVAL}" = "TRUE"]?skipov)
exten => 912,n,Macro(blkvm-set,reset)
exten => 912,n,Set(__NODEST=)
exten => 912,n(skipov),Set(RRNODEST=${NODEST})
exten => 912,n(skipvmblk),Set(__NODEST=${EXTEN})
exten => 912,n,GosubIf($[${DB_EXISTS(AMPUSER/912/followme/changecid)} = 1 & "${DB(AMPUSER/912/followme/changecid)}" != "default" & "${DB(AMPUSER/912/followme/changecid)}" != ""]?sub-fmsetcid,s,1())
exten => 912,n,Set(RecordMethod=Group)
exten => 912,n(checkrecord),Gosub(sub-record-check,s,1(exten,912,))
exten => 912,n,GotoIf($["x${ALERT_INFO}"!="x"]?$[${PRIORITY}+2])})
exten => 912,n,Set(__ALERT_INFO= )
exten => 912,n,GotoIf($[$[ "${DB(AMPUSER/912/followme/prering)}" = "0" ] | $[ "${DB(AMPUSER/912/followme/prering)}" = "" ]] ?skipsimple)
exten => 912,n,Macro(simple-dial,912,${DB(AMPUSER/912/followme/prering)})
exten => 912,n(skipsimple),Set(RingGroupMethod=ringall-prim)
exten => 912,n,Set(_FMGRP=912)
exten => 912,n(DIALGRP),GotoIf($[("${DB(AMPUSER/912/followme/grpconf)}"="ENABLED") | ("${FORCE_CONFIRM}"!="") ]?doconfirm)
exten => 912,n,Macro(dial,${DB(AMPUSER/912/followme/grptime)},${DIAL_OPTIONS},${DB(AMPUSER/912/followme/grplist)})
exten => 912,n,Goto(nextstep)
exten => 912,n(doconfirm),Macro(dial-confirm,${DB(AMPUSER/912/followme/grptime)},${DIAL_OPTIONS},${DB(AMPUSER/912/followme/grplist)},912)
exten => 912,n(nextstep),Set(RingGroupMethod=)
exten => 912,n,GotoIf($["foo${RRNODEST}" != "foo"]?nodest)
exten => 912,n,Set(__NODEST=)
exten => 912,n,Set(__PICKUPMARK=)
exten => 912,n,Macro(blkvm-clr,)
exten => 912,n,Set(DIALSTATUS=${IF($["${FM_DIALSTATUS}"="NOT_INUSE"&"${DIALSTATUS}"!="CHANUNAVAIL"]?NOANSWER:${IF($["${DIALSTATUS}"="CHANUNAVAIL"|"${FM_DIALSTATUS}"="UNAVAILABLE"|"${FM_DIALSTATUS}"="UNKNOWN"|"${FM_DIALSTATUS}"="INVALID"$
exten => 912,n,Goto(app-blackhole,busy,1)
exten => 912,n(nodest),Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST})
Код: Выделить всё
Connected to Asterisk 13.7.0 currently running on asterisk-office (pid = 1638)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [2000001@from-pstn:1] NoOp("SIP/out-2000001-000001de", "Catch-All DID Match - Found 2000001 - You probably want a DID for this.") in new stack
-- Executing [2000001@from-pstn:2] Log("SIP/out-2000001-000001de", "WARNING,Friendly Scanner from 1.1.1.1") in new stack
[2016-01-25 11:11:19] WARNING[7250][C-00000109]: Ext. 2000001:2 @ from-pstn: Friendly Scanner from 1.1.1.1
-- Executing [2000001@from-pstn:3] Set("SIP/out-2000001-000001de", "__FROM_DID=2000001") in new stack
-- Executing [2000001@from-pstn:4] Goto("SIP/out-2000001-000001de", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] ExecIf("SIP/out-2000001-000001de", "0?Set(__FROM_DID=s)") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/out-2000001-000001de", "sub-record-check,s,1(in,s,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/out-2000001-000001de", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/out-2000001-000001de", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/out-2000001-000001de", "NOW=1453702279") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/out-2000001-000001de", "__DAY=25") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/out-2000001-000001de", "__MONTH=01") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/out-2000001-000001de", "__YEAR=2016") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/out-2000001-000001de", "__TIMESTR=20160125-111119") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/out-2000001-000001de", "__FROMEXTEN=unknown") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/out-2000001-000001de", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/out-2000001-000001de", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/out-2000001-000001de", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/out-2000001-000001de", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/out-2000001-000001de", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/out-2000001-000001de", "2?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/out-2000001-000001de", "1?sub-record-check,in,1") in new stack
-- Goto (sub-record-check,in,1)
-- Executing [in@sub-record-check:1] NoOp("SIP/out-2000001-000001de", "Inbound Recording Check to s") in new stack
-- Executing [in@sub-record-check:2] Set("SIP/out-2000001-000001de", "FROMEXTEN=unknown") in new stack
-- Executing [in@sub-record-check:3] ExecIf("SIP/out-2000001-000001de", "10?Set(FROMEXTEN=1235555)") in new stack
-- Executing [in@sub-record-check:4] Gosub("SIP/out-2000001-000001de", "recordcheck,1(dontcare,in,s)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/out-2000001-000001de", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/out-2000001-000001de", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [in@sub-record-check:5] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@ext-did:3] Gosub("SIP/out-2000001-000001de", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/out-2000001-000001de", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/out-2000001-000001de", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@ext-did:4] Set("SIP/out-2000001-000001de", "CDR(did)=2000001") in new stack
-- Executing [s@ext-did:5] ExecIf("SIP/out-2000001-000001de", "1 ?Set(CALLERID(name)=1235555)") in new stack
-- Executing [s@ext-did:6] Set("SIP/out-2000001-000001de", "CHANNEL(musicclass)=default") in new stack
-- Executing [s@ext-did:7] Set("SIP/out-2000001-000001de", "__MOHCLASS=default") in new stack
-- Executing [s@ext-did:8] Set("SIP/out-2000001-000001de", "__REVERSAL_REJECT=FALSE") in new stack
-- Executing [s@ext-did:9] GotoIf("SIP/out-2000001-000001de", "1?post-reverse-charge") in new stack
-- Goto (ext-did,s,11)
-- Executing [s@ext-did:11] NoOp("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@ext-did:12] Set("SIP/out-2000001-000001de", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:13] Set("SIP/out-2000001-000001de", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:14] Set("SIP/out-2000001-000001de", "CALLERID(name-pres)=allowed_not_screened") in new stack
-- Executing [s@ext-did:15] Set("SIP/out-2000001-000001de", "CALLERID(num-pres)=allowed_not_screened") in new stack
-- Executing [s@ext-did:16] Set("SIP/out-2000001-000001de", "__ALERT_INFO= ") in new stack
-- Executing [s@ext-did:17] NoOp("SIP/out-2000001-000001de", "CallerID Entry Point") in new stack
-- Executing [s@ext-did:18] Goto("SIP/out-2000001-000001de", "ivr-2,s,1") in new stack
-- Goto (ivr-2,s,1)
-- Executing [s@ivr-2:1] Set("SIP/out-2000001-000001de", "TIMEOUT_LOOPCOUNT=0") in new stack
-- Executing [s@ivr-2:2] Set("SIP/out-2000001-000001de", "INVALID_LOOPCOUNT=0") in new stack
-- Executing [s@ivr-2:3] Set("SIP/out-2000001-000001de", "_IVR_CONTEXT_ivr-2=") in new stack
-- Executing [s@ivr-2:4] Set("SIP/out-2000001-000001de", "_IVR_CONTEXT=ivr-2") in new stack
-- Executing [s@ivr-2:5] Set("SIP/out-2000001-000001de", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-2:6] GotoIf("SIP/out-2000001-000001de", "0?skip") in new stack
-- Executing [s@ivr-2:7] Answer("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@ivr-2:8] Wait("SIP/out-2000001-000001de", "1") in new stack
> 0x7f99402ccbe0 -- Probation passed - setting RTP source address to 1.1.1.1:27684
-- Executing [s@ivr-2:9] Set("SIP/out-2000001-000001de", "IVR_MSG=custom/ivr-offcie") in new stack
-- Executing [s@ivr-2:10] Set("SIP/out-2000001-000001de", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-2:11] ExecIf("SIP/out-2000001-000001de", "1?Background(custom/ivr-offcie)") in new stack
-- <SIP/out-2000001-000001de> Playing 'custom/ivr-offcie.slin' (language 'en')
-- Executing [912@ivr-2:1] Macro("SIP/out-2000001-000001de", "blkvm-clr,") in new stack
-- Executing [s@macro-blkvm-clr:1] Set("SIP/out-2000001-000001de", "SHARED(BLKVM,)=") in new stack
-- Executing [s@macro-blkvm-clr:2] Set("SIP/out-2000001-000001de", "GOSUB_RETVAL=") in new stack
-- Executing [s@macro-blkvm-clr:3] MacroExit("SIP/out-2000001-000001de", "") in new stack
-- Executing [912@ivr-2:2] Set("SIP/out-2000001-000001de", "__NODEST=") in new stack
-- Executing [912@ivr-2:3] Goto("SIP/out-2000001-000001de", "from-did-direct,912,1") in new stack
-- Goto (from-did-direct,912,1)
-- Executing [912@from-did-direct:1] GotoIf("SIP/out-2000001-000001de", "0?ext-local,912,1") in new stack
-- Executing [912@from-did-direct:2] Macro("SIP/out-2000001-000001de", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/out-2000001-000001de", "TOUCH_MONITOR=1453702279.572") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/out-2000001-000001de", "AMPUSER=1235555") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/out-2000001-000001de", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/out-2000001-000001de", "1?Set(REALCALLERIDNUM=1235555)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/out-2000001-000001de", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/out-2000001-000001de", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/out-2000001-000001de", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/out-2000001-000001de", "1?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/out-2000001-000001de", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] Set("SIP/out-2000001-000001de", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("SIP/out-2000001-000001de", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("SIP/out-2000001-000001de", "CALLERID(number)=1235555") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/out-2000001-000001de", "CALLERID(name)=1235555") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/out-2000001-000001de", "CDR(cnum)=1235555") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/out-2000001-000001de", "CDR(cnam)=1235555") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/out-2000001-000001de", "CHANNEL(language)=en") in new stack
-- Executing [912@from-did-direct:3] Set("SIP/out-2000001-000001de", "DIAL_OPTIONS=TtrI") in new stack
-- Executing [912@from-did-direct:4] Set("SIP/out-2000001-000001de", "CONNECTEDLINE(num,i)=912") in new stack
-- Executing [912@from-did-direct:5] Gosub("SIP/out-2000001-000001de", "sub-presencestate-display,s,1(912)") in new stack
-- Executing [s@sub-presencestate-display:1] Goto("SIP/out-2000001-000001de", "state-not_set,1") in new stack
-- Goto (sub-presencestate-display,state-not_set,1)
-- Executing [state-not_set@sub-presencestate-display:1] Set("SIP/out-2000001-000001de", "PRESENCESTATE_DISPLAY=") in new stack
-- Executing [state-not_set@sub-presencestate-display:2] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [912@from-did-direct:6] Set("SIP/out-2000001-000001de", "CONNECTEDLINE(name)=Зеленский А.В.") in new stack
-- Executing [912@from-did-direct:7] Set("SIP/out-2000001-000001de", "FM_DIALSTATUS=NOT_INUSE") in new stack
-- Executing [912@from-did-direct:8] Set("SIP/out-2000001-000001de", "__EXTTOCALL=912") in new stack
-- Executing [912@from-did-direct:9] Set("SIP/out-2000001-000001de", "__PICKUPMARK=912") in new stack
-- Executing [912@from-did-direct:10] Macro("SIP/out-2000001-000001de", "blkvm-setifempty,") in new stack
-- Executing [s@macro-blkvm-setifempty:1] GotoIf("SIP/out-2000001-000001de", "1?init") in new stack
-- Goto (macro-blkvm-setifempty,s,4)
-- Executing [s@macro-blkvm-setifempty:4] Set("SIP/out-2000001-000001de", "__BLKVM_CHANNEL=SIP/out-2000001-000001de") in new stack
-- Executing [s@macro-blkvm-setifempty:5] Set("SIP/out-2000001-000001de", "SHARED(BLKVM,SIP/out-2000001-000001de)=TRUE") in new stack
-- Executing [s@macro-blkvm-setifempty:6] Set("SIP/out-2000001-000001de", "GOSUB_RETVAL=TRUE") in new stack
-- Executing [s@macro-blkvm-setifempty:7] MacroExit("SIP/out-2000001-000001de", "") in new stack
-- Executing [912@from-did-direct:11] GotoIf("SIP/out-2000001-000001de", "1?skipov") in new stack
-- Goto (from-did-direct,912,14)
-- Executing [912@from-did-direct:14] Set("SIP/out-2000001-000001de", "RRNODEST=") in new stack
-- Executing [912@from-did-direct:15] Set("SIP/out-2000001-000001de", "__NODEST=912") in new stack
-- Executing [912@from-did-direct:16] GosubIf("SIP/out-2000001-000001de", "1?sub-fmsetcid,s,1()") in new stack
-- Executing [s@sub-fmsetcid:1] Goto("SIP/out-2000001-000001de", "s-extern,1") in new stack
-- Goto (sub-fmsetcid,s-extern,1)
-- Executing [s-extern@sub-fmsetcid:1] ExecIf("SIP/out-2000001-000001de", "1?Set(__TRUNKCIDOVERRIDE=2000001)") in new stack
-- Executing [s-extern@sub-fmsetcid:2] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [912@from-did-direct:17] Set("SIP/out-2000001-000001de", "RecordMethod=Group") in new stack
-- Executing [912@from-did-direct:18] Gosub("SIP/out-2000001-000001de", "sub-record-check,s,1(exten,912,)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/out-2000001-000001de", "10?initialized") in new stack
-- Goto (sub-record-check,s,10)
-- Executing [s@sub-record-check:10] NoOp("SIP/out-2000001-000001de", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/out-2000001-000001de", "1?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/out-2000001-000001de", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/out-2000001-000001de", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/out-2000001-000001de", "5?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/out-2000001-000001de", "1?sub-record-check,exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] NoOp("SIP/out-2000001-000001de", "Exten Recording Check between 1235555 and 912") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/out-2000001-000001de", "CALLTYPE=external") in new stack
-- Executing [exten@sub-record-check:3] ExecIf("SIP/out-2000001-000001de", "0?Set(CALLTYPE=)") in new stack
-- Executing [exten@sub-record-check:4] Set("SIP/out-2000001-000001de", "CALLEE=dontcare") in new stack
-- Executing [exten@sub-record-check:5] ExecIf("SIP/out-2000001-000001de", "0?Set(CALLEE=dontcare)") in new stack
-- Executing [exten@sub-record-check:6] GotoIf("SIP/out-2000001-000001de", "1?callee") in new stack
-- Goto (sub-record-check,exten,11)
-- Executing [exten@sub-record-check:11] Gosub("SIP/out-2000001-000001de", "recordcheck,1(dontcare,external,912)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/out-2000001-000001de", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/out-2000001-000001de", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [exten@sub-record-check:12] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [912@from-did-direct:19] GotoIf("SIP/out-2000001-000001de", "1?21)}") in new stack
-- Goto (from-did-direct,912,21)
-- Executing [912@from-did-direct:21] GotoIf("SIP/out-2000001-000001de", "0 ?skipsimple") in new stack
-- Executing [912@from-did-direct:22] Macro("SIP/out-2000001-000001de", "simple-dial,912,15") in new stack
-- Executing [s@macro-simple-dial:1] Set("SIP/out-2000001-000001de", "__EXTTOCALL=912") in new stack
-- Executing [s@macro-simple-dial:2] Set("SIP/out-2000001-000001de", "RT=15") in new stack
-- Executing [s@macro-simple-dial:3] Set("SIP/out-2000001-000001de", "CFUEXT=") in new stack
-- Executing [s@macro-simple-dial:4] Set("SIP/out-2000001-000001de", "CFBEXT=") in new stack
-- Executing [s@macro-simple-dial:5] Set("SIP/out-2000001-000001de", "CWI_TMP=") in new stack
-- Executing [s@macro-simple-dial:6] Macro("SIP/out-2000001-000001de", "dial-one,15,TtrI,912") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/out-2000001-000001de", "DEXTEN=912") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/out-2000001-000001de", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/out-2000001-000001de", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/out-2000001-000001de", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/out-2000001-000001de", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/out-2000001-000001de", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/out-2000001-000001de", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/out-2000001-000001de", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/out-2000001-000001de", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [s@macro-dial-one:23] GotoIf("SIP/out-2000001-000001de", "0?next3:continue") in new stack
-- Goto (macro-dial-one,s,25)
-- Executing [s@macro-dial-one:25] GotoIf("SIP/out-2000001-000001de", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/out-2000001-000001de", "1?dstring,1():dlocal,1()") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/out-2000001-000001de", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/out-2000001-000001de", "DEVICES=912") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/out-2000001-000001de", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/out-2000001-000001de", "0?Set(DEVICES=12)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/out-2000001-000001de", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/out-2000001-000001de", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/out-2000001-000001de", "THISDIAL=SIP/912") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/out-2000001-000001de", "1?zap2dahdi,1()") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/out-2000001-000001de", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/out-2000001-000001de", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/out-2000001-000001de", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/out-2000001-000001de", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/out-2000001-000001de", "THISPART2=SIP/912") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/out-2000001-000001de", "0?Set(THISPART2=DAHDI/912)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/out-2000001-000001de", "NEWDIAL=SIP/912&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/out-2000001-000001de", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/out-2000001-000001de", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/out-2000001-000001de", "THISDIAL=SIP/912") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [dstring@macro-dial-one:9] GotoIf("SIP/out-2000001-000001de", "1?docheck") in new stack
-- Goto (macro-dial-one,dstring,12)
-- Executing [dstring@macro-dial-one:12] GotoIf("SIP/out-2000001-000001de", "0?skipset") in new stack
-- Executing [dstring@macro-dial-one:13] Set("SIP/out-2000001-000001de", "DSTRING=SIP/912&") in new stack
-- Executing [dstring@macro-dial-one:14] Set("SIP/out-2000001-000001de", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:15] GotoIf("SIP/out-2000001-000001de", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:16] ExecIf("SIP/out-2000001-000001de", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:17] Set("SIP/out-2000001-000001de", "DSTRING=SIP/912") in new stack
-- Executing [dstring@macro-dial-one:18] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/out-2000001-000001de", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/out-2000001-000001de", "0?skiptrace") in new stack
-- Executing [s@macro-dial-one:29] GosubIf("SIP/out-2000001-000001de", "1?ctset,1():ctclear,1()") in new stack
-- Executing [ctset@macro-dial-one:1] Set("SIP/out-2000001-000001de", "DB(CALLTRACE/912)=1235555") in new stack
-- Executing [ctset@macro-dial-one:2] Return("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@macro-dial-one:30] Set("SIP/out-2000001-000001de", "D_OPTIONS=TtrIM(auto-blkvm)") in new stack
-- Executing [s@macro-dial-one:31] NoOp("SIP/out-2000001-000001de", "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/out-2000001-000001de", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/out-2000001-000001de", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:34] ExecIf("SIP/out-2000001-000001de", "0?Set(ALERT_INFO=)") in new stack
-- Executing [s@macro-dial-one:35] GosubIf("SIP/out-2000001-000001de", "0?func-set-sipheader,s,1(Alert-Info, )") in new stack
-- Executing [s@macro-dial-one:36] ExecIf("SIP/out-2000001-000001de", "1?Set(CHANNEL(musicclass)=default)") in new stack
-- Executing [s@macro-dial-one:37] GosubIf("SIP/out-2000001-000001de", "0?qwait,1()") in new stack
-- Executing [s@macro-dial-one:38] Set("SIP/out-2000001-000001de", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:39] Set("SIP/out-2000001-000001de", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:40] GotoIf("SIP/out-2000001-000001de", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:41] GotoIf("SIP/out-2000001-000001de", "1?godial") in new stack
-- Goto (macro-dial-one,s,46)
-- Executing [s@macro-dial-one:46] Macro("SIP/out-2000001-000001de", "dialout-one-predial-hook,") in new stack
-- Executing [s@macro-dialout-one-predial-hook:1] MacroExit("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@macro-dial-one:47] Dial("SIP/out-2000001-000001de", "SIP/912,15,TtrIM(auto-blkvm)b(func-apply-sipheaders^s^1)") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- SIP/912-000001df Internal Gosub(func-apply-sipheaders,s,1) start
-- Executing [s@func-apply-sipheaders:1] NoOp("SIP/912-000001df", "Applying SIP Headers to channel") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("SIP/912-000001df", "SIPHEADERKEYS=") in new stack
-- Executing [s@func-apply-sipheaders:3] While("SIP/912-000001df", "0") in new stack
-- Jumping to priority 7
-- Executing [s@func-apply-sipheaders:8] Return("SIP/912-000001df", "") in new stack
== Spawn extension (from-internal, 912, 1) exited non-zero on 'SIP/912-000001df'
-- SIP/912-000001df Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
-- Called SIP/912
-- Connected line update to SIP/out-2000001-000001de prevented.
-- SIP/912-000001df is ringing
-- Nobody picked up in 15000 ms
-- Executing [s@macro-dial-one:48] ExecIf("SIP/out-2000001-000001de", "0?MacroExit()") in new stack
-- Executing [s@macro-dial-one:49] ExecIf("SIP/out-2000001-000001de", "0?Set(DIALSTATUS=)") in new stack
-- Executing [s@macro-dial-one:50] GosubIf("SIP/out-2000001-000001de", "0?s-NOANSWER,1()") in new stack
-- Executing [s@macro-dial-one:51] MacroExit("SIP/out-2000001-000001de", "") in new stack
-- Executing [s@macro-simple-dial:7] Set("SIP/out-2000001-000001de", "__CWIGNORE=") in new stack
-- Executing [s@macro-simple-dial:8] Set("SIP/out-2000001-000001de", "PR_DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-simple-dial:9] GosubIf("SIP/out-2000001-000001de", "0?docfu,1()") in new stack
-- Executing [s@macro-simple-dial:10] GosubIf("SIP/out-2000001-000001de", "0?docfb,1()") in new stack
-- Executing [s@macro-simple-dial:11] Set("SIP/out-2000001-000001de", "DIALSTATUS=NOANSWER") in new stack
-- Executing [s@macro-simple-dial:12] Goto("SIP/out-2000001-000001de", "s-NOANSWER,1") in new stack
-- Goto (macro-simple-dial,s-NOANSWER,1)
-- Executing [s-NOANSWER@macro-simple-dial:1] NoOp("SIP/out-2000001-000001de", "Extension is reporting s-NOANSWER") in new stack
-- Executing [912@from-did-direct:23] Set("SIP/out-2000001-000001de", "RingGroupMethod=ringall-prim") in new stack
-- Executing [912@from-did-direct:24] Set("SIP/out-2000001-000001de", "_FMGRP=912") in new stack
-- Executing [912@from-did-direct:25] GotoIf("SIP/out-2000001-000001de", "0?doconfirm") in new stack
-- Executing [912@from-did-direct:26] Macro("SIP/out-2000001-000001de", "dial,20,TtrI,9124444444#") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/out-2000001-000001de", "0?dial") in new stack
-- Executing [s@macro-dial:2] Set("SIP/out-2000001-000001de", "CHANNEL(musicclass)=default") in new stack
-- Executing [s@macro-dial:3] AGI("SIP/out-2000001-000001de", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is '1235555' number is '1235555'
> dialparties.agi: USE_CONFIRMATION: 'FALSE'
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'ringall-prim'
-- dialparties.agi: Added extension 9124444444# to extension map
-- dialparties.agi: Extension 9124444444# cf is disabled
> dialparties.agi: extnum 9124444444# has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: EXTENSION_STATE: 4 (UNKNOWN)
dialparties.agi: Extension 9124444444# has ExtensionState: 4
> dialparties.agi: Built External dialstring component for 9124444444: Local/9124444444@from-internal/n
-- dialparties.agi: Filtered ARG3: 9124444444
> dialparties.agi: NODEST: 912 adding M(auto-blkvm) to dialopts: TtrIM(auto-blkvm)
> dialparties.agi: NODEST: 912 blkvm enabled macro already in dialopts: TtrIM(auto-blkvm)
-- <SIP/out-2000001-000001de>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/out-2000001-000001de", "Local/9124444444@from-internal/n,20,TtrIM(auto-blkvm)b(func-apply-sipheaders^s^1),") in new stack
-- Local/9124444444@from-internal-0000002f;1 Internal Gosub(func-apply-sipheaders,s,1) start
-- Executing [s@func-apply-sipheaders:1] NoOp("Local/9124444444@from-internal-0000002f;1", "Applying SIP Headers to channel") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("Local/9124444444@from-internal-0000002f;1", "SIPHEADERKEYS=") in new stack
-- Executing [s@func-apply-sipheaders:3] While("Local/9124444444@from-internal-0000002f;1", "0") in new stack
-- Jumping to priority 7
-- Executing [s@func-apply-sipheaders:8] Return("Local/9124444444@from-internal-0000002f;1", "") in new stack
== Spawn extension (from-internal, 912, 1) exited non-zero on 'Local/9124444444@from-internal-0000002f;1'
-- Local/9124444444@from-internal-0000002f;1 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
-- Called Local/9124444444@from-internal/n
-- Executing [9124444444@from-internal:1] Macro("Local/9124444444@from-internal-0000002f;2", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/9124444444@from-internal-0000002f;2", "TOUCH_MONITOR=1453702300.575") in new stack
-- Executing [s@macro-user-callerid:2] Set("Local/9124444444@from-internal-0000002f;2", "AMPUSER=1235555") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("Local/9124444444@from-internal-0000002f;2", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("Local/9124444444@from-internal-0000002f;2", "1?Set(REALCALLERIDNUM=1235555)") in new stack
-- Executing [s@macro-user-callerid:5] Set("Local/9124444444@from-internal-0000002f;2", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("Local/9124444444@from-internal-0000002f;2", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("Local/9124444444@from-internal-0000002f;2", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("Local/9124444444@from-internal-0000002f;2", "1?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("Local/9124444444@from-internal-0000002f;2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("Local/9124444444@from-internal-0000002f;2", "CALLERID(number)=1235555") in new stack
-- Executing [s@macro-user-callerid:29] Set("Local/9124444444@from-internal-0000002f;2", "CALLERID(name)=1235555") in new stack
-- Executing [s@macro-user-callerid:30] Set("Local/9124444444@from-internal-0000002f;2", "CDR(cnum)=1235555") in new stack
-- Executing [s@macro-user-callerid:31] Set("Local/9124444444@from-internal-0000002f;2", "CDR(cnam)=1235555") in new stack
-- Executing [s@macro-user-callerid:32] Set("Local/9124444444@from-internal-0000002f;2", "CHANNEL(language)=en") in new stack
-- Executing [9124444444@from-internal:2] NoCDR("Local/9124444444@from-internal-0000002f;2", "") in new stack
-- Executing [9124444444@from-internal:3] Progress("Local/9124444444@from-internal-0000002f;2", "") in new stack
-- Local/9124444444@from-internal-0000002f;1 is making progress passing it to SIP/out-2000001-000001de
-- Executing [9124444444@from-internal:4] Wait("Local/9124444444@from-internal-0000002f;2", "1") in new stack
-- Executing [9124444444@from-internal:5] Progress("Local/9124444444@from-internal-0000002f;2", "") in new stack
-- Executing [9124444444@from-internal:6] Playback("Local/9124444444@from-internal-0000002f;2", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
-- <Local/9124444444@from-internal-0000002f;2> Playing 'silence/1.alaw' (language 'en')
-- Local/9124444444@from-internal-0000002f;1 is making progress passing it to SIP/out-2000001-000001de
-- <Local/9124444444@from-internal-0000002f;2> Playing 'cannot-complete-as-dialed.alaw' (language 'en')
-- <Local/9124444444@from-internal-0000002f;2> Playing 'check-number-dial-again.alaw' (language 'en')
-- Executing [9124444444@from-internal:7] Wait("Local/9124444444@from-internal-0000002f;2", "1") in new stack
-- Executing [9124444444@from-internal:8] Congestion("Local/9124444444@from-internal-0000002f;2", "20") in new stack
-- Local/9124444444@from-internal-0000002f;1 is circuit-busy
== Spawn extension (from-internal, 9124444444, 8) exited non-zero on 'Local/9124444444@from-internal-0000002f;2'
-- Executing [h@from-internal:1] Macro("Local/9124444444@from-internal-0000002f;2", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("Local/9124444444@from-internal-0000002f;2", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("Local/9124444444@from-internal-0000002f;2", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("Local/9124444444@from-internal-0000002f;2", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/9124444444@from-internal-0000002f;2' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'Local/9124444444@from-internal-0000002f;2'
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dial:8] Set("SIP/out-2000001-000001de", "DIALSTATUS=CONGESTION") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/out-2000001-000001de", "0?CONGESTION,1()") in new stack
-- Executing [912@from-did-direct:27] Goto("SIP/out-2000001-000001de", "nextstep") in new stack
-- Goto (from-did-direct,912,29)
-- Executing [912@from-did-direct:29] Set("SIP/out-2000001-000001de", "RingGroupMethod=") in new stack
-- Executing [912@from-did-direct:30] GotoIf("SIP/out-2000001-000001de", "0?nodest") in new stack
-- Executing [912@from-did-direct:31] Set("SIP/out-2000001-000001de", "__NODEST=") in new stack
-- Executing [912@from-did-direct:32] Set("SIP/out-2000001-000001de", "__PICKUPMARK=") in new stack
-- Executing [912@from-did-direct:33] Macro("SIP/out-2000001-000001de", "blkvm-clr,") in new stack
-- Executing [s@macro-blkvm-clr:1] Set("SIP/out-2000001-000001de", "SHARED(BLKVM,SIP/out-2000001-000001de)=") in new stack
-- Executing [s@macro-blkvm-clr:2] Set("SIP/out-2000001-000001de", "GOSUB_RETVAL=") in new stack
-- Executing [s@macro-blkvm-clr:3] MacroExit("SIP/out-2000001-000001de", "") in new stack
-- Executing [912@from-did-direct:34] Set("SIP/out-2000001-000001de", "DIALSTATUS=NOANSWER") in new stack
-- Executing [912@from-did-direct:35] Goto("SIP/out-2000001-000001de", "app-blackhole,busy,1") in new stack
-- Goto (app-blackhole,busy,1)
-- Executing [busy@app-blackhole:1] NoOp("SIP/out-2000001-000001de", "Blackhole Dest: Busy") in new stack
-- Executing [busy@app-blackhole:2] Progress("SIP/out-2000001-000001de", "") in new stack
-- Executing [busy@app-blackhole:3] Busy("SIP/out-2000001-000001de", "20") in new stack
== Spawn extension (app-blackhole, busy, 3) exited non-zero on 'SIP/out-2000001-000001de'