Can't get incoming call into one system to ring a different system

Our Main system is setup with an outgoing call route so that if anyone dials 1-979-xxx-xxxx it strips the 1 and area code and sends the call locally to our system located in that area code. I have a trunk setup between the main system and the remote system and so far sending calls to the remote system is not a problem. If someone dials IN to the remote system I’d like to have our IVR on our main system answer. Currently have the DID setup on the remote system in the incoming connections to send the calls to the main-system-trunk. If i dial in to the remote system the CDR shows the incoming call. The main system also shows the incoming call but it appears that our main system is sending the call back out to our remote system and then the caller is getting a busy signal.

Dial 979-111-1111 from 214-555-5555
Remote system answers
sends to main system
main system see’s a call to 979-xxx-xxxx and sends to remote
remote system dials 111-1111
caller get’s a busy signal (i only have one call path on this DID).

Main system 192.168.1.20
Remote system 192.168.1.21

I have an incoming route setup on the main system for the DID 979-111-1111 that should send the call to the IVR but that doesn’t appear to happen.

Log of Main System:
[2015-05-21 11:26:47] VERBOSE[30231] chan_iax2.c: – Accepting AUTHENTICATED call from 192.168.1.21:
– > requested format = ulaw,
– > requested prefs = (ulaw|alaw|gsm),
– > actual format = ulaw,
– > host prefs = (ulaw|alaw|gsm),
– > priority = mine
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] Macro(“IAX2/MAIN-10701”, “user-callerid,LIMIT”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] Set(“IAX2/MAIN-10701”, “TOUCH_MONITOR=1432225607.56310”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] Set(“IAX2/MAIN-10701”, “AMPUSER=2145555555”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] GotoIf(“IAX2/MAIN-10701”, “0?report”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:4] ExecIf(“IAX2/MAIN-10701”, “1?Set(REALCALLERIDNUM=2145555555)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:5] Set(“IAX2/MAIN-10701”, “AMPUSER=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:6] GotoIf(“IAX2/MAIN-10701”, “0?limit”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:7] Set(“IAX2/MAIN-10701”, “AMPUSERCIDNAME=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:8] GotoIf(“IAX2/MAIN-10701”, “1?report”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (macro-user-callerid,s,16)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:16] GotoIf(“IAX2/MAIN-10701”, “1?continue”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (macro-user-callerid,s,30)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:30] Set(“IAX2/MAIN-10701”, “CALLERID(number)=2145555555”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:31] Set(“IAX2/MAIN-10701”, "CALLERID(name)=MUNOZ JOHN ") in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:32] Set(“IAX2/MAIN-10701”, “CDR(cnum)=2145555555”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:33] Set(“IAX2/MAIN-10701”, “CDR(cnam)=MUNOZ JOHN”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:34] Set(“IAX2/MAIN-10701”, “CHANNEL(language)=en”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:35] GosubIf(“IAX2/MAIN-10701”, “0?app-check-classofservce,s,1()”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] Set(“IAX2/MAIN-10701”, “ROUTEUSER=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] GotoIf(“IAX2/MAIN-10701”, “0?,9791111111,2:outbound-allroutes,9791111111,2”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (outbound-allroutes,9791111111,2)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] Gosub(“IAX2/MAIN-10701”, “sub-record-check,s,1(out,9791111111,dontcare)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] GotoIf(“IAX2/MAIN-10701”, “0?initialized”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] Set(“IAX2/MAIN-10701”, “__REC_STATUS=INITIALIZED”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] Set(“IAX2/MAIN-10701”, “NOW=1432225607”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:4] Set(“IAX2/MAIN-10701”, “__DAY=21”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:5] Set(“IAX2/MAIN-10701”, “__MONTH=05”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:6] Set(“IAX2/MAIN-10701”, “__YEAR=2015”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:7] Set(“IAX2/MAIN-10701”, “__TIMESTR=20150521-112647”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:8] Set(“IAX2/MAIN-10701”, “__FROMEXTEN=2145555555”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:9] Set(“IAX2/MAIN-10701”, “__MON_FMT=wav”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:10] NoOp(“IAX2/MAIN-10701”, “Recordings initialized”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:11] ExecIf(“IAX2/MAIN-10701”, “0?Set(ARG3=dontcare)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:12] Set(“IAX2/MAIN-10701”, “REC_POLICY_MODE_SAVE=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:13] ExecIf(“IAX2/MAIN-10701”, “0?Set(REC_STATUS=NO)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:14] GotoIf(“IAX2/MAIN-10701”, “3?checkaction”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (sub-record-check,s,17)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:17] GotoIf(“IAX2/MAIN-10701”, “1?sub-record-check,out,1”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (sub-record-check,out,1)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] NoOp(“IAX2/MAIN-10701”, “Outbound Recording Check from 2145555555 to 9791111111”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] Set(“IAX2/MAIN-10701”, “RECMODE=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] ExecIf(“IAX2/MAIN-10701”, “1?Goto(routewins)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (sub-record-check,out,7)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:7] Gosub(“IAX2/MAIN-10701”, “recordcheck,1(dontcare,out,9791111111)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] NoOp(“IAX2/MAIN-10701”, “Starting recording check against dontcare”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] Goto(“IAX2/MAIN-10701”, “dontcare”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (sub-record-check,recordcheck,3)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] Return(“IAX2/MAIN-10701”, “”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:8] Return(“IAX2/MAIN-10701”, “”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] ExecIf(“IAX2/MAIN-10701”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:4] Set(“IAX2/MAIN-10701”, “MOHCLASS=default”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:5] Set(“IAX2/MAIN-10701”, “_NODEST=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:6] Macro(“IAX2/MAIN-10701”, “dialout-trunk,4,1111111,off”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] Set(“IAX2/MAIN-10701”, “DIAL_TRUNK=4”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] GosubIf(“IAX2/MAIN-10701”, “0?sub-pincheck,s,1()”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] GotoIf(“IAX2/MAIN-10701”, “0?disabletrunk,1”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:4] Set(“IAX2/MAIN-10701”, “DIAL_NUMBER=1111111”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:5] Set(“IAX2/MAIN-10701”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:6] Set(“IAX2/MAIN-10701”, “OUTBOUND_GROUP=OUT_4”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:7] GotoIf(“IAX2/MAIN-10701”, “1?nomax”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (macro-dialout-trunk,s,9)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:9] GotoIf(“IAX2/MAIN-10701”, “0?skipoutcid”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:10] Set(“IAX2/MAIN-10701”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:11] Macro(“IAX2/MAIN-10701”, “outbound-callerid,4”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] ExecIf(“IAX2/MAIN-10701”, “0?Set(CALLERPRES()=)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] ExecIf(“IAX2/MAIN-10701”, “0?Set(REALCALLERIDNUM=2145555555)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] GotoIf(“IAX2/MAIN-10701”, “1?normcid”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (macro-outbound-callerid,s,6)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:6] Set(“IAX2/MAIN-10701”, “USEROUTCID=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:7] Set(“IAX2/MAIN-10701”, “EMERGENCYCID=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:8] Set(“IAX2/MAIN-10701”, “TRUNKOUTCID=”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:9] GotoIf(“IAX2/MAIN-10701”, “1?trunkcid”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (macro-outbound-callerid,s,14)
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:14] ExecIf(“IAX2/MAIN-10701”, “0?Set(CALLERID(all)=)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:15] ExecIf(“IAX2/MAIN-10701”, “0?Set(CALLERID(all)=)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:16] ExecIf(“IAX2/MAIN-10701”, “0?Set(CALLERID(all)=)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:17] ExecIf(“IAX2/MAIN-10701”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:18] Set(“IAX2/MAIN-10701”, “CDR(outbound_cnum)=2145555555”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:19] Set(“IAX2/MAIN-10701”, “CDR(outbound_cnam)=MUNOZ JOHN”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:12] GosubIf(“IAX2/MAIN-10701”, “0?sub-flp-4,s,1()”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:13] Set(“IAX2/MAIN-10701”, “OUTNUM=1111111”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:14] Set(“IAX2/MAIN-10701”, “custom=IAX2/MAIN”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:15] ExecIf(“IAX2/MAIN-10701”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:16] ExecIf(“IAX2/MAIN-10701”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:17] Macro(“IAX2/MAIN-10701”, “dialout-trunk-predial-hook,”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] MacroExit(“IAX2/MAIN-10701”, “”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:18] GotoIf(“IAX2/MAIN-10701”, “0?bypass,1”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:19] ExecIf(“IAX2/MAIN-10701”, “0?Set(CONNECTEDLINE(num,i)=1111111)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:20] ExecIf(“IAX2/MAIN-10701”, “0?Set(CONNECTEDLINE(name,i)=CID:2145555555)”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:21] GotoIf(“IAX2/MAIN-10701”, “0?customtrunk”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:22] Dial(“IAX2/MAIN-10701”, “IAX2/MAIN/1111111,300,Tt”) in new stack
[2015-05-21 11:26:47] VERBOSE[32433][C-00006cf4] app_dial.c: – Called IAX2/MAIN/1111111
[2015-05-21 11:26:47] VERBOSE[30229][C-00006cf4] chan_iax2.c: – Call accepted by 192.168.1.21 (format ulaw)
[2015-05-21 11:26:47] VERBOSE[30229][C-00006cf4] chan_iax2.c: – Format for call is (ulaw)
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] app_dial.c: – IAX2/MAIN-17622 is busy
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] chan_iax2.c: – Hungup ‘IAX2/MAIN-17622’
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] app_dial.c: == Everyone is busy/congested at this time (1:1/0/0)
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:23] NoOp(“IAX2/MAIN-10701”, “Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 17”) in new stack
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:24] GotoIf(“IAX2/MAIN-10701”, “0?continue,1:s-BUSY,1”) in new stack
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] pbx.c: – Goto (macro-dialout-trunk,s-BUSY,1)
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:1] NoOp(“IAX2/MAIN-10701”, “Dial failed due to trunk reporting BUSY - giving up”) in new stack
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:2] PlayTones(“IAX2/MAIN-10701”, “busy”) in new stack
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] pbx.c: – Executing [[email protected]:3] Busy(“IAX2/MAIN-10701”, “20”) in new stack
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] app_macro.c: == Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on ‘IAX2/MAIN-10701’ in macro ‘dialout-trunk’
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] pbx.c: == Spawn extension (outbound-allroutes, 9791111111, 6) exited non-zero on ‘IAX2/MAIN-10701’
[2015-05-21 11:26:48] VERBOSE[32433][C-00006cf4] chan_iax2.c: – Hungup ‘IAX2/MAIN-10701’