Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] IAX2 problem for WAN connections


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
asterisk_list at earth...
Guest





PostPosted: Thu Feb 05, 2015 11:03 am    Post subject: [asterisk-users] IAX2 problem for WAN connections Reply with quote

On Thursday 05 Feb 2015, jg wrote:
Quote:
Calling from ServerB to ServerA works, but not vice versa. The only odd
thing that appears to me is the different perceived port on ServerA.

ServerA*CLI> iax2 show registry
Host dnsmgr Username Perceived Refresh State
80.152.xxx.xxx:4569 N ServerA 79.233.yyy.yyy:45697 60
Registered

ServerB*CLI> iax2 show registry
Host dnsmgr Username Perceived Refresh State
79.233.yyy.yyy:4569 N ServerB 79.233.yyy.yyy:4569 60 Request
Sent

Does someone have an idea at what to look in detail?


Look in /etc/asterisk/iax.conf in the first instance.

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
webaccounts173 at jgoe...
Guest





PostPosted: Thu Feb 05, 2015 11:21 am    Post subject: [asterisk-users] IAX2 problem for WAN connections Reply with quote

Quote:
On Thursday 05 Feb 2015, jg wrote:
Quote:
Calling from ServerB to ServerA works, but not vice versa. The only odd
thing that appears to me is the different perceived port on ServerA.

Does someone have an idea at what to look in detail?

Look in /etc/asterisk/iax.conf in the first instance.


Basically I used the example from the Asterisk book "Connecting Two Asterisk Boxes Together via
IAX" and there is not a lot to see:


; Server A
[general]
; this box remote IP
register => ServerA:very_secret@80.152.xxx.xxx

disallow=all
allow=alaw
allow=ulaw
allow=gsm

jitterbuffer=no
forcejitterbuffer=no
autokill=yes


; the other box
[ServerB]
type=friend
trunk=no
auth=md5
encryption=yes
secret=very_secret
context=from-ServerB
qualify=yes
host=dynamic
; end of Server A


; Server B
[general]
; this box remote IP
register => ServerB:very_secret@79.233.yyy.yyy

disallow=all
allow=alaw
allow=ulaw
allow=gsm

jitterbuffer=no
forcejitterbuffer=no
autokill=yes

; the other box
[ServerA]
type=friend
trunk=no
auth=md5
encryption=yes
secret=very_secret
context=from-ServerA
qualify=yes
host=dynamic
; end of Server B

If I replace the WAN addresses of the two routers with addresses on the LAN, everything works.
Currently, I am not sure whether it could be a NAT related or Asterisk configuration problem.

jg

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
webaccounts173 at jgoe...
Guest





PostPosted: Thu Feb 05, 2015 5:05 pm    Post subject: [asterisk-users] IAX2 problem for WAN connections Reply with quote

I found a way that works. Essentially, I deleted the register lines and added the hosts with
deny all and specific permit specs. I don't know why it works, but it does.

jg

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services