Multiple Sip Trunks With The Same ITSP

Home » Asterisk Users » Multiple Sip Trunks With The Same ITSP
Asterisk Users No Comments

HI LIST CAN U HELP ME

If there are multiple sip trunks with the same ITSP then an incoming call is arbitarily matched to the last peer with the same host IP address. This is not a serious problem because the DID is still correct but it does have many insidious effects due to the incorrect channel name

Example

register=myaccount1@sip.myitsp.com/line1
register=myaccount2@sip.myitsp.com/line2
[line1]
type=peer username=myaccount1
host=sip.myitsp.com
[line2]
type=peer username=myaccount2
host=sip.myitsp.com

If sip.myitsp.com directs a call to asterisk with a request line of:

INVITE line1@mybindaddr SIP/2.0

then it is matched to the line2 peer whereas it would probably be better matched to the line1 peer