Difficulty with inbound calls to a DID over an IAX trunk

I have been searching for several hours to no avail, so hopefully someone can see what I am missing. I need to keep any settings within the FreePBX GUI if at all possible, so my staff can support this going forward.

I have 2 FreePBX13 PBXs. One locally (PBX1), with an AT&T BVOIP circuit, one at our DR Site (PBX2) with a backup AT&T BVOIP circuit. I have an IAX2 trunk between the two FreePBX boxes over an MPLS circuit. PBX1 has all the extensions, dialplan, phones, etc. PBX2 is merely a gateway box to relay calls in and out in the event the BVOIP circuit at the main office goes out. PBX2 FreePBX has no extensions, and has the IAX2 trunk and an AT&T trunk configured properly and working. Inbound route on PBX2 is a catchall that sends all calls to the IAX trunk over to PBX1. Outbound routing from PBX1 is set to failover to the DR site in the event of a failure. Inbound route on PBX1 for the DID is in place and works for calls inbound to PBX1. Outbound calls from PBX1 to PBX2 currently work fine, they maintain caller ID, etc. I need calls coming into PBX2 that go over to PBX1 to process the call as inbound (following inbound routes, DID, etc). Instead, it immediately tries to dial the number back outbound as a 10 digit number. I thought changing my context in the IAX trunks from “from-internal” to “from-trunk” was the answer - but it still doesn’t work. Anyone have any ideas?

Extension -> PBX1 -> PBX2 -> AT&T - works fine
AT&T -> PBX2 -> PBX1 -> Immediately dials outbound instead of following the inbound DID route.

Configuration of IAX trunks are identical for both boxes just with different IP addresses.
Outgoing Settings
TrunkName - TrunkToDRPBX

PEER details
username=IAXAdmin
type=peer
secret=IAXSecret
qualify=yes
host=10.254.10.50
context=from-trunk

Incoming Settings
USER Context: IAXAdmin

USER Details:
type=user
secret=IAXSecret
host=10.254.10.50
context=from-trunk

Let me know if there is anything else I can supply to help figure this out. My inbound and outbound routes are all setup fine - I just need to figure out what setting I have wrong that the call over the IAX trunk isn’t using the DID originally dialed and processing it based on inbound routes…

Can you make a test call and post the log snippet (clear out any DID info that you want to keep private) and post it?

I can - from which side? Basically, it keeps looping, so it will be a LOT of info. Call goes into PBX2 from AT&T. It goes over to PBX1 which immediately dials out the number that was dialed in - so that loops back via AT&T to PBX2, which goes over to PBX1, which dials out, etc. If I let it keep going, it will tie up all 100 call paths in a few seconds.

Let me see what I can parse it down to and have it make sense. I think you want to see the PBX1 side, which is the side not “working” correctly.

AH! SO you basically get 50 calls looping back and forth correct?

Right. so - you call in on one circuit to PBX2 (remote). It directly sends the call to PBX1. PBX1 has an inbound route for that DID. It ignores it - and makes the call back out as if someone internally dialed that number (the DID). Which then calls over to PBX2 again. Which then routes the call to PBX1 and it keeps going and going. Somehow, PBX1 is not looking at the DID of the call coming over the IAX trunk… Its trying to dial it out the outbound route instead of following the inbound route rule. The below is from PBX1. You can see the call come in from PBX2 (10.254.10.50). My cell I’m using is the 630930xxxx number. The DID I’m dialing is the 630492xxxx number. Hope this helps. (I replaced the actual numbers with + signs…)

