1 trunk 2 DIDs setup for inbound and outbound

Hi all.

I’m sure some of you have done this and I’m wondering whether you can share your experience in doing so. I was told by voip.ms that it’s not a good idea to setup multiple sub-accounts for multiple trunks in one pbx server. So what they told me is that I just need to setup 1 trunk for all the DIDs I have. Is there any guideline in how to recognize the number that comes in so that I can recognize it in the in bound routes and route it to proper extension.

For example:

1 account username for 1 trunk.

Phone 1: 206-555-1212 will go to extension 1
phone 2: 206-555-1223 will go to extension 2 or ivr for example

Where do I setup in the inbound that will let freepbx know which one goes to which extension? Or is there somewhere else I need to configure? Please advise? Many thanks in advance for all of your help.

Just put the DID in the “DID Number” field of the inbound route, then send that route to a destination.

The wiki has a lot of useful info on how to do this.

Thanks alan. I checked the wiki already and I did just as you suggested. but no luck. Still not ringing to my extension. I’m scratching my head here.

If you are sure you have the inbound routes setup correctly I would look at a call trace from the Asterisk console to see if you are being passed the DID and are correctly processing it.

Also post your trunk setup sans any sensitive info.

Gosh.

Not sure which one is more embarrassing but for some reason, under inbound incoming route, I made the assumption that Description field is just that Description for informational only.

However, out of curiosity, I removed that field and guess what? It now works. Gosh… Who would have thought.

Either way, may thanks for all of you for spending your time helping me debuged this… You guys have been amazing and tremendous help… :slight_smile:

The “Description” field is exactly what you described and should not be causing this problem. What exactly were you using for a description?

Thanks Alan. That’s the strangest part because as soon as I removed it, it works. I have like “MyHome 2065551212” as a description so that I know what it is. So do you think that’s a coincidence?

Try removing the space (although you should not have to) and see what happens. I usually don’t put the DID in the description field because it appears in the list of routes.

Thanks Alan.
This setting for trunk below works fine for inbound 1 (206-555-1212) but not picking up the phone for inbound 2 (206-555-1223)

Here is the information: (All the phone numbers already scrubbed of course)

[b]
Calling from: 206-652-5728

both DIDs share the same sub account: 2065551212-myvoipmsaccount
[/b]
The inbound I’m having problem with: 206-555-1223[/b]

Inbound Route 1
Connectivity>Inbound Routes
DID Number: 2065551212
Set Destination: Extensions: 8890

Inbound Route 2[/b]
Connectivity>Inbound Routes
DID Number: 2065551223
Set Destination: Extensions: 8890

Share Trunk:[/b]

trunk name: voip.ms trunk
Outbound Caller ID: 2065551212
Maximum channels:
Trunk Name: 2065551212
context=from-trunk
host=seattle2.voip.ms
secret=mypassword
type=friend
username=myusername
disallow=all
allow=ulaw&g722
fromuser=myusername
insecure=port,invite

Register String:
myusername:[email protected]:5080

