Hi,
I am a asterisk newbie, bear with me please.
I am trying to configure an IAX2 trunk, but I am having a proble. My setup is the following:Two Asterisk Servers. On Server A(IP 192.168.1.10) I registered to Server B (IP 192.168.1.20).
iax.conf (Server A):
[general]
bandwidth=low
jitterbuffer=no
forcejitterbuffer=no
register=>691:123456@192.168.1.20:4569
register=>692:123456@192.168.1.20:4569
autokill=yes
requirecalltoken=no
[default]
type=user
context=from-trunk
[321]
type=user
username=321
secret=321
host=dynamic
context=from-S1
allow=all
[322]
type=user
username=322
secret=322
host=dynamic
context=from-S2
allow=all
[iax-trunk1]
secret=123456
fromuser=691
username=691
authname=691
type=peer
insecure=invite
context=*
canreinvite=no
host=192.168.1.20
;notransfer=yes
;trunk=yes
[iax-trunk2]
secret=123456
fromuser=692
username=692
authname=692
type=peer
insecure=invite
context=*
canreinvite=no
host=192.168.1.20
;notransfer=yes
extensions.conf (Server A):
[from-S1]
exten=>_32X,1,Dial(IAX2/${EXTEN},r)
exten=>_32X,n,Hangup
exten=>_X.,1,Dial(IAX2/iax-trunk1/${EXTEN})
exten=>_X.,n,Hangup
[from-S2]
exten=>_32X,1,Dial(IAX2/${EXTEN},r)
exten=>_32X,n,Hangup
exten=>_X.,1,Dial(IAX2/iax-trunk2/${EXTEN})
exten=>_X.,n,Hangup
Server A call Server B is fine, but when Server B call “691” or “692”, I got extension “s”. [color=#FF0000]How Can I distinguish the call?[/color]
Sorry for my poor engish.Thanx in advance for any response.