Dual Server CHANUNAVAIL to Virtual Office

We are having trouble with what I assume to be our dial plans for calling another asterisk box. The two boxes have been registered with each other using both SIP and IAX2 (seperatley) Currently using SIP.
Everytime we try to call 'PBX2' from 'PBX1' we get a CHANUNAVAIL please try again msg. It doesn't matter what context we used or setup ourselves.(Also in the other direction 'PBX2' to 'PBX1' = CHANUNAVAIL)
Everything was setup using AMP(for the most part), we've tried writting our own 'exten =>' code lines, to dial very directly to the other box, but same thing happens.
This has been happening for over a week now and becoming exhaustingly frustrating for something I was to understand being pretty simple as far as asterisk functionallity.
Everything else works PERFECTLY!!! X100P clone to PSTN, all internal ext's etc...
This shouldn't be that difficult, could some one please help, I'm loosing hair here! I will include some code for your reading pleasures...thanks in advance!

 [sip_additional.conf]
 
 register=PBX1:PBX1@172.16.0.183
 
 ;There are more extensions setup but this is an example...
 [1]
 username=1
 type=friend
 secret=1
 record_out=Adhoc
 record_in=Adhoc
 qualify=no
 port=5060
 nat=never
 mailbox=1@device
 host=dynamic
 dtmfmode=rfc2833
 context=from-internal
 canreinvite=no
 callgroup=2
 callerid=IT Dept <1>
 
 [PBX2]
 username=PBX2
 type=friend
 Trunk=yes
 secret=PBX2
 host=Dynamic
 context=from-pstn
 
 [PBX2U]
 username=PBX2
 type=friend
 secret=PBX2
 context=from-trunk
 
 [extensions_additional.conf]
 
 ;this is the out route AMP created, tried using it amongst others...on trunk 3...
 [outrt-002-TOPBX2]
 include => outrt-002-TOPBX2-custom
 exten => _2XXX,1,Macro(dialout-trunk,3,${EXTEN},,)
 exten => _2XXX,n,Macro(outisbusy,)
 
 ; end of [outrt-002-TOPBX2]
 
 asterisk1*CLI>
   * SIP Call
 1. RegistryInit    Account: PBX1@172.16.0.183
 2. TxReqRel        REGISTER / 2106 REGISTER
 3. Rx              SIP/2.0 / 2106 REGISTER
 4. Rx              SIP/2.0 / 2106 REGISTER
 5. RegistryAuth    Try: 1
 6. TxReqRel        REGISTER / 2107 REGISTER
 7. Rx              SIP/2.0 / 2107 REGISTER
 8. Rx              SIP/2.0 / 2107 REGISTER
 9. SchedDestroy    32000 ms
    -- Executing Macro("SIP/104-0ac6", "dialout-trunk|3|2002||") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "1?3:2") in new stack
    -- Goto (macro-dialout-trunk,s,3)
    -- Executing Macro("SIP/104-0ac6", "user-callerid") in new stack
    -- Executing Set("SIP/104-0ac6", "AMPUSER=104") in new stack
    -- Executing Set("SIP/104-0ac6", "EMERGENCYCID=") in new stack
    -- Executing Set("SIP/104-0ac6", "AMPUSERCIDNAME=test account") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0?6") in new stack
    -- Executing Set("SIP/104-0ac6", "CALLERID(all)="test account" <104>") in new stack
    -- Executing NoOp("SIP/104-0ac6", "Using CallerID "test account" <104>") in new stack
    -- Executing Macro("SIP/104-0ac6", "record-enable|104|OUT") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing AGI("SIP/104-0ac6", "recordingcheck|20060612-053508|1150104908.8") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20060612-053508|1150104908.8: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("SIP/104-0ac6", "No recording needed") in new stack
    -- Executing Macro("SIP/104-0ac6", "outbound-callerid|3") in new stack
    -- Executing Set("SIP/104-0ac6", "USEROUTCID=") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "1?4") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing GotoIf("SIP/104-0ac6", "1?6") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing GotoIf("SIP/104-0ac6", "1?8") in new stack
    -- Goto (macro-outbound-callerid,s,8)
    -- Executing NoOp("SIP/104-0ac6", "CallerID set to "test account" <104>") in new stack
    -- Executing Set("SIP/104-0ac6", "GROUP()=OUT_3") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0?108") in new stack
    -- Executing Set("SIP/104-0ac6", "DIAL_NUMBER=2002") in new stack
    -- Executing Set("SIP/104-0ac6", "DIAL_TRUNK=3") in new stack
    -- Executing AGI("SIP/104-0ac6", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing Set("SIP/104-0ac6", "OUTNUM=2002") in new stack
    -- Executing Set("SIP/104-0ac6", "custom=SIP/PBX2") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0?16") in new stack
    -- Executing Dial("SIP/104-0ac6", "SIP/PBX2/2002|120|W") in new stack
    -- Called PBX2/2002
    -- SIP/PBX2-9ddf is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing Goto("SIP/104-0ac6", "s-CONGESTION|1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing NoOp("SIP/104-0ac6", "Dial failed due to CONGESTION") in new stack
    -- Executing Macro("SIP/104-0ac6", "outisbusy|") in new stack
    -- Executing Playback("SIP/104-0ac6", "all-circuits-busy-now") in new stack
    -- Playing 'all-circuits-busy-now' (language 'en')
    -- Executing Playback("SIP/104-0ac6", "pls-try-call-later") in new stack
    -- Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/104-0ac6' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/104-0ac6'

we really haven't changed a whole lot after that, and it's approx the same from the other box in to this one. Other files are virtually unchanged. please let me know if more information is required to help solve this problem...Thanks again...

We are having trouble with what I assume to be our dial plans for calling another asterisk box. The two boxes have been registered with each other using both SIP and IAX2 (seperatley) Currently using SIP.
Everytime we try to call 'PBX2' from 'PBX1' we get a CHANUNAVAIL please try again msg. It doesn't matter what context we used or setup ourselves.(Also in the other direction 'PBX2' to 'PBX1' = CHANUNAVAIL)
Everything was setup using AMP(for the most part), we've tried writting our own 'exten =>' code lines, to dial very directly to the other box, but same thing happens.
This has been happening for over a week now and becoming exhaustingly frustrating for something I was to understand being pretty simple as far as asterisk functionallity.
Everything else works PERFECTLY!!! X100P clone to PSTN, all internal ext's etc...
This shouldn't be that difficult, could some one please help, I'm loosing hair here! I will include some code for your reading pleasures...thanks in advance!

 [sip_additional.conf]
 
 register=PBX1:PBX1@172.16.0.183
 
 ;There are more extensions setup but this is an example...
 [1]
 username=1
 type=friend
 secret=1
 record_out=Adhoc
 record_in=Adhoc
 qualify=no
 port=5060
 nat=never
 mailbox=1@device
 host=dynamic
 dtmfmode=rfc2833
 context=from-internal
 canreinvite=no
 callgroup=2
 callerid=IT Dept <1>
 
 [PBX2]
 username=PBX2
 type=friend
 Trunk=yes
 secret=PBX2
 host=Dynamic
 context=from-pstn
 
 [PBX2U]
 username=PBX2
 type=friend
 secret=PBX2
 context=from-trunk
 
 [extensions_additional.conf]
 
 ;this is the out route AMP created, tried using it amongst others...on trunk 3...
 [outrt-002-TOPBX2]
 include => outrt-002-TOPBX2-custom
 exten => _2XXX,1,Macro(dialout-trunk,3,${EXTEN},,)
 exten => _2XXX,n,Macro(outisbusy,)
 
 ; end of [outrt-002-TOPBX2]
 
 asterisk1*CLI>
   * SIP Call
 1. RegistryInit    Account: PBX1@172.16.0.183
 2. TxReqRel        REGISTER / 2106 REGISTER
 3. Rx              SIP/2.0 / 2106 REGISTER
 4. Rx              SIP/2.0 / 2106 REGISTER
 5. RegistryAuth    Try: 1
 6. TxReqRel        REGISTER / 2107 REGISTER
 7. Rx              SIP/2.0 / 2107 REGISTER
 8. Rx              SIP/2.0 / 2107 REGISTER
 9. SchedDestroy    32000 ms
    -- Executing Macro("SIP/104-0ac6", "dialout-trunk|3|2002||") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "1?3:2") in new stack
    -- Goto (macro-dialout-trunk,s,3)
    -- Executing Macro("SIP/104-0ac6", "user-callerid") in new stack
    -- Executing Set("SIP/104-0ac6", "AMPUSER=104") in new stack
    -- Executing Set("SIP/104-0ac6", "EMERGENCYCID=") in new stack
    -- Executing Set("SIP/104-0ac6", "AMPUSERCIDNAME=test account") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0?6") in new stack
    -- Executing Set("SIP/104-0ac6", "CALLERID(all)="test account" <104>") in new stack
    -- Executing NoOp("SIP/104-0ac6", "Using CallerID "test account" <104>") in new stack
    -- Executing Macro("SIP/104-0ac6", "record-enable|104|OUT") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0 > 0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing AGI("SIP/104-0ac6", "recordingcheck|20060612-053508|1150104908.8") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20060612-053508|1150104908.8: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing NoOp("SIP/104-0ac6", "No recording needed") in new stack
    -- Executing Macro("SIP/104-0ac6", "outbound-callerid|3") in new stack
    -- Executing Set("SIP/104-0ac6", "USEROUTCID=") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "1?4") in new stack
    -- Goto (macro-outbound-callerid,s,4)
    -- Executing GotoIf("SIP/104-0ac6", "1?6") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing GotoIf("SIP/104-0ac6", "1?8") in new stack
    -- Goto (macro-outbound-callerid,s,8)
    -- Executing NoOp("SIP/104-0ac6", "CallerID set to "test account" <104>") in new stack
    -- Executing Set("SIP/104-0ac6", "GROUP()=OUT_3") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0?108") in new stack
    -- Executing Set("SIP/104-0ac6", "DIAL_NUMBER=2002") in new stack
    -- Executing Set("SIP/104-0ac6", "DIAL_TRUNK=3") in new stack
    -- Executing AGI("SIP/104-0ac6", "fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing Set("SIP/104-0ac6", "OUTNUM=2002") in new stack
    -- Executing Set("SIP/104-0ac6", "custom=SIP/PBX2") in new stack
    -- Executing GotoIf("SIP/104-0ac6", "0?16") in new stack
    -- Executing Dial("SIP/104-0ac6", "SIP/PBX2/2002|120|W") in new stack
    -- Called PBX2/2002
    -- SIP/PBX2-9ddf is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- Executing Goto("SIP/104-0ac6", "s-CONGESTION|1") in new stack
    -- Goto (macro-dialout-trunk,s-CONGESTION,1)
    -- Executing NoOp("SIP/104-0ac6", "Dial failed due to CONGESTION") in new stack
    -- Executing Macro("SIP/104-0ac6", "outisbusy|") in new stack
    -- Executing Playback("SIP/104-0ac6", "all-circuits-busy-now") in new stack
    -- Playing 'all-circuits-busy-now' (language 'en')
    -- Executing Playback("SIP/104-0ac6", "pls-try-call-later") in new stack
    -- Playing 'pls-try-call-later' (language 'en')
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/104-0ac6' in macro 'outisbusy'
  == Spawn extension (macro-outisbusy, s, 2) exited non-zero on 'SIP/104-0ac6'

we really haven't changed a whole lot after that, and it's approx the same from the other box in to this one. Other files are virtually unchanged. please let me know if more information is required to help solve this problem...Thanks again...

Created by: chia83, Last modification: Tue 11 of Sep, 2012 (00:54 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+