i have used below guide to connect two Asterisk boxes together. box 1 is a Trixbox v2.8.0.4 , box 2 is FreePBX 2.9.0.12. I can dial from box 1 to box 2 with no problem! box 2 however can not use the original route to call box 1. the setting (both IAX2 and Outgoing routes) are identical.
when i was messing around i created a second trunk, with the following setting.
type=friend
trustrpid=yes
qualify=yes
nat=yes
host=192.168.3.2
Strangely enough when i use this trunk with outgoing trunk, box 2 can place a call to box 1. what can be the reason for this?
SkykingOH i have the following PEER Detail on both boxes as suggested in the guide.
deny=all
allow=g729&alaw
type=friend
host=office2
qualify=yes
context=from-internal
AdHominem,
thansk for your reply! what is the password in this case? i suppose i must make 1 extension on each machine which is the same as the trunk name, and then use the secret as password or not?
Well i found it confusing to include a password as there is no password created for the trunk. But i removed the secret=password line and it works.
But i still have the same problem! i can call office B but office B can not call me! they get a “All circuits are busy now” message!
one question about context=from-internal line! does anything need to be set for this? i remember setting something like this in the .conf files!
here are the peer settings
username=Site1
type=friend
trunk=yes
transfer=no
host=10.10.100.200
disallow=all
context=from-internal
allow=ulaw&alaw
here is the iax2 show peers
Name/Username Host Mask Port Status
Site1/Site2 10.10.100.200 (S) 255.255.255.255 4569 (T) Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
here is the iax2 show peers
Name/Username Host Mask Port Status
Site2/Site1 192.168.3.241 (S) 255.255.255.255 4569 (T) Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
and the log of the call when it fails
Jun 6 12:48:46] VERBOSE[22052] logger.c: – Executing [s@macro-outisbusy:5] Congestion(“SIP/103-0847d038”, “20”) in new stack
[Jun 6 12:48:46] VERBOSE[22052] logger.c: == Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/103-0847d038’ in macro ‘outisbusy’
[Jun 6 12:48:46] VERBOSE[22052] logger.c: == Spawn extension (from-internal, 8333, 6) exited non-zero on ‘SIP/103-0847d038’
[Jun 6 12:48:46] VERBOSE[22052] logger.c: – Executing [h@from-internal:1] Hangup(“SIP/103-0847d038”, “”) in new stack
[Jun 6 12:48:46] VERBOSE[22052] logger.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/103-0847d038’