– Accepting AUTHENTICATED call from 10.254.10.50:4569:
– > requested format = ulaw,
– > requested prefs = (ulaw|alaw|gsm),
– > actual format = ulaw,
– > host prefs = (ulaw|alaw|gsm),
– > priority = mine
– Executing [630492++++@from-internal:1] Macro(“IAX2/IAXAdmin-9766”, “user-callerid,LIMIT”) in new stack
– Executing [s@macro-user-callerid:1] Set(“IAX2/IAXAdmin-9766”, “TOUCH_MONITOR=1494529831.1179160”) in new stack
– Executing [s@macro-user-callerid:2] Set(“IAX2/IAXAdmin-9766”, “AMPUSER=630930++++”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“IAX2/IAXAdmin-9766”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“IAX2/IAXAdmin-9766”, “1?Set(REALCALLERIDNUM=630930++++)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“IAX2/IAXAdmin-9766”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“IAX2/IAXAdmin-9766”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:7] Set(“IAX2/IAXAdmin-9766”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“IAX2/IAXAdmin-9766”, “1?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [s@macro-user-callerid:15] GotoIf(“IAX2/IAXAdmin-9766”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,29)
– Executing [s@macro-user-callerid:29] Set(“IAX2/IAXAdmin-9766”, “CALLERID(number)=630930++++”) in new stack
– Executing [s@macro-user-callerid:30] Set(“IAX2/IAXAdmin-9766”, “CALLERID(name)=THORSON,TODD”) in new stack
– Executing [s@macro-user-callerid:31] GotoIf(“IAX2/IAXAdmin-9766”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:32] Set(“IAX2/IAXAdmin-9766”, “CDR(cnam)=THORSON,TODD”) in new stack
– Executing [s@macro-user-callerid:33] Set(“IAX2/IAXAdmin-9766”, “CDR(cnum)=630930++++”) in new stack
– Executing [s@macro-user-callerid:34] Set(“IAX2/IAXAdmin-9766”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-user-callerid:35] GosubIf(“IAX2/IAXAdmin-9766”, “0?app-check-classofservce,s,1()”) in new stack
– Executing [630492****@from-internal:2] Set(“IAX2/IAXAdmin-9766”, “ROUTEUSER=”) in new stack
– Executing [630492++++@from-internal:3] GotoIf(“IAX2/IAXAdmin-9766”, “1?notblind”) in new stack
– Goto (from-internal,630492++++,6)
– Executing [630492++++@from-internal:6] GotoIf(“IAX2/IAXAdmin-9766”, “0?,630492++++,2:outbound-allroutes,630492++++,2”) in new stack
– Goto (outbound-allroutes,630492++++,2)
– Executing [630492++++@outbound-allroutes:2] Gosub(“IAX2/IAXAdmin-9766”, “sub-record-check,s,1(out,630492++++,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“IAX2/IAXAdmin-9766”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“IAX2/IAXAdmin-9766”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“IAX2/IAXAdmin-9766”, “NOW=1494529831”) in new stack
– Executing [s@sub-record-check:4] Set(“IAX2/IAXAdmin-9766”, “__DAY=11”) in new stack
– Executing [s@sub-record-check:5] Set(“IAX2/IAXAdmin-9766”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“IAX2/IAXAdmin-9766”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:7] Set(“IAX2/IAXAdmin-9766”, “__TIMESTR=20170511-141031”) in new stack
– Executing [s@sub-record-check:8] Set(“IAX2/IAXAdmin-9766”, “__FROMEXTEN=630930++++”) in new stack
– Executing [s@sub-record-check:9] Set(“IAX2/IAXAdmin-9766”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“IAX2/IAXAdmin-9766”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“IAX2/IAXAdmin-9766”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“IAX2/IAXAdmin-9766”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“IAX2/IAXAdmin-9766”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] NoOp(“IAX2/IAXAdmin-9766”, “Outbound Recording Check from 630930++++ to 630492++++”) in new stack
– Executing [out@sub-record-check:2] Set(“IAX2/IAXAdmin-9766”, “RECMODE=”) in new stack
– Executing [out@sub-record-check:3] ExecIf(“IAX2/IAXAdmin-9766”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [out@sub-record-check:7] Gosub(“IAX2/IAXAdmin-9766”, “recordcheck,1(dontcare,out,630492++++)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“IAX2/IAXAdmin-9766”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“IAX2/IAXAdmin-9766”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“IAX2/IAXAdmin-9766”, “”) in new stack
– Executing [out@sub-record-check:8] Return(“IAX2/IAXAdmin-9766”, “”) in new stack
– Executing [630492++++@outbound-allroutes:3] ExecIf(“IAX2/IAXAdmin-9766”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [630492++++@outbound-allroutes:4] Set(“IAX2/IAXAdmin-9766”, “MOHCLASS=default”) in new stack
– Executing [630492++++@outbound-allroutes:5] Set(“IAX2/IAXAdmin-9766”, “_NODEST=”) in new stack
– Executing [630492++++@outbound-allroutes:6] Macro(“IAX2/IAXAdmin-9766”, “dialout-trunk,4,1630492++++,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“IAX2/IAXAdmin-9766”, “DIAL_TRUNK=4”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“IAX2/IAXAdmin-9766”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“IAX2/IAXAdmin-9766”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“IAX2/IAXAdmin-9766”, “DIAL_NUMBER=1630492++++”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“IAX2/IAXAdmin-9766”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“IAX2/IAXAdmin-9766”, “OUTBOUND_GROUP=OUT_4”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“IAX2/IAXAdmin-9766”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“IAX2/IAXAdmin-9766”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“IAX2/IAXAdmin-9766”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“IAX2/IAXAdmin-9766”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
== Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on ‘IAX2/IAXAdmin-1834’ in macro ‘dialout-trunk’
== Spawn extension (outbound-allroutes, 630492++++, 6) exited non-zero on ‘IAX2/IAXAdmin-1834’
– Hungup ‘IAX2/IAXAdmin-1834’
– Executing [s@macro-dialout-trunk:11] Macro(“IAX2/IAXAdmin-9766”, “outbound-callerid,4”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [s@macro-outbound-callerid:3] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(REALCALLERIDNUM=630930++++)”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“IAX2/IAXAdmin-9766”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [s@macro-outbound-callerid:7] Set(“IAX2/IAXAdmin-9766”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“IAX2/IAXAdmin-9766”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] Set(“IAX2/IAXAdmin-9766”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] GotoIf(“IAX2/IAXAdmin-9766”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing [s@macro-outbound-callerid:15] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:18] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:19] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:20] Set(“IAX2/IAXAdmin-9766”, “CDR(outbound_cnum)=630930++++”) in new stack
– Executing [s@macro-outbound-callerid:21] Set(“IAX2/IAXAdmin-9766”, “CDR(outbound_cnam)=THORSON,TODD”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“IAX2/IAXAdmin-9766”, “0?sub-flp-4,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“IAX2/IAXAdmin-9766”, “OUTNUM=1630492++++”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“IAX2/IAXAdmin-9766”, “custom=SIP/TrunkToATT1”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“IAX2/IAXAdmin-9766”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“IAX2/IAXAdmin-9766”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“IAX2/IAXAdmin-9766”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CONNECTEDLINE(num,i)=1630492++++)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CONNECTEDLINE(name,i)=CID:630930++++)”) in new stack
– Executing [s@macro-dialout-trunk:21] ExecIf(“IAX2/IAXAdmin-9766”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)630930++++)”) in new stack
– Executing [s@macro-dialout-trunk:22] GotoIf(“IAX2/IAXAdmin-9766”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:23] Dial(“IAX2/IAXAdmin-9766”, “SIP/TrunkToATT1/1630492++++,300,Tt”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/TrunkToATT1/1630492++++
== Spawn extension (macro-dialout-trunk, s, 23) exited non-zero on ‘IAX2/IAXAdmin-15525’ in macro ‘dialout-trunk’
== Spawn extension (outbound-allroutes, 630492++++, 6) exited non-zero on ‘IAX2/IAXAdmin-15525’
– Hungup ‘IAX2/IAXAdmin-15525’

OK - here is the PBX2 side showing one call through a few loops (message is too big to include it all) I only let it ring 1 ring before hanging up, but you can see how it kept looping back and forth, but I wanted to include as much as I could. Remember, this box merely has a catch all inbound route that has the destination set to the IAX trunk to the other box.

Connected to Asterisk 13.7.1 currently running on DRPBX (pid = 1918)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [630492++++@from-trunk-sip-TrunkToATT2:1] Set(“SIP/TrunkToATT2-00000a67”, “GROUP()=OUT_5”) in new stack
– Executing [630492++++@from-trunk-sip-TrunkToATT2:2] Goto(“SIP/TrunkToATT2-00000a67”, “from-trunk,630492++++,1”) in new stack
– Goto (from-trunk,630492++++,1)
– Executing [630492++++@from-trunk:1] NoOp(“SIP/TrunkToATT2-00000a67”, “Catch-All DID Match - Found 630492++++ - You probably want a DID for this.”) in new stack
– Executing [630492++++@from-trunk:2] Log(“SIP/TrunkToATT2-00000a67”, “WARNING,Friendly Scanner from 12.194.xxx.xxx”) in new stack
[2017-05-11 14:35:26] WARNING[32442][C-000006b6]: Ext. 630492++++:2 @ from-trunk: Friendly Scanner from 12.194.xxx.xxx
– Executing [630492++++@from-trunk:3] Set(“SIP/TrunkToATT2-00000a67”, “__FROM_DID=630492++++”) in new stack
– Executing [630492++++@from-trunk:4] Goto(“SIP/TrunkToATT2-00000a67”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] Set(“SIP/TrunkToATT2-00000a67”, “__DIRECTION=INBOUND”) in new stack
– Executing [s@ext-did:2] Gosub(“SIP/TrunkToATT2-00000a67”, “sub-record-check,s,1(in,s,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/TrunkToATT2-00000a67”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/TrunkToATT2-00000a67”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/TrunkToATT2-00000a67”, “NOW=1494531326”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/TrunkToATT2-00000a67”, “__DAY=11”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/TrunkToATT2-00000a67”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/TrunkToATT2-00000a67”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/TrunkToATT2-00000a67”, “__TIMESTR=20170511-143526”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/TrunkToATT2-00000a67”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/TrunkToATT2-00000a67”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/TrunkToATT2-00000a67”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/TrunkToATT2-00000a67”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/TrunkToATT2-00000a67”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/TrunkToATT2-00000a67”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/TrunkToATT2-00000a67”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/TrunkToATT2-00000a67”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“SIP/TrunkToATT2-00000a67”, “Inbound Recording Check to s”) in new stack
– Executing [in@sub-record-check:2] Set(“SIP/TrunkToATT2-00000a67”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“SIP/TrunkToATT2-00000a67”, “10?Set(FROMEXTEN=630930++++)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“SIP/TrunkToATT2-00000a67”, “recordcheck,1(dontcare,in,s)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/TrunkToATT2-00000a67”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/TrunkToATT2-00000a67”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/TrunkToATT2-00000a67”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“SIP/TrunkToATT2-00000a67”, “”) in new stack
– Executing [s@ext-did:3] Gosub(“SIP/TrunkToATT2-00000a67”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/TrunkToATT2-00000a67”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/TrunkToATT2-00000a67”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/TrunkToATT2-00000a67”, “”) in new stack
– Executing [s@ext-did:4] ExecIf(“SIP/TrunkToATT2-00000a67”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [s@ext-did:5] Set(“SIP/TrunkToATT2-00000a67”, “CDR(did)=630492++++”) in new stack
– Executing [s@ext-did:6] ExecIf(“SIP/TrunkToATT2-00000a67”, “0 ?Set(CALLERID(name)=630930++++)”) in new stack
– Executing [s@ext-did:7] Set(“SIP/TrunkToATT2-00000a67”, “__MOHCLASS=”) in new stack
– Executing [s@ext-did:8] Set(“SIP/TrunkToATT2-00000a67”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [s@ext-did:9] GotoIf(“SIP/TrunkToATT2-00000a67”, “1?post-reverse-charge”) in new stack
– Goto (ext-did,s,11)
– Executing [s@ext-did:11] NoOp(“SIP/TrunkToATT2-00000a67”, “”) in new stack
– Executing [s@ext-did:12] Set(“SIP/TrunkToATT2-00000a67”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:13] Set(“SIP/TrunkToATT2-00000a67”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:14] Set(“SIP/TrunkToATT2-00000a67”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:15] Set(“SIP/TrunkToATT2-00000a67”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:16] NoOp(“SIP/TrunkToATT2-00000a67”, “CallerID Entry Point”) in new stack
– Executing [s@ext-did:17] Goto(“SIP/TrunkToATT2-00000a67”, “ext-trunk,3,1”) in new stack
– Goto (ext-trunk,3,1)
– Executing [3@ext-trunk:1] Set(“SIP/TrunkToATT2-00000a67”, “TDIAL_STRING=IAX2/TrunkToCORPBX”) in new stack
– Executing [3@ext-trunk:2] Set(“SIP/TrunkToATT2-00000a67”, “DIAL_TRUNK=3”) in new stack
– Executing [3@ext-trunk:3] Goto(“SIP/TrunkToATT2-00000a67”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [tdial@ext-trunk:1] Set(“SIP/TrunkToATT2-00000a67”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [tdial@ext-trunk:2] GotoIf(“SIP/TrunkToATT2-00000a67”, “0?nomax”) in new stack
– Executing [tdial@ext-trunk:3] GotoIf(“SIP/TrunkToATT2-00000a67”, “0?hangit”) in new stack
– Executing [tdial@ext-trunk:4] ExecIf(“SIP/TrunkToATT2-00000a67”, “1?Set(CALLERPRES(name-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:5] ExecIf(“SIP/TrunkToATT2-00000a67”, “1?Set(CALLERPRES(num-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:6] Set(“SIP/TrunkToATT2-00000a67”, “DIAL_NUMBER=630492++++”) in new stack
– Executing [tdial@ext-trunk:7] GosubIf(“SIP/TrunkToATT2-00000a67”, “0?sub-flp-3,s,1()”) in new stack
– Executing [tdial@ext-trunk:8] Set(“SIP/TrunkToATT2-00000a67”, “OUTNUM=630492++++”) in new stack
– Executing [tdial@ext-trunk:9] Set(“SIP/TrunkToATT2-00000a67”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [tdial@ext-trunk:10] Dial(“SIP/TrunkToATT2-00000a67”, “IAX2/TrunkToCORPBX/630492++++,300,T”) in new stack
– Called IAX2/TrunkToCORPBX/630492++++
– Call accepted by 10.1.10.50:4569 (format ulaw)
– Format for call is (ulaw)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [630492++++@from-trunk-sip-TrunkToATT1:1] Set(“SIP/TrunkToATT1-00000a68”, “GROUP()=OUT_4”) in new stack
– Executing [630492++++@from-trunk-sip-TrunkToATT1:2] Goto(“SIP/TrunkToATT1-00000a68”, “from-trunk,630492++++,1”) in new stack
– Goto (from-trunk,630492++++,1)
– Executing [630492++++@from-trunk:1] NoOp(“SIP/TrunkToATT1-00000a68”, “Catch-All DID Match - Found 630492++++ - You probably want a DID for this.”) in new stack
– Executing [630492++++@from-trunk:2] Log(“SIP/TrunkToATT1-00000a68”, “WARNING,Friendly Scanner from 12.194.xxx.xxx”) in new stack
[2017-05-11 14:35:27] WARNING[32443][C-000006b7]: Ext. 630492++++:2 @ from-trunk: Friendly Scanner from 12.194.xxx.xxx
– Executing [630492++++@from-trunk:3] Set(“SIP/TrunkToATT1-00000a68”, “__FROM_DID=630492++++”) in new stack
– Executing [630492++++@from-trunk:4] Goto(“SIP/TrunkToATT1-00000a68”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] Set(“SIP/TrunkToATT1-00000a68”, “__DIRECTION=INBOUND”) in new stack
– Executing [s@ext-did:2] Gosub(“SIP/TrunkToATT1-00000a68”, “sub-record-check,s,1(in,s,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/TrunkToATT1-00000a68”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/TrunkToATT1-00000a68”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/TrunkToATT1-00000a68”, “NOW=1494531327”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/TrunkToATT1-00000a68”, “__DAY=11”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/TrunkToATT1-00000a68”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/TrunkToATT1-00000a68”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/TrunkToATT1-00000a68”, “__TIMESTR=20170511-143527”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/TrunkToATT1-00000a68”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/TrunkToATT1-00000a68”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/TrunkToATT1-00000a68”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/TrunkToATT1-00000a68”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/TrunkToATT1-00000a68”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/TrunkToATT1-00000a68”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/TrunkToATT1-00000a68”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/TrunkToATT1-00000a68”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“SIP/TrunkToATT1-00000a68”, “Inbound Recording Check to s”) in new stack
– Executing [in@sub-record-check:2] Set(“SIP/TrunkToATT1-00000a68”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“SIP/TrunkToATT1-00000a68”, “10?Set(FROMEXTEN=630930++++)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“SIP/TrunkToATT1-00000a68”, “recordcheck,1(dontcare,in,s)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/TrunkToATT1-00000a68”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/TrunkToATT1-00000a68”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/TrunkToATT1-00000a68”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“SIP/TrunkToATT1-00000a68”, “”) in new stack
– Executing [s@ext-did:3] Gosub(“SIP/TrunkToATT1-00000a68”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/TrunkToATT1-00000a68”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/TrunkToATT1-00000a68”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/TrunkToATT1-00000a68”, “”) in new stack
– Executing [s@ext-did:4] ExecIf(“SIP/TrunkToATT1-00000a68”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [s@ext-did:5] Set(“SIP/TrunkToATT1-00000a68”, “CDR(did)=630492++++”) in new stack
– Executing [s@ext-did:6] ExecIf(“SIP/TrunkToATT1-00000a68”, “0 ?Set(CALLERID(name)=630930++++)”) in new stack
– Executing [s@ext-did:7] Set(“SIP/TrunkToATT1-00000a68”, “__MOHCLASS=”) in new stack
– Executing [s@ext-did:8] Set(“SIP/TrunkToATT1-00000a68”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [s@ext-did:9] GotoIf(“SIP/TrunkToATT1-00000a68”, “1?post-reverse-charge”) in new stack
– Goto (ext-did,s,11)
– Executing [s@ext-did:11] NoOp(“SIP/TrunkToATT1-00000a68”, “”) in new stack
– Executing [s@ext-did:12] Set(“SIP/TrunkToATT1-00000a68”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:13] Set(“SIP/TrunkToATT1-00000a68”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:14] Set(“SIP/TrunkToATT1-00000a68”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:15] Set(“SIP/TrunkToATT1-00000a68”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:16] NoOp(“SIP/TrunkToATT1-00000a68”, “CallerID Entry Point”) in new stack
– Executing [s@ext-did:17] Goto(“SIP/TrunkToATT1-00000a68”, “ext-trunk,3,1”) in new stack
– Goto (ext-trunk,3,1)
– Executing [3@ext-trunk:1] Set(“SIP/TrunkToATT1-00000a68”, “TDIAL_STRING=IAX2/TrunkToCORPBX”) in new stack
– Executing [3@ext-trunk:2] Set(“SIP/TrunkToATT1-00000a68”, “DIAL_TRUNK=3”) in new stack
– Executing [3@ext-trunk:3] Goto(“SIP/TrunkToATT1-00000a68”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [tdial@ext-trunk:1] Set(“SIP/TrunkToATT1-00000a68”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [tdial@ext-trunk:2] GotoIf(“SIP/TrunkToATT1-00000a68”, “0?nomax”) in new stack
– Executing [tdial@ext-trunk:3] GotoIf(“SIP/TrunkToATT1-00000a68”, “0?hangit”) in new stack
– Executing [tdial@ext-trunk:4] ExecIf(“SIP/TrunkToATT1-00000a68”, “1?Set(CALLERPRES(name-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:5] ExecIf(“SIP/TrunkToATT1-00000a68”, “1?Set(CALLERPRES(num-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:6] Set(“SIP/TrunkToATT1-00000a68”, “DIAL_NUMBER=630492++++”) in new stack
– Executing [tdial@ext-trunk:7] GosubIf(“SIP/TrunkToATT1-00000a68”, “0?sub-flp-3,s,1()”) in new stack
– Executing [tdial@ext-trunk:8] Set(“SIP/TrunkToATT1-00000a68”, “OUTNUM=630492++++”) in new stack
– Executing [tdial@ext-trunk:9] Set(“SIP/TrunkToATT1-00000a68”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [tdial@ext-trunk:10] Dial(“SIP/TrunkToATT1-00000a68”, “IAX2/TrunkToCORPBX/630492++++,300,T”) in new stack
– Called IAX2/TrunkToCORPBX/630492++++
– Call accepted by 10.1.10.50:4569 (format ulaw)
– Format for call is (ulaw)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [630492++++@from-trunk-sip-TrunkToATT1:1] Set(“SIP/TrunkToATT1-00000a69”, “GROUP()=OUT_4”) in new stack
– Executing [630492++++@from-trunk-sip-TrunkToATT1:2] Goto(“SIP/TrunkToATT1-00000a69”, “from-trunk,630492++++,1”) in new stack
– Goto (from-trunk,630492++++,1)
– Executing [630492++++@from-trunk:1] NoOp(“SIP/TrunkToATT1-00000a69”, “Catch-All DID Match - Found 630492++++ - You probably want a DID for this.”) in new stack
– Executing [630492++++@from-trunk:2] Log(“SIP/TrunkToATT1-00000a69”, “WARNING,Friendly Scanner from 12.194.xxx.xxx”) in new stack
[2017-05-11 14:35:27] WARNING[32444][C-000006b8]: Ext. 630492++++:2 @ from-trunk: Friendly Scanner from 12.194.xxx.xxx
– Executing [630492++++@from-trunk:3] Set(“SIP/TrunkToATT1-00000a69”, “__FROM_DID=630492++++”) in new stack
– Executing [630492++++@from-trunk:4] Goto(“SIP/TrunkToATT1-00000a69”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] Set(“SIP/TrunkToATT1-00000a69”, “__DIRECTION=INBOUND”) in new stack
– Executing [s@ext-did:2] Gosub(“SIP/TrunkToATT1-00000a69”, “sub-record-check,s,1(in,s,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/TrunkToATT1-00000a69”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/TrunkToATT1-00000a69”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/TrunkToATT1-00000a69”, “NOW=1494531327”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/TrunkToATT1-00000a69”, “__DAY=11”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/TrunkToATT1-00000a69”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/TrunkToATT1-00000a69”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/TrunkToATT1-00000a69”, “__TIMESTR=20170511-143527”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/TrunkToATT1-00000a69”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/TrunkToATT1-00000a69”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/TrunkToATT1-00000a69”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/TrunkToATT1-00000a69”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/TrunkToATT1-00000a69”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/TrunkToATT1-00000a69”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/TrunkToATT1-00000a69”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/TrunkToATT1-00000a69”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“SIP/TrunkToATT1-00000a69”, “Inbound Recording Check to s”) in new stack
– Executing [in@sub-record-check:2] Set(“SIP/TrunkToATT1-00000a69”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“SIP/TrunkToATT1-00000a69”, “10?Set(FROMEXTEN=630930++++)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“SIP/TrunkToATT1-00000a69”, “recordcheck,1(dontcare,in,s)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/TrunkToATT1-00000a69”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/TrunkToATT1-00000a69”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/TrunkToATT1-00000a69”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“SIP/TrunkToATT1-00000a69”, “”) in new stack
– Executing [s@ext-did:3] Gosub(“SIP/TrunkToATT1-00000a69”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/TrunkToATT1-00000a69”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/TrunkToATT1-00000a69”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/TrunkToATT1-00000a69”, “”) in new stack
– Executing [s@ext-did:4] ExecIf(“SIP/TrunkToATT1-00000a69”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [s@ext-did:5] Set(“SIP/TrunkToATT1-00000a69”, “CDR(did)=630492++++”) in new stack
– Executing [s@ext-did:6] ExecIf(“SIP/TrunkToATT1-00000a69”, “0 ?Set(CALLERID(name)=630930++++)”) in new stack
– Executing [s@ext-did:7] Set(“SIP/TrunkToATT1-00000a69”, “__MOHCLASS=”) in new stack
– Executing [s@ext-did:8] Set(“SIP/TrunkToATT1-00000a69”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [s@ext-did:9] GotoIf(“SIP/TrunkToATT1-00000a69”, “1?post-reverse-charge”) in new stack
– Goto (ext-did,s,11)
– Executing [s@ext-did:11] NoOp(“SIP/TrunkToATT1-00000a69”, “”) in new stack
– Executing [s@ext-did:12] Set(“SIP/TrunkToATT1-00000a69”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:13] Set(“SIP/TrunkToATT1-00000a69”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:14] Set(“SIP/TrunkToATT1-00000a69”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:15] Set(“SIP/TrunkToATT1-00000a69”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:16] NoOp(“SIP/TrunkToATT1-00000a69”, “CallerID Entry Point”) in new stack
– Executing [s@ext-did:17] Goto(“SIP/TrunkToATT1-00000a69”, “ext-trunk,3,1”) in new stack
– Goto (ext-trunk,3,1)
– Executing [3@ext-trunk:1] Set(“SIP/TrunkToATT1-00000a69”, “TDIAL_STRING=IAX2/TrunkToCORPBX”) in new stack
– Executing [3@ext-trunk:2] Set(“SIP/TrunkToATT1-00000a69”, “DIAL_TRUNK=3”) in new stack
– Executing [3@ext-trunk:3] Goto(“SIP/TrunkToATT1-00000a69”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [tdial@ext-trunk:1] Set(“SIP/TrunkToATT1-00000a69”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [tdial@ext-trunk:2] GotoIf(“SIP/TrunkToATT1-00000a69”, “0?nomax”) in new stack
– Executing [tdial@ext-trunk:3] GotoIf(“SIP/TrunkToATT1-00000a69”, “0?hangit”) in new stack
– Executing [tdial@ext-trunk:4] ExecIf(“SIP/TrunkToATT1-00000a69”, “1?Set(CALLERPRES(name-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:5] ExecIf(“SIP/TrunkToATT1-00000a69”, “1?Set(CALLERPRES(num-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:6] Set(“SIP/TrunkToATT1-00000a69”, “DIAL_NUMBER=630492++++”) in new stack
– Executing [tdial@ext-trunk:7] GosubIf(“SIP/TrunkToATT1-00000a69”, “0?sub-flp-3,s,1()”) in new stack
– Executing [tdial@ext-trunk:8] Set(“SIP/TrunkToATT1-00000a69”, “OUTNUM=630492++++”) in new stack
– Executing [tdial@ext-trunk:9] Set(“SIP/TrunkToATT1-00000a69”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [tdial@ext-trunk:10] Dial(“SIP/TrunkToATT1-00000a69”, “IAX2/TrunkToCORPBX/630492++++,300,T”) in new stack
– Called IAX2/TrunkToCORPBX/630492++++
– Call accepted by 10.1.10.50:4569 (format ulaw)
– Format for call is (ulaw)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [630492++++@from-trunk-sip-TrunkToATT2:1] Set(“SIP/TrunkToATT2-00000a6a”, “GROUP()=OUT_5”) in new stack
– Executing [630492++++@from-trunk-sip-TrunkToATT2:2] Goto(“SIP/TrunkToATT2-00000a6a”, “from-trunk,630492++++,1”) in new stack
– Goto (from-trunk,630492++++,1)
– Executing [630492++++@from-trunk:1] NoOp(“SIP/TrunkToATT2-00000a6a”, “Catch-All DID Match - Found 630492++++ - You probably want a DID for this.”) in new stack
– Executing [630492++++@from-trunk:2] Log(“SIP/TrunkToATT2-00000a6a”, “WARNING,Friendly Scanner from 12.194.xxx.xxx”) in new stack
[2017-05-11 14:35:27] WARNING[32445][C-000006b9]: Ext. 630492++++:2 @ from-trunk: Friendly Scanner from 12.194.xxx.xxx
– Executing [630492++++@from-trunk:3] Set(“SIP/TrunkToATT2-00000a6a”, “__FROM_DID=630492++++”) in new stack
– Executing [630492++++@from-trunk:4] Goto(“SIP/TrunkToATT2-00000a6a”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [s@ext-did:1] Set(“SIP/TrunkToATT2-00000a6a”, “__DIRECTION=INBOUND”) in new stack
– Executing [s@ext-did:2] Gosub(“SIP/TrunkToATT2-00000a6a”, “sub-record-check,s,1(in,s,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/TrunkToATT2-00000a6a”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“SIP/TrunkToATT2-00000a6a”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“SIP/TrunkToATT2-00000a6a”, “NOW=1494531327”) in new stack
– Executing [s@sub-record-check:4] Set(“SIP/TrunkToATT2-00000a6a”, “__DAY=11”) in new stack
– Executing [s@sub-record-check:5] Set(“SIP/TrunkToATT2-00000a6a”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:6] Set(“SIP/TrunkToATT2-00000a6a”, “__YEAR=2017”) in new stack
– Executing [s@sub-record-check:7] Set(“SIP/TrunkToATT2-00000a6a”, “__TIMESTR=20170511-143527”) in new stack
– Executing [s@sub-record-check:8] Set(“SIP/TrunkToATT2-00000a6a”, “__FROMEXTEN=unknown”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/TrunkToATT2-00000a6a”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“SIP/TrunkToATT2-00000a6a”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“SIP/TrunkToATT2-00000a6a”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/TrunkToATT2-00000a6a”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/TrunkToATT2-00000a6a”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“SIP/TrunkToATT2-00000a6a”, “2?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“SIP/TrunkToATT2-00000a6a”, “1?sub-record-check,in,1”) in new stack
– Goto (sub-record-check,in,1)
– Executing [in@sub-record-check:1] NoOp(“SIP/TrunkToATT2-00000a6a”, “Inbound Recording Check to s”) in new stack
– Executing [in@sub-record-check:2] Set(“SIP/TrunkToATT2-00000a6a”, “FROMEXTEN=unknown”) in new stack
– Executing [in@sub-record-check:3] ExecIf(“SIP/TrunkToATT2-00000a6a”, “10?Set(FROMEXTEN=630930++++)”) in new stack
– Executing [in@sub-record-check:4] Gosub(“SIP/TrunkToATT2-00000a6a”, “recordcheck,1(dontcare,in,s)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“SIP/TrunkToATT2-00000a6a”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“SIP/TrunkToATT2-00000a6a”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“SIP/TrunkToATT2-00000a6a”, “”) in new stack
– Executing [in@sub-record-check:5] Return(“SIP/TrunkToATT2-00000a6a”, “”) in new stack
– Executing [s@ext-did:3] Gosub(“SIP/TrunkToATT2-00000a6a”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/TrunkToATT2-00000a6a”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/TrunkToATT2-00000a6a”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/TrunkToATT2-00000a6a”, “”) in new stack
– Executing [s@ext-did:4] ExecIf(“SIP/TrunkToATT2-00000a6a”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [s@ext-did:5] Set(“SIP/TrunkToATT2-00000a6a”, “CDR(did)=630492++++”) in new stack
– Executing [s@ext-did:6] ExecIf(“SIP/TrunkToATT2-00000a6a”, “0 ?Set(CALLERID(name)=630930++++)”) in new stack
– Executing [s@ext-did:7] Set(“SIP/TrunkToATT2-00000a6a”, “__MOHCLASS=”) in new stack
– Executing [s@ext-did:8] Set(“SIP/TrunkToATT2-00000a6a”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [s@ext-did:9] GotoIf(“SIP/TrunkToATT2-00000a6a”, “1?post-reverse-charge”) in new stack
– Goto (ext-did,s,11)
– Executing [s@ext-did:11] NoOp(“SIP/TrunkToATT2-00000a6a”, “”) in new stack
– Executing [s@ext-did:12] Set(“SIP/TrunkToATT2-00000a6a”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:13] Set(“SIP/TrunkToATT2-00000a6a”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [s@ext-did:14] Set(“SIP/TrunkToATT2-00000a6a”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:15] Set(“SIP/TrunkToATT2-00000a6a”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [s@ext-did:16] NoOp(“SIP/TrunkToATT2-00000a6a”, “CallerID Entry Point”) in new stack
– Executing [s@ext-did:17] Goto(“SIP/TrunkToATT2-00000a6a”, “ext-trunk,3,1”) in new stack
– Goto (ext-trunk,3,1)
– Executing [3@ext-trunk:1] Set(“SIP/TrunkToATT2-00000a6a”, “TDIAL_STRING=IAX2/TrunkToCORPBX”) in new stack
– Executing [3@ext-trunk:2] Set(“SIP/TrunkToATT2-00000a6a”, “DIAL_TRUNK=3”) in new stack
– Executing [3@ext-trunk:3] Goto(“SIP/TrunkToATT2-00000a6a”, “ext-trunk,tdial,1”) in new stack
– Goto (ext-trunk,tdial,1)
– Executing [tdial@ext-trunk:1] Set(“SIP/TrunkToATT2-00000a6a”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [tdial@ext-trunk:2] GotoIf(“SIP/TrunkToATT2-00000a6a”, “0?nomax”) in new stack
– Executing [tdial@ext-trunk:3] GotoIf(“SIP/TrunkToATT2-00000a6a”, “0?hangit”) in new stack
– Executing [tdial@ext-trunk:4] ExecIf(“SIP/TrunkToATT2-00000a6a”, “1?Set(CALLERPRES(name-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:5] ExecIf(“SIP/TrunkToATT2-00000a6a”, “1?Set(CALLERPRES(num-pres)=allowed_not_screened)”) in new stack
– Executing [tdial@ext-trunk:6] Set(“SIP/TrunkToATT2-00000a6a”, “DIAL_NUMBER=630492++++”) in new stack
– Executing [tdial@ext-trunk:7] GosubIf(“SIP/TrunkToATT2-00000a6a”, “0?sub-flp-3,s,1()”) in new stack
– Executing [tdial@ext-trunk:8] Set(“SIP/TrunkToATT2-00000a6a”, “OUTNUM=630492++++”) in new stack
– Executing [tdial@ext-trunk:9] Set(“SIP/TrunkToATT2-00000a6a”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [tdial@ext-trunk:10] Dial(“SIP/TrunkToATT2-00000a6a”, “IAX2/TrunkToCORPBX/630492++++,300,T”) in new stack
– Called IAX2/TrunkToCORPBX/630492++++
– Call accepted by 10.1.10.50:4569 (format ulaw)
– Format for call is (ulaw)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5

Have we talked about outbound routes yet? It seems like the outbound/inbound DID processing might be a bigger problem than your trunk setup, especially since it’s working as well as it is.

Sure - what can I answer? On PBX2, where these calls come in, it has an outbound route, which works when calls come from PBX1 and go out to AT&T. PBX2 outbound route (which shouldn’t be at play in the problem I’m having) is a standard 1NXXNXXXXXX and NXXNXXXXXX and XXX dial patterns - going to my AT&T BVOIP trunks. Calls coming from PBX1 over to PBX2 go out to AT&T as expected.

PBX1 has a similar outbound route, which goes to its AT&T BVOIP trunk. In a failover scenario, I would move the “Outbound to PBX2” route to the top of the list, which has the same dial patterns, but has PBX2 as its trunk instead of AT&T. Tests across that work fine. Calls go though and outbound callerid is maintained.

This issue is calls coming the other way - in from AT&T to PBX2, across an IAX trunk, somehow its either losing the DID info (which doesn’t seem to be the case since its trying to “dial” that number) - or its ignoring the DID inbound route setting on PBX1 and just taking that as a 10 digit number and using the outbound route that applies to it. I think this is some sort of “default” behavior that I need to find a setting to fix. I thought, based on web research, that setting the context on the IAX trunk to “from-trunk” as opposed to my original setting of “from-internal” would do it - but it doesn’t.

Turn off CID based call routing on BOTH servers and see if that helps. If it does, you may have a routing loop based on the inbound/outbound CID info.

On PBX2, do you have an INBOUND route configured for this DID “630492++++” (i’ll assume you’ve made the +++ symbols to protect the innocent?"

If you point that destination to “the phone book” or something on the local server to test, does that respond?

Thanks for the suggestions. I do not have any CID based routing on either box - PBX1 has 500 DID based routes - which all work fine - but are coming in via its own AT&T trunk. PBX2 has only 1 inbound route - which routes all calls to the IAX trunk to PBX1 - which seems to be working fine.

I believe this to be more of a system “feature” that I have to figure out how to work around. Basically, when forwarding calls over IAX trunks, its ignoring the DID and using outbound routes instead (almost like the context issue of “from-internal” vs “from-trunk”. I just don’t know how to tell this thing to route those calls using normal inbound routes - instead of outbound routes.

I definitely have a DID for the number I am dialing - going right to my extension on that box. If I route the DID from AT&T directly to PBX1 - it works fine - its only when its coming over the IAX trunk that it does this.

Thanks - I do have a DID set - and if I have AT&T point that number directly at PBX1 it works fine. This is when the number is sent over the IAX trunk. It is set to my direct extension.

PBX1 has over 800 extensions on it - and coming and going via its AT&T trunk. If I route calls from PBX1 over to PBX2 for dialing out (for failover) - calls work fine. Its when the calls come the other way - its doing the same thing. PBX1 gets the call over IAX, and then attempts to dial it out, INSTEAD of using the inbound route/DID.

This really feels like a context issue - like the IAX trunk is ignoring my “context=from-trunk” setting. I have tried from-pstn and even garbage “from-something” context that doesn’t exist…