Connecting two asterisk servers behind Network address translation (NAT)

35 pts.
Tags:
Alternating Record Formats
Asterisk
NAT
Network Address Translation
SIP trunking
I configured connecting 2 Asterisk Servers via SIP TRUNK without NAT. Now, I am trying to connect 2 Asterisk Servers via SIP TRUNK with NAT: My system likes as: SIP1----->Asterisk Server1----->NAT1------>INTERNET<-----NAT2<-----AsteriskServer2<---SIP2  But it hasn't worked yet. I have some problem with NAT.  So, I would like to post my configuration to be get your helps.  Assuming Asterisk Server1 has IP local address is: 192.168.70.129 and IP Public(IP of modem ADSL) is 118.68.162.111 Asterisk Server 2 has IP local address is: 192.168.174.128 and IP Public(IP of modem ADSL) is 118.68.156.3 At Server1, I did: sip.conf [server2] nat=yes canreinvite=yes externip = 118.68.156.3  localnet = 192.168.174.128/255 localnet = 192.168.174.128/255.255.255.0  externrefresh = 60 type=peer host=118.68.156.3 context=inbound [1400] type=friend host=dynamic  context=outbound extensions.conf [Inbound] exten => _14XX,1,Answer exten => _14XX,2,wait(1) exten => _14XX,3,Dial(SIP/${EXTEN}) exten => _14XX,4,hangup() [outbound] exten => _13XX,1,Dial(SIP/${EXTEN}@server2)­ exten => _14XX,1,Goto(inbound,${EXTEN},1) At Server 2: sip.conf [server1]  nat=yes canreinvite=yes externip = 118.68.162.111  localnet = 192.168.70.129/255 localnet = 192.168.70.129/255.255.255.0  externrefresh = 60 type=peer  host=118.68.162.111 context=inbound  [1300] type=friend host=dynamic context=outbound  extensions.conf  [Inbound]  exten => _13XX,1,Answer  exten => _13XX,2,wait(1) exten => _13XX,3,Dial(SIP/${EXTEN}) exten => _13XX,4,hangup() [outbound] exten => _14XX,1,Dial(SIP/${EXTEN}@server2)­ exten => _13XX,1,Goto(inbound,${EXTEN},1)  So, please take a look and give me some ways to fix them. Thanks a lot

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following