Iax


#1

Hi for all.
I am with problems to establish connection two servers asterisk. It would like to establish connection in iax2, but I tried of you vary ways, including voip-info.org.
Somebody could help me?


#2

would you please tell us the topology and the configuration of your astersk servers,I have tried to connect at least 6 servers at the same time ,the work fine. I wish I can help you


#3

Hi Albee, follows my configurations of the two servers asterik. I thank its attention. Necessary to liberate in iptables 20000 doors 10000 and UDP or so the 4569?

SERVER A

[general]
port=4569
bindaddr=200.xxx.xxx.xxx ; ip server a
context=default
trunkdfreq=40
amaflags=billing
disallow=all
allow=gsm
allow=g729
allow=g723.1
tos=lowdelay
jitterbuffer=yes

[user_server_b]
type=user
username=user_serverb
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip address server b
qualify=yes
trunk=yes
insecure=very
canreinvite=yes
incominglimit=30
disallow=all
allow=gsm
allow=g729
allow=g723.1
allow=ulaw

[user_servera]
username=user_servera
type=user
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip server b
nat=no
trunk=yes
insecure=very
canreinvite=yes
dtmfmode=inband
incominglimit=30
disallow=all
allow=gsm
allow=g729
allow=g723.1
allow=ulaw

SERVER B

[general]
port=4569
bindaddr=200.xxx.xxx.xxx ; ip address server b
context=default
trunkdfreq=40
amaflags=billing
disallow=all
allow=gsm
allow=g729
allow=g723.1
tos=lowdelay
jitterbuffer=yes

[user_servera]
username=user_servera
type=user
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip server b
nat=no
trunk=yes
insecure=very
canreinvite=yes
dtmfmode=inband
incominglimit=30
disallow=all
allow=gsm
allow=g729
allow=g723.1
allow=ulaw

[user_serverb]
type=user
username=user_serverb
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip address server a
qualify=yes
trunk=yes
insecure=very
canreinvite=yes
incominglimit=30
disallow=all
allow=gsm
allow=g729
allow=g723.1
allow=ulaw


#4

Hi josueconti:
I have read the configuration files,there is no problem,but I have three suggestions.
The 1st is:in general of iax.conf ,should use bindport=4569,not port=4569,or you can use like it: bindaddr:4569=200.xxx.xxx.xxx
The 2nd is:try best to make the config file simple and use the default value of component.Below is the modified config files which I have tested in my enviroment.Be more attension is that in iax,we can let NAT alone cause IAX protocol control the signal and media by using a single UDP port.

SERVER A

[general]
bindport=4569
bindaddr=200.xxx.xxx.xxx ; ip server a
allow=gsm
allow=g729
allow=g723.1
tos=lowdelay
jitterbuffer=yes

[user_serverb]
type=user
username=user_serverb
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip address server b
qualify=yes
trunk=yes
insecure=very
incominglimit=30

[user_servera]
username=user_servera
type=user
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip server b
trunk=yes
insecure=very
dtmfmode=inband
incominglimit=30

SERVER B
[general]
bindport=4569
bindaddr=200.xxx.xxx.xxx ; ip address server b
context=default
allow=gsm
allow=g729
allow=g723.1
tos=lowdelay
jitterbuffer=yes

[user_servera]
username=user_servera
type=user
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip server b
trunk=yes
insecure=very
canreinvite=yes
dtmfmode=inband
incominglimit=30

[user_serverb]
type=user
username=user_serverb
context=default
secret=pass
host=200.xxx.xxx.xxx ; ip address server a
qualify=yes
trunk=yes
insecure=very
canreinvite=yes
incominglimit=30

The 3rd suggestion is:except one server register to anoter,and dial from one server to another,there is no connection between them,so you cannot judge the vailidation of connetcions.So you can register serverA to serverB, and in CLI,use “IAX2 show peers .IAX2 show registery” commands to check the connection.
Wish helpful ,Thanks


#5

Hi Albee, thank’s for its help.
I tried 1st, but in the CLI> of the servers asterisk only appeared the line: Jan 25 18:00:11 NOTICE[18702 ]: chan_iax2.c:3907 register_verify: In registration it will be to peer ’ user_serverb ’ (from 200.xxx.xxx.xxx (server a IP address)) Jan 25 18:00:29 NOTICE[18702 ]: chan_iax2.c:5873 socket_read: Registration of ’ user_server_a ’ rejected: Registration Refused.
I will try 2nd, but you find that I will obtain? He could order an samples to me of as you asterisk configured its? Samples of iax.conf, extensions.conf,…

Greetings

Josué Conti