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 <[email protected] <mailto:[email protected]>> 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
    <[email protected] <mailto:[email protected]>> 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.


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to