All,
I know this topic has been beat to death, BUT, before I get flamed let me explain my scenerio. All I am trying to do is trunk 2 trixboxes together. I have scoured the internet for information regarding the IAX2 protocol. I even read the IETF Draft specs. I have not come across a COMPLETE solution regarding this topic. The closest I came was the guide at http://keystoneit.wordpress.com/2006/08/16/trunking-two-trixbox-s.... This solution works, HOWEVER, it does not take IAX REGISTRATION into consideration. The guide, mentioned above, only works when IP addresses do not change. Now, my understanding (from doing research) is that IAX Registration takes care of that aspect. It sends source and destination IP's in the IAX frames it uses to register the peer. I'm not sure how this would react in the case of NAT connections. Please correct me if I'm wrong. I read somewhere that one solution is to set up a VPN tunnel and use local IP's. That sounds a little over the top IMO. ANY help is GREATLY appreciated!
Here is my configuration. What am I missing?
************************************
* Topology
************************************
Server1.domain.com -> Linksys Router (WRT54G) -> Cable Modem -> Internet
-dynamic IP address
-Ports 4569, 5060, 10000 - 20000 forwarded to Trixbox
-Trixbox version 2.6.1.13 (stand-alone box)
-2 fully functional SIP trunks to DID providers
-2 fully functional SIP extensions
-fully functional Dynamic DNS name
Server2.domain.com -> Linksys Router (WRT54GS) -> DSL Modem -> Internet
-dynamic IP address
-Ports 4569, 5060, 10000 - 20000 forwarded to Trixbox
-Trixbox version 2.6.1.13 (virtual machine)
-fully functional Dynamic DNS name
************************************
* FreePBX Configuration
************************************
-------------
- Server1 -
-------------
Trunk Name: Server2
Peer Details:
context=from-internal
host=Server2.domain.com
qualify=yes
secret=Server2Secret
type=peer
username=Server2User
User Context: Server1User
User Details:
context=from-internal
host=Server2.domain.com
secret=Server1Secret
type=user
Registration: Server2User:Server2Secret@Server2.domain.com
-------------
- Server2 -
-------------
Trunk Name: Server1
Peer Details:
context=from-internal
host=Server1.domain.com
qualify=yes
secret=Server1Secret
type=peer
username=Server1User
User Context: Server2User
User Details:
context=from-internal
host=Server1.domain.com
secret=Server2Secret
type=user
Registration: Server1User:Server1Secret@Server1.domain.com
************************************
* FreePBX PBX Status
************************************
-------------
- Server1 -
-------------
IAX Registry:
Host dnsmgr Username Perceived Refresh State
[Server2IP]:4569 N Server2Use 60 Rejected
IAX Peers:
Name/Username Host Mask Port Status
Server2/Server2 [Server2IP] (S) 255.255.255.255 4569 OK (125 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
-------------
- Server2 -
-------------
IAX Registry:
Host dnsmgr Username Perceived Refresh State
[Server1IP]:4569 N Server1Use 60 Rejected
IAX Peers:
Name/Username Host Mask Port Status
Server1/Server1 [Server1IP] (S) 255.255.255.255 4569 OK (91 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]
************************************
* IAX2 SET DEBUG Info
************************************
-------------
- Server1 -
-------------
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00011ms SCall: 04567 DCall: 00000 [Server2IP:4569]
USERNAME : Server2User
REFRESH : 60
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00011ms SCall: 00512 DCall: 04567 [Server2IP:4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00008ms SCall: 00512 DCall: 04567 [Server2IP:4569]
CAUSE : Registration Refused
CAUSE CODE : 29
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00008ms SCall: 04567 DCall: 00512 [Server2IP:4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00005ms SCall: 16048 DCall: 00000 [Server2IP:4569]
USERNAME : Server1User
REFRESH : 60
Tx-Frame Retry[-01] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00005ms SCall: 03747 DCall: 16048 [Server2IP:4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00007ms SCall: 03747 DCall: 16048 [Server2IP:4569]
CAUSE : Registration Refused
CAUSE CODE : 29
-------------
- Server2 -
-------------
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00003ms SCall: 10953 DCall: 00000 [Server1IP:4569]
USERNAME : Server2User
REFRESH : 60
Tx-Frame Retry[-01] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00003ms SCall: 04528 DCall: 10953 [Server1IP:4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00003ms SCall: 04528 DCall: 10953 [Server1IP:4569]
CAUSE : Registration Refused
CAUSE CODE : 29
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00003ms SCall: 10953 DCall: 04528 [Server1IP:4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ
Timestamp: 00016ms SCall: 05950 DCall: 00000 [Server1IP:4569]
USERNAME : Server1User
REFRESH : 60
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00016ms SCall: 08793 DCall: 05950 [Server1IP:4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ
Timestamp: 00001ms SCall: 08793 DCall: 05950 [Server1IP:4569]
CAUSE : Registration Refused
CAUSE CODE : 29

Member Since:
2009-01-09