[asterisk-users] Multiple IP addresses and using same IP for outbound calls as inbound

David Cunningham dcunningham at voisonics.com
Wed Oct 21 22:15:36 CDT 2020


Hello,

We have an Asterisk server with two public IP addresses, let's say 1.1.1.1
and 2.2.2.2. Normally calls come in to 1.1.1.1 and are bridged with a call
dialled from Asterisk to an external destination. The external destination
sees the SIP packet as coming from 1.1.1.1 and the media address in the SDP
is 1.1.1.1, which is great.

However if we receive a call in to 2.2.2.2 then the call dialled from
Asterisk to an external destination still comes from 1.1.1.1, whereas we
want it to come from 2.2.2.2. The source of any dialled call (the IP packet
and the SDP media address) should be the same as the address the related
inbound call was received to.

For example:
INVITE received to 1.1.1.1:5060 -> Asterisk dials
destination at termination.com -> INVITE sent from 1.1.1.1:5060 to
termination.com
INVITE received to 2.2.2.2:5060 -> Asterisk dials destination at pstn.com ->
INVITE sent from 2.2.2.2:5060 to pstn.com

Does anyone know how this can be achieved?

Thanks in advance for your help,

-- 
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20201022/61ad95c5/attachment.html>


More information about the asterisk-users mailing list