IAX connection


#1

I have 2 asterisk box. I cannot make a connection with the other asterisk server. I have added an entry on server A on iax.conf file. Then I tried registering server B to server A. I have supplied the username and password for server b. Below is my iax.conf file on server A. I have also the word register in the iax.conf file of server A.

Server A’s iax.conf
[siptest]
type=peer
context=iax-in
username=siptest
secret=siptest
host=192.168.100.20
allow=all

Server B’s iax.conf
register => siptest:siptest@192.168.100.20

What would be the possible mistake that i have typed-in.

Below is the error message that i encountered during the IAX2 reload on the asterisk console of server A.
ay 15 19:41:13 NOTICE[2860]: chan_iax2.c:5062 register_verify: Peer ‘siptest’ is not dynamic (from 192.168.100.5)

Hope you could help me out. Thanks


#2

B is 192.168.100.5
A is 192.168.100.20

You type in iax.conf = A thinks that B will be 192.168.100.20
try to set :
host = dynamic
or
host = 192.168.100.5

I think that this is Your problem here.

-FD


#3

Server A IP: 192.168.100.5
Server B IP: 192.168.100.20

Server A:
iax.conf

[iax-test]
type=user
auth=md5
secret=iax-test
context=iax

sip.conf

[1010]
type = friend
host = dynamic
dtmfmode = auto
context = iax
callerid = “Soft phone on Server A” <1010>

extensions.conf

[iax]
exten => _99.,1,Dial(IAX2/iax-test:iax-test@192.168.100.20/${EXTEN:2},60,rt)

Server B:
iax.conf

[iax-test]
type=user
auth=md5
secret=iax-test
context=iax

sip.conf

[2020]
type = friend
host = dynamic
dtmfmode = auto
context = iax
callerid = “Soft phone on Server B” <2020>

extensions.conf
[iax]
exten => _99.,1,Dial(IAX2/iax-test:iax-test@192.168.100.5/${EXTEN:2},60,rt)

you are on Server A, dial “992020”