Asterisk 13.X With Multiple IP Addresses: Can I Force A Given Chan_sip Peer To A Given IP Address ?
Home » Asterisk Users » Asterisk 13.X With Multiple IP Addresses: Can I Force A Given Chan_sip Peer To A Given IP Address ?
I’m quite sure this question has already be asked previously but before diving into it with a lab setup, I would like to re-ask here the thereafter question.
I’ve got a bunch of very old Asterisk boxes (lastest Asterisk version isĀ 1.6.1.X), all belonging to the same network, I would like to centralize on a single Asterisk instance on a brand new box. This instance will be powered with lastest available LTS Asterisk (AsteriskĀ 13.X, currently).
I know this is possible with PJSIP transport setting but with chan_sip, is it possible to specify that to communicate with a given SIP peer, a specific IP address (and only this one) is used ?
Best regards
2 thoughts on - Asterisk 13.X With Multiple IP Addresses: Can I Force A Given Chan_sip Peer To A Given IP Address ?
Oliver,
Not per peer. What you can do is if you have a few spare IP’s is set up OpenSiPS and bounce the calls that way.
The call will be: Carrier -> OpenSipS -> Asterisk.
Asterisk will see the IP of OpenSipS and you can decide there what to do with the call.
That confirms what I thought (feared?).
Maybe, I’m gonna try with PJSIP channel instead as you can specify a peer-specific transport with PJSIP.
I’ll check if if using a specific IP in PJSIP transport setting.
Yes certainly, that’s an interesting solution that also brings other benefits, its main limitation being my current of OpenSiPS experience.
Thanks for replying