Here is my setup, this is just a test lab til I figure out how to do this<br>
<br>
Both machines are on a lan, no routers, firewalls etc between <br>
<br>
BoxA<br>
<a href="http://192.168.1.192">192.168.1.192</a><br>
2XXX extensions<br>
<br>
BoxA iax.conf<br>
[boxb-peer]<br>
username=boxa-user<br>
type=peer<br>
trunk=yes<br>
secret=mypassword<br>
host=<a href="http://192.168.1.139">192.168.1.139</a><br>
<br>
[boxb-user]<br>
type=user<br>
secret=mypassword2<br>
host=<a href="http://192.168.1.139">192.168.1.139</a><br>
context=from-internal<br>
<br>
BoxA extensions_custom.conf (included in extensions.conf)<br>
[ext-local-custom]<br>
exten => _1XXX,1,Dial(IAX2/boxb-user:mypassword2@192.168.1.139/${EXTEN:1},30,r)<br>
exten => _1XXX,2,Congestion<br>
<br>
BoxB<br>
<a href="http://192.168.1.139">192.168.1.139</a><br>
1XXX extensions<br>
<br>
BoxB iax.conf<br>
[boxa-peer]<br>
username=boxb-user<br>
type=peer<br>
trunk=yes<br>
secret=mypassword2<br>
host=<a href="http://192.168.1.192">192.168.1.192</a><br>
<br>
[boxa-user]<br>
type=user<br>
secret=mypassword<br>
host=<a href="http://192.168.1.192">192.168.1.192</a><br>
context=from-internal<br>
<br>
BoxB extensions_custom.conf (included in extensions.conf)<br>
[ext-local-custom]<br>
exten => _2XXX,1,Dial(IAX2/boxa-user:mypassword@192.168.1.192/${EXTEN:1},30,r)<br>
exten => _2XXX,2,Congestion<br>
<br>
<br>
calling the 2xxx extensions gets me the following message no matter what extension I call in that group<br>
In this case the number I was dialing is 2001<br>
<br>
-- Executing Dial("SIP/2001-ea9d", "IAX2/boxb-user:mypassword2@192.168.1.139/001|30|r") in new stack<br>
-- Called boxb-user:mypassword2@192.168.1.139/001<br>
-- Hungup 'IAX2/boxb-peer-1'<br>
== Everyone is busy/congested at this time (1:0/0/1)<br>
-- Executing Congestion("SIP/2001-ea9d", "") in new stack<br>
-- Executing Macro("SIP/2001-ea9d", "hangupcall") in new stack<br>
-- Executing ResetCDR("SIP/2001-ea9d", "w") in new stack<br>
-- Executing NoCDR("SIP/2001-ea9d", "") in new stack<br>
-- Executing Wait("SIP/2001-ea9d", "5") in new stack<br>
-- Executing Dial("SIP/2001-3bd5", "IAX2/boxb-user:mypassword2@192.168.1.139/002|30|r") in new stack<br>
-- Called boxb-user:mypassword2@192.168.1.139/002<br>
-- Hungup 'IAX2/boxb-peer-2'<br>
== Everyone is busy/congested at this time (1:0/0/1)<br>
-- Executing Congestion("SIP/2001-3bd5", "") in new stack<br>
-- Executing Macro("SIP/2001-3bd5", "hangupcall") in new stack<br>
<br>
<br>
Does it look correct? Am I missing something in this config? <br>