hello,
i am a newbie in asterisk. i have two asterisk box. one with a public ip and another with a private ip.
when i try to register to the public ip from the private ip it fails to register and in the cli i see perceived (unregistered). but when i use a public ip instead of a private ip. the registration is successful with the same settings.
i m giving the configs below.
Public ip:
iax.conf
[general]
bindport=4569
bindaddr=0.0.0.0
bandwidth=low
disallow=all
allow=g729
allow=g723.1
jitterbuffer=no
forcejitterbuffer=no
trunkfreq=20
autokill=yes
codecpriority=caller
#include “iax_additional.conf”
iax_additional.conf
[asterisk]
type=friend
secret=123456
host=dynamic
trunk=yes
qualify=yes
context=from-sip
requirecalltoken=no
auth=none
private ip:
iax.conf
[general]
bindport=4569
bindaddr=x.x.x.x
bandwidth=low
disallow=all
allow=g729
allow=g723.1
jitterbuffer=no
forcejitterbuffer=no
trunkfreq=20
autokill=yes
codecpriority=caller
#include “iax_additional.conf”
iax_additional.conf
register => asterisk:123456@x.x.x.x:4569
[asterisk]
type=friend
username=asterisk
secret=123456
host=x.x.x.x
port=4569
nat=yes
trunk=yes
qualify=yes
context=from-sip
requirecalltoken=no
both box has firewall disabled and i can ping the public ip from the private ip.
below is the cli print
localhost*CLI> iax2 show registry
Host dnsmgr Username Perceived Refresh State
x.x.x.x:4569 N asterisk 60 Request Sent
1 IAX2 registrations.
if i reload the iax2 , i get this
[Oct 1 21:39:58] NOTICE[3718]: chan_iax2.c:13075 set_config: Ignoring bindport on reload
[Oct 1 21:39:58] NOTICE[3718]: chan_iax2.c:13136 set_config: Ignoring bindaddr on reload
[Oct 1 21:39:58] NOTICE[3718]: chan_iax2.c:11999 iax2_poke_peer: Still have a callno…
what is going wrong here? please help me. i have going over this again and again, but couldnt find a solution.
thanks in advance.
sajib