How create IAX Trunk

jgrados
Joined: Thu 06 of Nov, 2008

How create IAX Trunk

Posted:Thu 06 of Nov, 2008 (06:13 UTC)


[30200]
type=friend
secret=30200
host=192.168.254.58    ;(ip of host B)
context=total

[IAX-B]
username=20200
type=peer
secret=20200
qualify=yes
host=192.168.254.58
context=total

--------- In B place I have (freepbx) :

[20200]  
type=friend
secret=20200
host=10.3.251.58      ; (machine A)
context=from-internal

[IAX-A]
username=30200
type=peer
secret=30200
qualify=yes
host=10.3.251.58
context=from-internal

I can't do calls ..and I have (logs of B place) :
Nov  5 23:37:11 NOTICE[21812] chan_iax2.c: Rejected connect attempt from 192.168.254.58, who was trying to reach '028@'
Nov  5 23:37:11 WARNING[21812] chan_iax2.c: Call rejected by 192.168.254.58: No authority found
Nov  5 23:37:11 DEBUG[21812] chan_iax2.c: Immediately destroying 17, having received reject



I am trying the tips from http://www.voip-info.org/wiki/view/Asterisk+-+dual+servers, but i can't do a IAX Trunk between A and B .
How and where I should be configure the dial plan in order to make a IAX Trunk. AND / OR I need other parameters ?


Thanks in advance .