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

Jeff LaCoursiere jeff at stratustalk.com
Thu Oct 29 22:10:01 CDT 2020


I didn't want to post this because its kind of ugly, but we *did* 
actually do it a number of years ago to get around this issue with chan_sip.

Our original architecture was based on LXC, and we had large servers 
running hundreds of containers, each running asterisk.  The "host" ran 
asterisk too, as the gateway for all the container instances.

We once used two of those containers to run asterisk on specific host 
interfaces (one instance bridged to one nic, the other to the other).  
The host asterisk would route calls out one container or the other, with 
the effect you are looking for...

Cheers,

Jeff LaCoursiere
StratusTalk, Inc.


On 10/29/20 9:05 PM, David Cunningham wrote:
> Hi Dovid,
>
> We can change the SDP in Kamailio, but Asterisk will still send its 
> RTP from its default address. The remote end is strict about accepting 
> RTP from the specified source and won't accept it. Have you any 
> suggestions to solve that problem?
>
> Thank you.
>
>
> On Fri, 30 Oct 2020 at 14:49, Dovid Bender <dovid at telecurve.com 
> <mailto:dovid at telecurve.com>> wrote:
>
>     Why not use OpenSips/Kamailoo in between? Where you want 1.1.1.1
>     you pass it along as is. Where you want 2.2.2.2 change the sdp in
>     opensips/kamailio
>
>     On Thu, Oct 29, 2020 at 20:44 David Cunningham
>     <dcunningham at voisonics.com <mailto:dcunningham at voisonics.com>> wrote:
>
>         Hello,
>
>         Does anyone know a way with chan_sip to tell Asterisk to use a
>         specific IP address for its end of the communication for a
>         specific device? Something like:
>
>         [device]
>         type = friend
>         host = 11.22.11.22
>         ouraddress = 33.44.33.44
>
>         This is for use on a server with multiple IP addresses. There
>         is the "extenip" setting, but it's really designed for NAT,
>         and can only appear in the [general] section.
>
>         Any suggestions would be greatly appreciated.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20201029/72182a71/attachment.html>


More information about the asterisk-users mailing list