Dial patterns

  • empty prefix + 1NXXNXXXXXX
    1+empty prefix + NXXNXXXXXX
  • empty prefix + +1NXXNXXXXXX

    Inbound Log for 206-555-1223[/b]

    – Executing [2065551223@from-trunk:1] Set(“SIP/2065551212-myvoipmsaccount”, “__FROM_DID=2065551223”) in new stack
    – Executing [2065551223@from-trunk:2] Gosub(“SIP/2065551212-myvoipmsaccount”, “app-blacklist-check,s,1()”) in new stack
    – Executing [s@app-blacklist-check:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?blacklisted”) in new stack
    – Executing [s@app-blacklist-check:2] Set(“SIP/2065551212-myvoipmsaccount”, “CALLED_BLACKLIST=1”) in new stack
    – Executing [s@app-blacklist-check:3] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [2065551223@from-trunk:3] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(did)=2065551223”) in new stack
    – Executing [2065551223@from-trunk:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0 ?Set(CALLERID(name)=01112066525728)”) in new stack
    – Executing [2065551223@from-trunk:5] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
    – Executing [2065551223@from-trunk:6] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERPRES()=allowed_not_screened”) in new stack
    – Executing [2065551223@from-trunk:7] Goto(“SIP/2065551212-myvoipmsaccount”, “from-did-direct,8890,1”) in new stack
    – Goto (from-did-direct,8890,1)
    – Executing [8890@from-did-direct:1] Set(“SIP/2065551212-myvoipmsaccount”, “__RINGTIMER=28”) in new stack
    – Executing [8890@from-did-direct:2] Macro(“SIP/2065551212-myvoipmsaccount”, “exten-vm,novm,8890,0,0,0”) in new stack
    – Executing [s@macro-exten-vm:1] Macro(“SIP/2065551212-myvoipmsaccount”, “user-callerid,”) in new stack
    – Executing [s@macro-user-callerid:1] Set(“SIP/2065551212-myvoipmsaccount”, “TOUCH_MONITOR=1379394524.91”) in new stack
    – Executing [s@macro-user-callerid:2] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=01112066525728”) in new stack
    – Executing [s@macro-user-callerid:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?report”) in new stack
    – Executing [s@macro-user-callerid:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “1?Set(REALCALLERIDNUM=01112066525728)”) in new stack
    – Executing [s@macro-user-callerid:5] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=”) in new stack
    – Executing [s@macro-user-callerid:6] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSERCIDNAME=”) in new stack
    – Executing [s@macro-user-callerid:7] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?report”) in new stack
    – Goto (macro-user-callerid,s,15)
    – Executing [s@macro-user-callerid:15] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [s@macro-user-callerid:16] Set(“SIP/2065551212-myvoipmsaccount”, “__TTL=64”) in new stack
    – Executing [s@macro-user-callerid:17] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?continue”) in new stack
    – Goto (macro-user-callerid,s,28)
    – Executing [s@macro-user-callerid:28] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(number)=01112066525728”) in new stack
    – Executing [s@macro-user-callerid:29] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(name)=MyCallerID 01112066525728”) in new stack
    – Executing [s@macro-user-callerid:30] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnum)=01112066525728”) in new stack
    – Executing [s@macro-user-callerid:31] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnam)=MyCallerID 01112066525728”) in new stack
    – Executing [s@macro-user-callerid:32] Set(“SIP/2065551212-myvoipmsaccount”, “CHANNEL(language)=en”) in new stack
    – Executing [s@macro-exten-vm:2] Set(“SIP/2065551212-myvoipmsaccount”, “RingGroupMethod=none”) in new stack
    – Executing [s@macro-exten-vm:3] Set(“SIP/2065551212-myvoipmsaccount”, “__EXTTOCALL=8890”) in new stack
    – Executing [s@macro-exten-vm:4] Set(“SIP/2065551212-myvoipmsaccount”, “__PICKUPMARK=8890”) in new stack
    – Executing [s@macro-exten-vm:5] Set(“SIP/2065551212-myvoipmsaccount”, “RT=”) in new stack
    – Executing [s@macro-exten-vm:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
    – Executing [s@macro-exten-vm:7] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [s@macro-exten-vm:8] Gosub(“SIP/2065551212-myvoipmsaccount”, “sub-record-check,s,1(exten,8890,)”) in new stack
    – Executing [s@sub-record-check:1] Set(“SIP/2065551212-myvoipmsaccount”, “REC_POLICY_MODE_SAVE=”) in new stack
    – Executing [s@sub-record-check:2] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?check”) in new stack
    – Goto (sub-record-check,s,7)
    – Executing [s@sub-record-check:7] Set(“SIP/2065551212-myvoipmsaccount”, “__MON_FMT=wav”) in new stack
    – Executing [s@sub-record-check:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next”) in new stack
    – Goto (sub-record-check,s,11)
    – Executing [s@sub-record-check:11] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [s@sub-record-check:12] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(__REC_POLICY_MODE=)”) in new stack
    – Executing [s@sub-record-check:13] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exten,1”) in new stack
    – Executing [s@sub-record-check:14] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_STATUS=INITIALIZED”) in new stack
    – Executing [s@sub-record-check:15] Set(“SIP/2065551212-myvoipmsaccount”, “NOW=1379394524”) in new stack
    – Executing [s@sub-record-check:16] Set(“SIP/2065551212-myvoipmsaccount”, “__DAY=16”) in new stack
    – Executing [s@sub-record-check:17] Set(“SIP/2065551212-myvoipmsaccount”, “__MONTH=09”) in new stack
    – Executing [s@sub-record-check:18] Set(“SIP/2065551212-myvoipmsaccount”, “__YEAR=2013”) in new stack
    – Executing [s@sub-record-check:19] Set(“SIP/2065551212-myvoipmsaccount”, “__TIMESTR=20130916-220844”) in new stack
    – Executing [s@sub-record-check:20] Set(“SIP/2065551212-myvoipmsaccount”, “__FROMEXTEN=01112066525728”) in new stack
    – Executing [s@sub-record-check:21] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLFILENAME=exten-8890-01112066525728-20130916-220844-1379394524.91”) in new stack
    – Executing [s@sub-record-check:22] Goto(“SIP/2065551212-myvoipmsaccount”, “exten,1”) in new stack
    – Goto (sub-record-check,exten,1)
    – Executing [exten@sub-record-check:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?callee”) in new stack
    – Executing [exten@sub-record-check:2] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=dontcare”) in new stack
    – Executing [exten@sub-record-check:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?caller”) in new stack
    – Goto (sub-record-check,exten,10)
    – Executing [exten@sub-record-check:10] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=”) in new stack
    – Executing [exten@sub-record-check:11] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?record,1(exten,8890,01112066525728)”) in new stack
    – Executing [exten@sub-record-check:12] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-exten-vm:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?macrodial”) in new stack
    – Goto (macro-exten-vm,s,15)
    – Executing [s@macro-exten-vm:15] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?clrheader,1()”) in new stack
    – Executing [s@macro-exten-vm:16] Macro(“SIP/2065551212-myvoipmsaccount”, “dial-one,Ttr,8890”) in new stack
    – Executing [s@macro-dial-one:1] Set(“SIP/2065551212-myvoipmsaccount”, “DEXTEN=8890”) in new stack
    – Executing [s@macro-dial-one:2] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS_CW=”) in new stack
    – Executing [s@macro-dial-one:3] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?screen,1()”) in new stack
    – Executing [s@macro-dial-one:4] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?cf,1()”) in new stack
    – Executing [s@macro-dial-one:5] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?skip1”) in new stack
    – Goto (macro-dial-one,s,8)
    – Executing [s@macro-dial-one:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [s@macro-dial-one:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [s@macro-dial-one:10] Set(“SIP/2065551212-myvoipmsaccount”, “EXTHASCW=ENABLED”) in new stack
    – Executing [s@macro-dial-one:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?next1:cwinusebusy”) in new stack
    – Goto (macro-dial-one,s,23)
    – Executing [s@macro-dial-one:23] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next3:continue”) in new stack
    – Goto (macro-dial-one,s,24)
    – Executing [s@macro-dial-one:24] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
    – Executing [s@macro-dial-one:25] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [s@macro-dial-one:26] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?dstring,1():dlocal,1()”) in new stack
    – Executing [dstring@macro-dial-one:1] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=”) in new stack
    – Executing [dstring@macro-dial-one:2] Set(“SIP/2065551212-myvoipmsaccount”, “DEVICES=8890”) in new stack
    – Executing [dstring@macro-dial-one:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [dstring@macro-dial-one:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DEVICES=890)”) in new stack
    – Executing [dstring@macro-dial-one:5] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT=1”) in new stack
    – Executing [dstring@macro-dial-one:6] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=1”) in new stack
    – Executing [dstring@macro-dial-one:7] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [dstring@macro-dial-one:8] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?zap2dahdi,1()”) in new stack
    – Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=”) in new stack
    – Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT2=1”) in new stack
    – Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=1”) in new stack
    – Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/2065551212-myvoipmsaccount”, “THISPART2=SIP/8890”) in new stack
    – Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(THISPART2=DAHDI/8890)”) in new stack
    – Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=SIP/8890&”) in new stack
    – Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=2”) in new stack
    – Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin2”) in new stack
    – Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [dstring@macro-dial-one:9] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890&”) in new stack
    – Executing [dstring@macro-dial-one:10] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=2”) in new stack
    – Executing [dstring@macro-dial-one:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin”) in new stack
    – Executing [dstring@macro-dial-one:12] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890”) in new stack
    – Executing [dstring@macro-dial-one:13] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-dial-one:27] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [s@macro-dial-one:28] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?skiptrace”) in new stack
    – Executing [s@macro-dial-one:29] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?ctset,1():ctclear,1()”) in new stack
    – Executing [ctset@macro-dial-one:1] Set(“SIP/2065551212-myvoipmsaccount”, “DB(CALLTRACE/8890)=01112066525728”) in new stack
    – Executing [ctset@macro-dial-one:2] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-dial-one:30] Set(“SIP/2065551212-myvoipmsaccount”, “D_OPTIONS=Ttr”) in new stack
    – Executing [s@macro-dial-one:31] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader(Alert-Info: )”) in new stack
    – Executing [s@macro-dial-one:32] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader()”) in new stack
    – Executing [s@macro-dial-one:33] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CHANNEL(musicclass)=)”) in new stack
    – Executing [s@macro-dial-one:34] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?qwait,1()”) in new stack
    – Executing [s@macro-dial-one:35] Set(“SIP/2065551212-myvoipmsaccount”, “__CWIGNORE=”) in new stack
    – Executing [s@macro-dial-one:36] Set(“SIP/2065551212-myvoipmsaccount”, “__KEEPCID=TRUE”) in new stack
    – Executing [s@macro-dial-one:37] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?usegoto,1”) in new stack
    – Executing [s@macro-dial-one:38] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?godial”) in new stack
    – Goto (macro-dial-one,s,42)
    – Executing [s@macro-dial-one:42] Dial(“SIP/2065551212-myvoipmsaccount”, “SIP/8890,Ttr”) in new stack
    [2013-09-16 22:08:44] WARNING[5668][C-00000058]: app_dial.c:2437 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
    == Everyone is busy/congested at this time (1:0/0/1)
    – Executing [s@macro-dial-one:43] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [s@macro-dial-one:44] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS=)”) in new stack
    – Executing [s@macro-dial-one:45] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?s-CHANUNAVAIL,1()”) in new stack
    – Executing [s@macro-dial-one:46] MacroExit(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-exten-vm:17] Set(“SIP/2065551212-myvoipmsaccount”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [s@macro-exten-vm:18] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfu,1()”) in new stack
    – Executing [s@macro-exten-vm:19] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfb,1()”) in new stack
    – Executing [s@macro-exten-vm:20] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [s@macro-exten-vm:21] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [s@macro-exten-vm:22] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?s-CHANUNAVAIL,1”) in new stack
    – Goto (macro-exten-vm,s-CHANUNAVAIL,1)
    – Executing [s-CHANUNAVAIL@macro-exten-vm:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exit,1”) in new stack
    – Executing [s-CHANUNAVAIL@macro-exten-vm:2] PlayTones(“SIP/2065551212-myvoipmsaccount”, “congestion”) in new stack
    – Executing [s-CHANUNAVAIL@macro-exten-vm:3] Congestion(“SIP/2065551212-myvoipmsaccount”, “10”) in new stack
    == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 3) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’ in macro ‘exten-vm’
    == Spawn extension (from-did-direct, 8890, 2) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’
    – Executing [h@from-did-direct:1] Macro(“SIP/2065551212-myvoipmsaccount”, “hangupcall,”) in new stack
    – Executing [s@macro-hangupcall:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?theend”) in new stack
    – Goto (macro-hangupcall,s,3)
    – Executing [s@macro-hangupcall:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CDR(recordingfile)=)”) in new stack
    – Executing [s@macro-hangupcall:4] Hangup(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’ in macro ‘hangupcall’
    == Spawn extension (from-did-direct, h, 1) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’
    == Using SIP RTP TOS bits 184
    == Using SIP RTP CoS mark 5
    – Executing [2065551223@from-trunk:1] Set(“SIP/2065551212-myvoipmsaccount”, “__FROM_DID=2065551223”) in new stack
    – Executing [2065551223@from-trunk:2] Gosub(“SIP/2065551212-myvoipmsaccount”, “app-blacklist-check,s,1()”) in new stack
    – Executing [s@app-blacklist-check:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?blacklisted”) in new stack
    – Executing [s@app-blacklist-check:2] Set(“SIP/2065551212-myvoipmsaccount”, “CALLED_BLACKLIST=1”) in new stack
    – Executing [s@app-blacklist-check:3] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [2065551223@from-trunk:3] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(did)=2065551223”) in new stack
    – Executing [2065551223@from-trunk:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0 ?Set(CALLERID(name)=01112066525728)”) in new stack
    – Executing [2065551223@from-trunk:5] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
    – Executing [2065551223@from-trunk:6] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERPRES()=allowed_not_screened”) in new stack
    – Executing [2065551223@from-trunk:7] Goto(“SIP/2065551212-myvoipmsaccount”, “from-did-direct,8890,1”) in new stack
    – Goto (from-did-direct,8890,1)
    – Executing [8890@from-did-direct:1] Set(“SIP/2065551212-myvoipmsaccount”, “__RINGTIMER=28”) in new stack
    – Executing [8890@from-did-direct:2] Macro(“SIP/2065551212-myvoipmsaccount”, “exten-vm,novm,8890,0,0,0”) in new stack
    – Executing [s@macro-exten-vm:1] Macro(“SIP/2065551212-myvoipmsaccount”, “user-callerid,”) in new stack
    – Executing [s@macro-user-callerid:1] Set(“SIP/2065551212-myvoipmsaccount”, “TOUCH_MONITOR=1379394527.92”) in new stack
    – Executing [s@macro-user-callerid:2] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=01112066525728”) in new stack
    – Executing [s@macro-user-callerid:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?report”) in new stack
    – Executing [s@macro-user-callerid:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “1?Set(REALCALLERIDNUM=01112066525728)”) in new stack
    – Executing [s@macro-user-callerid:5] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=”) in new stack
    – Executing [s@macro-user-callerid:6] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSERCIDNAME=”) in new stack
    – Executing [s@macro-user-callerid:7] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?report”) in new stack
    – Goto (macro-user-callerid,s,15)
    – Executing [s@macro-user-callerid:15] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [s@macro-user-callerid:16] Set(“SIP/2065551212-myvoipmsaccount”, “__TTL=64”) in new stack
    – Executing [s@macro-user-callerid:17] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?continue”) in new stack
    – Goto (macro-user-callerid,s,28)
    – Executing [s@macro-user-callerid:28] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(number)=01112066525728”) in new stack
    – Executing [s@macro-user-callerid:29] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(name)=MyCallerID 01112066525728”) in new stack
    – Executing [s@macro-user-callerid:30] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnum)=01112066525728”) in new stack
    – Executing [s@macro-user-callerid:31] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnam)=MyCallerID 01112066525728”) in new stack
    – Executing [s@macro-user-callerid:32] Set(“SIP/2065551212-myvoipmsaccount”, “CHANNEL(language)=en”) in new stack
    – Executing [s@macro-exten-vm:2] Set(“SIP/2065551212-myvoipmsaccount”, “RingGroupMethod=none”) in new stack
    – Executing [s@macro-exten-vm:3] Set(“SIP/2065551212-myvoipmsaccount”, “__EXTTOCALL=8890”) in new stack
    – Executing [s@macro-exten-vm:4] Set(“SIP/2065551212-myvoipmsaccount”, “__PICKUPMARK=8890”) in new stack
    – Executing [s@macro-exten-vm:5] Set(“SIP/2065551212-myvoipmsaccount”, “RT=”) in new stack
    – Executing [s@macro-exten-vm:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
    – Executing [s@macro-exten-vm:7] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [s@macro-exten-vm:8] Gosub(“SIP/2065551212-myvoipmsaccount”, “sub-record-check,s,1(exten,8890,)”) in new stack
    – Executing [s@sub-record-check:1] Set(“SIP/2065551212-myvoipmsaccount”, “REC_POLICY_MODE_SAVE=”) in new stack
    – Executing [s@sub-record-check:2] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?check”) in new stack
    – Goto (sub-record-check,s,7)
    – Executing [s@sub-record-check:7] Set(“SIP/2065551212-myvoipmsaccount”, “__MON_FMT=wav”) in new stack
    – Executing [s@sub-record-check:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next”) in new stack
    – Goto (sub-record-check,s,11)
    – Executing [s@sub-record-check:11] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [s@sub-record-check:12] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(__REC_POLICY_MODE=)”) in new stack
    – Executing [s@sub-record-check:13] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exten,1”) in new stack
    – Executing [s@sub-record-check:14] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_STATUS=INITIALIZED”) in new stack
    – Executing [s@sub-record-check:15] Set(“SIP/2065551212-myvoipmsaccount”, “NOW=1379394527”) in new stack
    – Executing [s@sub-record-check:16] Set(“SIP/2065551212-myvoipmsaccount”, “__DAY=16”) in new stack
    – Executing [s@sub-record-check:17] Set(“SIP/2065551212-myvoipmsaccount”, “__MONTH=09”) in new stack
    – Executing [s@sub-record-check:18] Set(“SIP/2065551212-myvoipmsaccount”, “__YEAR=2013”) in new stack
    – Executing [s@sub-record-check:19] Set(“SIP/2065551212-myvoipmsaccount”, “__TIMESTR=20130916-220847”) in new stack
    – Executing [s@sub-record-check:20] Set(“SIP/2065551212-myvoipmsaccount”, “__FROMEXTEN=01112066525728”) in new stack
    – Executing [s@sub-record-check:21] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLFILENAME=exten-8890-01112066525728-20130916-220847-1379394527.92”) in new stack
    – Executing [s@sub-record-check:22] Goto(“SIP/2065551212-myvoipmsaccount”, “exten,1”) in new stack
    – Goto (sub-record-check,exten,1)
    – Executing [exten@sub-record-check:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?callee”) in new stack
    – Executing [exten@sub-record-check:2] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=dontcare”) in new stack
    – Executing [exten@sub-record-check:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?caller”) in new stack
    – Goto (sub-record-check,exten,10)
    – Executing [exten@sub-record-check:10] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=”) in new stack
    – Executing [exten@sub-record-check:11] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?record,1(exten,8890,01112066525728)”) in new stack
    – Executing [exten@sub-record-check:12] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-exten-vm:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?macrodial”) in new stack
    – Goto (macro-exten-vm,s,15)
    – Executing [s@macro-exten-vm:15] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?clrheader,1()”) in new stack
    – Executing [s@macro-exten-vm:16] Macro(“SIP/2065551212-myvoipmsaccount”, “dial-one,Ttr,8890”) in new stack
    – Executing [s@macro-dial-one:1] Set(“SIP/2065551212-myvoipmsaccount”, “DEXTEN=8890”) in new stack
    – Executing [s@macro-dial-one:2] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS_CW=”) in new stack
    – Executing [s@macro-dial-one:3] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?screen,1()”) in new stack
    – Executing [s@macro-dial-one:4] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?cf,1()”) in new stack
    – Executing [s@macro-dial-one:5] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?skip1”) in new stack
    – Goto (macro-dial-one,s,8)
    – Executing [s@macro-dial-one:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [s@macro-dial-one:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [s@macro-dial-one:10] Set(“SIP/2065551212-myvoipmsaccount”, “EXTHASCW=ENABLED”) in new stack
    – Executing [s@macro-dial-one:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?next1:cwinusebusy”) in new stack
    – Goto (macro-dial-one,s,23)
    – Executing [s@macro-dial-one:23] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next3:continue”) in new stack
    – Goto (macro-dial-one,s,24)
    – Executing [s@macro-dial-one:24] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
    – Executing [s@macro-dial-one:25] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [s@macro-dial-one:26] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?dstring,1():dlocal,1()”) in new stack
    – Executing [dstring@macro-dial-one:1] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=”) in new stack
    – Executing [dstring@macro-dial-one:2] Set(“SIP/2065551212-myvoipmsaccount”, “DEVICES=8890”) in new stack
    – Executing [dstring@macro-dial-one:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [dstring@macro-dial-one:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DEVICES=890)”) in new stack
    – Executing [dstring@macro-dial-one:5] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT=1”) in new stack
    – Executing [dstring@macro-dial-one:6] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=1”) in new stack
    – Executing [dstring@macro-dial-one:7] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [dstring@macro-dial-one:8] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?zap2dahdi,1()”) in new stack
    – Executing [zap2dahdi@macro-dial-one:1] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [zap2dahdi@macro-dial-one:2] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=”) in new stack
    – Executing [zap2dahdi@macro-dial-one:3] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT2=1”) in new stack
    – Executing [zap2dahdi@macro-dial-one:4] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=1”) in new stack
    – Executing [zap2dahdi@macro-dial-one:5] Set(“SIP/2065551212-myvoipmsaccount”, “THISPART2=SIP/8890”) in new stack
    – Executing [zap2dahdi@macro-dial-one:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(THISPART2=DAHDI/8890)”) in new stack
    – Executing [zap2dahdi@macro-dial-one:7] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=SIP/8890&”) in new stack
    – Executing [zap2dahdi@macro-dial-one:8] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=2”) in new stack
    – Executing [zap2dahdi@macro-dial-one:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin2”) in new stack
    – Executing [zap2dahdi@macro-dial-one:10] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [zap2dahdi@macro-dial-one:11] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [dstring@macro-dial-one:9] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890&”) in new stack
    – Executing [dstring@macro-dial-one:10] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=2”) in new stack
    – Executing [dstring@macro-dial-one:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin”) in new stack
    – Executing [dstring@macro-dial-one:12] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890”) in new stack
    – Executing [dstring@macro-dial-one:13] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-dial-one:27] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [s@macro-dial-one:28] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?skiptrace”) in new stack
    – Executing [s@macro-dial-one:29] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?ctset,1():ctclear,1()”) in new stack
    – Executing [ctset@macro-dial-one:1] Set(“SIP/2065551212-myvoipmsaccount”, “DB(CALLTRACE/8890)=01112066525728”) in new stack
    – Executing [ctset@macro-dial-one:2] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-dial-one:30] Set(“SIP/2065551212-myvoipmsaccount”, “D_OPTIONS=Ttr”) in new stack
    – Executing [s@macro-dial-one:31] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader(Alert-Info: )”) in new stack
    – Executing [s@macro-dial-one:32] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader()”) in new stack
    – Executing [s@macro-dial-one:33] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CHANNEL(musicclass)=)”) in new stack
    – Executing [s@macro-dial-one:34] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?qwait,1()”) in new stack
    – Executing [s@macro-dial-one:35] Set(“SIP/2065551212-myvoipmsaccount”, “__CWIGNORE=”) in new stack
    – Executing [s@macro-dial-one:36] Set(“SIP/2065551212-myvoipmsaccount”, “__KEEPCID=TRUE”) in new stack
    – Executing [s@macro-dial-one:37] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?usegoto,1”) in new stack
    – Executing [s@macro-dial-one:38] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?godial”) in new stack
    – Goto (macro-dial-one,s,42)
    – Executing [s@macro-dial-one:42] Dial(“SIP/2065551212-myvoipmsaccount”, “SIP/8890,Ttr”) in new stack
    [2013-09-16 22:08:47] WARNING[5669][C-00000059]: app_dial.c:2437 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
    == Everyone is busy/congested at this time (1:0/0/1)
    – Executing [s@macro-dial-one:43] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [s@macro-dial-one:44] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS=)”) in new stack
    – Executing [s@macro-dial-one:45] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?s-CHANUNAVAIL,1()”) in new stack
    – Executing [s@macro-dial-one:46] MacroExit(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [s@macro-exten-vm:17] Set(“SIP/2065551212-myvoipmsaccount”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [s@macro-exten-vm:18] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfu,1()”) in new stack
    – Executing [s@macro-exten-vm:19] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfb,1()”) in new stack
    – Executing [s@macro-exten-vm:20] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [s@macro-exten-vm:21] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [s@macro-exten-vm:22] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?s-CHANUNAVAIL,1”) in new stack
    – Goto (macro-exten-vm,s-CHANUNAVAIL,1)
    – Executing [s-CHANUNAVAIL@macro-exten-vm:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exit,1”) in new stack
    – Executing [s-CHANUNAVAIL@macro-exten-vm:2] PlayTones(“SIP/2065551212-myvoipmsaccount”, “congestion”) in new stack
    – Executing [s-CHANUNAVAIL@macro-exten-vm:3] Congestion(“SIP/2065551212-myvoipmsaccount”, “10”) in new stack
    == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 3) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’ in macro ‘exten-vm’
    == Spawn extension (from-did-direct, 8890, 2) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’
    – Executing [h@from-did-direct:1] Macro(“SIP/2065551212-myvoipmsaccount”, “hangupcall,”) in new stack
    – Executing [s@macro-hangupcall:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?theend”) in new stack
    – Goto (macro-hangupcall,s,3)
    – Executing [s@macro-hangupcall:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CDR(recordingfile)=)”) in new stack
    – Executing [s@macro-hangupcall:4] Hangup(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’ in macro ‘hangupcall’
    == Spawn extension (from-did-direct, h, 1) exited non-zero on ‘SIP/2065551212-myvoipmsaccount’