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 [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “__FROM_DID=2065551223”) in new stack
    – Executing [[email protected]:2] Gosub(“SIP/2065551212-myvoipmsaccount”, “app-blacklist-check,s,1()”) in new stack
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?blacklisted”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “CALLED_BLACKLIST=1”) in new stack
    – Executing [[email protected]:3] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:3] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(did)=2065551223”) in new stack
    – Executing [[email protected]:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0 ?Set(CALLERID(name)=01112066525728)”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
    – Executing [[email protected]:6] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERPRES()=allowed_not_screened”) in new stack
    – Executing [[email protected]:7] Goto(“SIP/2065551212-myvoipmsaccount”, “from-did-direct,8890,1”) in new stack
    – Goto (from-did-direct,8890,1)
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “__RINGTIMER=28”) in new stack
    – Executing [[email protected]:2] Macro(“SIP/2065551212-myvoipmsaccount”, “exten-vm,novm,8890,0,0,0”) in new stack
    – Executing [[email protected]:1] Macro(“SIP/2065551212-myvoipmsaccount”, “user-callerid,”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “TOUCH_MONITOR=1379394524.91”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=01112066525728”) in new stack
    – Executing [[email protected]:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?report”) in new stack
    – Executing [[email protected]:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “1?Set(REALCALLERIDNUM=01112066525728)”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=”) in new stack
    – Executing [[email protected]:6] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSERCIDNAME=”) in new stack
    – Executing [[email protected]:7] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?report”) in new stack
    – Goto (macro-user-callerid,s,15)
    – Executing [[email protected]:15] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [[email protected]:16] Set(“SIP/2065551212-myvoipmsaccount”, “__TTL=64”) in new stack
    – Executing [[email protected]:17] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?continue”) in new stack
    – Goto (macro-user-callerid,s,28)
    – Executing [[email protected]:28] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(number)=01112066525728”) in new stack
    – Executing [[email protected]:29] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(name)=MyCallerID 01112066525728”) in new stack
    – Executing [[email protected]:30] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnum)=01112066525728”) in new stack
    – Executing [[email protected]:31] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnam)=MyCallerID 01112066525728”) in new stack
    – Executing [[email protected]:32] Set(“SIP/2065551212-myvoipmsaccount”, “CHANNEL(language)=en”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “RingGroupMethod=none”) in new stack
    – Executing [[email protected]:3] Set(“SIP/2065551212-myvoipmsaccount”, “__EXTTOCALL=8890”) in new stack
    – Executing [[email protected]:4] Set(“SIP/2065551212-myvoipmsaccount”, “__PICKUPMARK=8890”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “RT=”) in new stack
    – Executing [[email protected]:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
    – Executing [[email protected]:7] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [[email protected]:8] Gosub(“SIP/2065551212-myvoipmsaccount”, “sub-record-check,s,1(exten,8890,)”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “REC_POLICY_MODE_SAVE=”) in new stack
    – Executing [[email protected]:2] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?check”) in new stack
    – Goto (sub-record-check,s,7)
    – Executing [[email protected]:7] Set(“SIP/2065551212-myvoipmsaccount”, “__MON_FMT=wav”) in new stack
    – Executing [[email protected]:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next”) in new stack
    – Goto (sub-record-check,s,11)
    – Executing [[email protected]:11] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [[email protected]:12] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(__REC_POLICY_MODE=)”) in new stack
    – Executing [[email protected]:13] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exten,1”) in new stack
    – Executing [[email protected]:14] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_STATUS=INITIALIZED”) in new stack
    – Executing [[email protected]:15] Set(“SIP/2065551212-myvoipmsaccount”, “NOW=1379394524”) in new stack
    – Executing [[email protected]:16] Set(“SIP/2065551212-myvoipmsaccount”, “__DAY=16”) in new stack
    – Executing [[email protected]:17] Set(“SIP/2065551212-myvoipmsaccount”, “__MONTH=09”) in new stack
    – Executing [[email protected]:18] Set(“SIP/2065551212-myvoipmsaccount”, “__YEAR=2013”) in new stack
    – Executing [[email protected]:19] Set(“SIP/2065551212-myvoipmsaccount”, “__TIMESTR=20130916-220844”) in new stack
    – Executing [[email protected]:20] Set(“SIP/2065551212-myvoipmsaccount”, “__FROMEXTEN=01112066525728”) in new stack
    – Executing [[email protected]:21] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLFILENAME=exten-8890-01112066525728-20130916-220844-1379394524.91”) in new stack
    – Executing [[email protected]:22] Goto(“SIP/2065551212-myvoipmsaccount”, “exten,1”) in new stack
    – Goto (sub-record-check,exten,1)
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?callee”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=dontcare”) in new stack
    – Executing [[email protected]:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?caller”) in new stack
    – Goto (sub-record-check,exten,10)
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=”) in new stack
    – Executing [[email protected]:11] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?record,1(exten,8890,01112066525728)”) in new stack
    – Executing [[email protected]:12] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?macrodial”) in new stack
    – Goto (macro-exten-vm,s,15)
    – Executing [[email protected]:15] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?clrheader,1()”) in new stack
    – Executing [[email protected]:16] Macro(“SIP/2065551212-myvoipmsaccount”, “dial-one,Ttr,8890”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “DEXTEN=8890”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS_CW=”) in new stack
    – Executing [[email protected]:3] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?screen,1()”) in new stack
    – Executing [[email protected]:4] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?cf,1()”) in new stack
    – Executing [[email protected]:5] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?skip1”) in new stack
    – Goto (macro-dial-one,s,8)
    – Executing [[email protected]:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [[email protected]:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “EXTHASCW=ENABLED”) in new stack
    – Executing [[email protected]:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?next1:cwinusebusy”) in new stack
    – Goto (macro-dial-one,s,23)
    – Executing [[email protected]:23] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next3:continue”) in new stack
    – Goto (macro-dial-one,s,24)
    – Executing [[email protected]:24] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
    – Executing [[email protected]:25] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [[email protected]:26] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?dstring,1():dlocal,1()”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “DEVICES=8890”) in new stack
    – Executing [[email protected]:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [[email protected]:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DEVICES=890)”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT=1”) in new stack
    – Executing [[email protected]:6] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=1”) in new stack
    – Executing [[email protected]:7] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [[email protected]ial-one:8] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?zap2dahdi,1()”) in new stack
    – Executing [[email protected]:1] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=”) in new stack
    – Executing [[email protected]:3] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT2=1”) in new stack
    – Executing [[email protected]:4] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=1”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “THISPART2=SIP/8890”) in new stack
    – Executing [[email protected]:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(THISPART2=DAHDI/8890)”) in new stack
    – Executing [[email protected]:7] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=SIP/8890&”) in new stack
    – Executing [[email protected]:8] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=2”) in new stack
    – Executing [[email protected]:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin2”) in new stack
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [[email protected]:11] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:9] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890&”) in new stack
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=2”) in new stack
    – Executing [[email protected]:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin”) in new stack
    – Executing [[email protected]:12] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890”) in new stack
    – Executing [[email protected]:13] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:27] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [[email protected]:28] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?skiptrace”) in new stack
    – Executing [[email protected]:29] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?ctset,1():ctclear,1()”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “DB(CALLTRACE/8890)=01112066525728”) in new stack
    – Executing [[email protected]:2] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:30] Set(“SIP/2065551212-myvoipmsaccount”, “D_OPTIONS=Ttr”) in new stack
    – Executing [[email protected]:31] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader(Alert-Info: )”) in new stack
    – Executing [[email protected]:32] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader()”) in new stack
    – Executing [[email protected]:33] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CHANNEL(musicclass)=)”) in new stack
    – Executing [[email protected]:34] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?qwait,1()”) in new stack
    – Executing [[email protected]:35] Set(“SIP/2065551212-myvoipmsaccount”, “__CWIGNORE=”) in new stack
    – Executing [[email protected]:36] Set(“SIP/2065551212-myvoipmsaccount”, “__KEEPCID=TRUE”) in new stack
    – Executing [[email protected]:37] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?usegoto,1”) in new stack
    – Executing [[email protected]:38] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?godial”) in new stack
    – Goto (macro-dial-one,s,42)
    – Executing [[email protected]: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 [[email protected]:43] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [[email protected]:44] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS=)”) in new stack
    – Executing [[email protected]:45] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?s-CHANUNAVAIL,1()”) in new stack
    – Executing [[email protected]:46] MacroExit(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:17] Set(“SIP/2065551212-myvoipmsaccount”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [[email protected]:18] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfu,1()”) in new stack
    – Executing [[email protected]:19] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfb,1()”) in new stack
    – Executing [[email protected]:20] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [[email protected]:21] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [[email protected]:22] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?s-CHANUNAVAIL,1”) in new stack
    – Goto (macro-exten-vm,s-CHANUNAVAIL,1)
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exit,1”) in new stack
    – Executing [[email protected]:2] PlayTones(“SIP/2065551212-myvoipmsaccount”, “congestion”) in new stack
    – Executing [[email protected]: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 [[email protected]:1] Macro(“SIP/2065551212-myvoipmsaccount”, “hangupcall,”) in new stack
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?theend”) in new stack
    – Goto (macro-hangupcall,s,3)
    – Executing [[email protected]:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CDR(recordingfile)=)”) in new stack
    – Executing [[email protected]: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 [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “__FROM_DID=2065551223”) in new stack
    – Executing [[email protected]:2] Gosub(“SIP/2065551212-myvoipmsaccount”, “app-blacklist-check,s,1()”) in new stack
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?blacklisted”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “CALLED_BLACKLIST=1”) in new stack
    – Executing [[email protected]:3] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:3] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(did)=2065551223”) in new stack
    – Executing [[email protected]:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0 ?Set(CALLERID(name)=01112066525728)”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
    – Executing [[email protected]:6] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERPRES()=allowed_not_screened”) in new stack
    – Executing [[email protected]:7] Goto(“SIP/2065551212-myvoipmsaccount”, “from-did-direct,8890,1”) in new stack
    – Goto (from-did-direct,8890,1)
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “__RINGTIMER=28”) in new stack
    – Executing [[email protected]:2] Macro(“SIP/2065551212-myvoipmsaccount”, “exten-vm,novm,8890,0,0,0”) in new stack
    – Executing [[email protected]:1] Macro(“SIP/2065551212-myvoipmsaccount”, “user-callerid,”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “TOUCH_MONITOR=1379394527.92”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=01112066525728”) in new stack
    – Executing [[email protected]:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?report”) in new stack
    – Executing [[email protected]:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “1?Set(REALCALLERIDNUM=01112066525728)”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSER=”) in new stack
    – Executing [[email protected]:6] Set(“SIP/2065551212-myvoipmsaccount”, “AMPUSERCIDNAME=”) in new stack
    – Executing [[email protected]:7] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?report”) in new stack
    – Goto (macro-user-callerid,s,15)
    – Executing [[email protected]:15] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [[email protected]:16] Set(“SIP/2065551212-myvoipmsaccount”, “__TTL=64”) in new stack
    – Executing [[email protected]:17] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?continue”) in new stack
    – Goto (macro-user-callerid,s,28)
    – Executing [[email protected]:28] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(number)=01112066525728”) in new stack
    – Executing [[email protected]:29] Set(“SIP/2065551212-myvoipmsaccount”, “CALLERID(name)=MyCallerID 01112066525728”) in new stack
    – Executing [[email protected]:30] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnum)=01112066525728”) in new stack
    – Executing [[email protected]:31] Set(“SIP/2065551212-myvoipmsaccount”, “CDR(cnam)=MyCallerID 01112066525728”) in new stack
    – Executing [[email protected]:32] Set(“SIP/2065551212-myvoipmsaccount”, “CHANNEL(language)=en”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “RingGroupMethod=none”) in new stack
    – Executing [[email protected]:3] Set(“SIP/2065551212-myvoipmsaccount”, “__EXTTOCALL=8890”) in new stack
    – Executing [[email protected]:4] Set(“SIP/2065551212-myvoipmsaccount”, “__PICKUPMARK=8890”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “RT=”) in new stack
    – Executing [[email protected]:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Macro(vm,novm,DIRECTDIAL,)”) in new stack
    – Executing [[email protected]:7] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [[email protected]:8] Gosub(“SIP/2065551212-myvoipmsaccount”, “sub-record-check,s,1(exten,8890,)”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “REC_POLICY_MODE_SAVE=”) in new stack
    – Executing [[email protected]:2] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?check”) in new stack
    – Goto (sub-record-check,s,7)
    – Executing [[email protected]:7] Set(“SIP/2065551212-myvoipmsaccount”, “__MON_FMT=wav”) in new stack
    – Executing [[email protected]:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next”) in new stack
    – Goto (sub-record-check,s,11)
    – Executing [[email protected]:11] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [[email protected]:12] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(__REC_POLICY_MODE=)”) in new stack
    – Executing [[email protected]:13] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exten,1”) in new stack
    – Executing [[email protected]:14] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_STATUS=INITIALIZED”) in new stack
    – Executing [[email protected]:15] Set(“SIP/2065551212-myvoipmsaccount”, “NOW=1379394527”) in new stack
    – Executing [[email protected]:16] Set(“SIP/2065551212-myvoipmsaccount”, “__DAY=16”) in new stack
    – Executing [[email protected]:17] Set(“SIP/2065551212-myvoipmsaccount”, “__MONTH=09”) in new stack
    – Executing [[email protected]:18] Set(“SIP/2065551212-myvoipmsaccount”, “__YEAR=2013”) in new stack
    – Executing [[email protected]:19] Set(“SIP/2065551212-myvoipmsaccount”, “__TIMESTR=20130916-220847”) in new stack
    – Executing [[email protected]:20] Set(“SIP/2065551212-myvoipmsaccount”, “__FROMEXTEN=01112066525728”) in new stack
    – Executing [[email protected]:21] Set(“SIP/2065551212-myvoipmsaccount”, “__CALLFILENAME=exten-8890-01112066525728-20130916-220847-1379394527.92”) in new stack
    – Executing [[email protected]:22] Goto(“SIP/2065551212-myvoipmsaccount”, “exten,1”) in new stack
    – Goto (sub-record-check,exten,1)
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?callee”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=dontcare”) in new stack
    – Executing [[email protected]:3] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?caller”) in new stack
    – Goto (sub-record-check,exten,10)
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “__REC_POLICY_MODE=”) in new stack
    – Executing [[email protected]:11] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?record,1(exten,8890,01112066525728)”) in new stack
    – Executing [[email protected]:12] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?macrodial”) in new stack
    – Goto (macro-exten-vm,s,15)
    – Executing [[email protected]:15] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?clrheader,1()”) in new stack
    – Executing [[email protected]:16] Macro(“SIP/2065551212-myvoipmsaccount”, “dial-one,Ttr,8890”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “DEXTEN=8890”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS_CW=”) in new stack
    – Executing [[email protected]:3] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?screen,1()”) in new stack
    – Executing [[email protected]:4] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?cf,1()”) in new stack
    – Executing [[email protected]:5] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?skip1”) in new stack
    – Goto (macro-dial-one,s,8)
    – Executing [[email protected]:8] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [[email protected]:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?continue”) in new stack
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “EXTHASCW=ENABLED”) in new stack
    – Executing [[email protected]:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?next1:cwinusebusy”) in new stack
    – Goto (macro-dial-one,s,23)
    – Executing [[email protected]:23] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?next3:continue”) in new stack
    – Goto (macro-dial-one,s,24)
    – Executing [[email protected]:24] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS_CW=BUSY)”) in new stack
    – Executing [[email protected]:25] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [[email protected]:26] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?dstring,1():dlocal,1()”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “DEVICES=8890”) in new stack
    – Executing [[email protected]:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [[email protected]:4] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DEVICES=890)”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT=1”) in new stack
    – Executing [[email protected]:6] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=1”) in new stack
    – Executing [[email protected]:7] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [[email protected]:8] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?zap2dahdi,1()”) in new stack
    – Executing [[email protected]:1] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Return()”) in new stack
    – Executing [[email protected]:2] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=”) in new stack
    – Executing [[email protected]:3] Set(“SIP/2065551212-myvoipmsaccount”, “LOOPCNT2=1”) in new stack
    – Executing [[email protected]:4] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=1”) in new stack
    – Executing [[email protected]:5] Set(“SIP/2065551212-myvoipmsaccount”, “THISPART2=SIP/8890”) in new stack
    – Executing [[email protected]:6] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(THISPART2=DAHDI/8890)”) in new stack
    – Executing [[email protected]:7] Set(“SIP/2065551212-myvoipmsaccount”, “NEWDIAL=SIP/8890&”) in new stack
    – Executing [[email protected]:8] Set(“SIP/2065551212-myvoipmsaccount”, “ITER2=2”) in new stack
    – Executing [[email protected]:9] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin2”) in new stack
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “THISDIAL=SIP/8890”) in new stack
    – Executing [[email protected]:11] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:9] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890&”) in new stack
    – Executing [[email protected]:10] Set(“SIP/2065551212-myvoipmsaccount”, “ITER=2”) in new stack
    – Executing [[email protected]:11] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?begin”) in new stack
    – Executing [[email protected]:12] Set(“SIP/2065551212-myvoipmsaccount”, “DSTRING=SIP/8890”) in new stack
    – Executing [[email protected]:13] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:27] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?nodial”) in new stack
    – Executing [[email protected]:28] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?skiptrace”) in new stack
    – Executing [[email protected]:29] GosubIf(“SIP/2065551212-myvoipmsaccount”, “1?ctset,1():ctclear,1()”) in new stack
    – Executing [[email protected]:1] Set(“SIP/2065551212-myvoipmsaccount”, “DB(CALLTRACE/8890)=01112066525728”) in new stack
    – Executing [[email protected]:2] Return(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:30] Set(“SIP/2065551212-myvoipmsaccount”, “D_OPTIONS=Ttr”) in new stack
    – Executing [[email protected]:31] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader(Alert-Info: )”) in new stack
    – Executing [[email protected]:32] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?SIPAddHeader()”) in new stack
    – Executing [[email protected]:33] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CHANNEL(musicclass)=)”) in new stack
    – Executing [[email protected]:34] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?qwait,1()”) in new stack
    – Executing [[email protected]:35] Set(“SIP/2065551212-myvoipmsaccount”, “__CWIGNORE=”) in new stack
    – Executing [[email protected]:36] Set(“SIP/2065551212-myvoipmsaccount”, “__KEEPCID=TRUE”) in new stack
    – Executing [[email protected]:37] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?usegoto,1”) in new stack
    – Executing [[email protected]:38] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?godial”) in new stack
    – Goto (macro-dial-one,s,42)
    – Executing [[email protected]: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 [[email protected]:43] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [[email protected]:44] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(DIALSTATUS=)”) in new stack
    – Executing [[email protected]:45] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?s-CHANUNAVAIL,1()”) in new stack
    – Executing [[email protected]:46] MacroExit(“SIP/2065551212-myvoipmsaccount”, “”) in new stack
    – Executing [[email protected]:17] Set(“SIP/2065551212-myvoipmsaccount”, “SV_DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [[email protected]:18] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfu,1()”) in new stack
    – Executing [[email protected]:19] GosubIf(“SIP/2065551212-myvoipmsaccount”, “0?docfb,1()”) in new stack
    – Executing [[email protected]:20] Set(“SIP/2065551212-myvoipmsaccount”, “DIALSTATUS=CHANUNAVAIL”) in new stack
    – Executing [[email protected]:21] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?MacroExit()”) in new stack
    – Executing [[email protected]:22] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?s-CHANUNAVAIL,1”) in new stack
    – Goto (macro-exten-vm,s-CHANUNAVAIL,1)
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “0?exit,1”) in new stack
    – Executing [[email protected]:2] PlayTones(“SIP/2065551212-myvoipmsaccount”, “congestion”) in new stack
    – Executing [[email protected]: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 [[email protected]:1] Macro(“SIP/2065551212-myvoipmsaccount”, “hangupcall,”) in new stack
    – Executing [[email protected]:1] GotoIf(“SIP/2065551212-myvoipmsaccount”, “1?theend”) in new stack
    – Goto (macro-hangupcall,s,3)
    – Executing [[email protected]:3] ExecIf(“SIP/2065551212-myvoipmsaccount”, “0?Set(CDR(recordingfile)=)”) in new stack
    – Executing [[email protected]: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’