running Asterisk/10.7.0 on centos 5.8 server
I have two sip trunks running on asterisk. Both trunks are with the same provider (draytel.org), both trunks are different phone numbers. The problem I have is seperating the two trunks on incoming calls.
I want incloming calls on trunk1 to go to ext 17, and incoming calls on trunk2 to go to ext23. But no matter what config I use incoming calls on trunk2 keep going to ext 17.
I’ve tried pattern ‘s’ and pattern _X on both incoming call rules. Pattern s sends all incoming calls to 17 on both trunks, pattern _X. just gives the caller the engaged tone when the phone isn’t being used.
In users conf I have:
[trunk1]
host = draytel.org
username = username1
secret = password11
trunkname = draytel.org ; GUI metadata ; GUI metadata ; GUI metadata
context = DID_draytel.org
hasexten = no
hasiax = no
hassip = yes
registeriax = no
registersip = yes
trunkstyle = voip
insecure = port,invite
fromdomian = draytel.org
disallow = all
allow = gsm,ulaw,alaw,g729,g726
[trunk_2]
host = draytel.org
username = username2
secret = password2
trunkname = trunk2_draytel.org ; GUI metadata ; GUI metadata ; GUI metadata
context = DID_trunk_1
hasexten = no
hasiax = no
hassip = yes
registeriax = no
registersip = yes
trunkstyle = voip
insecure = port,invite
fromdomian = draytel.org
disallow = all
allow = gsm,ulaw,ulaw,g726,g726
thanks for any help.