[asterisk-users] Sending Calls via SIP trunk from two different IP addresses from same Asterisk Machine

Steve Totaro stotaro at first-notification.com
Mon Feb 2 14:34:05 CST 2009


On Mon, Feb 2, 2009 at 7:53 AM, Steve Howes <steve at geekinter.net> wrote:
>
> On 2 Feb 2009, at 09:46, Benny Amorsen wrote:
>
>> Jeff LaCoursiere <jeff at jeff.net> writes:
>>
>>> Ah, that makes more sense.  Asterisk binding to another IP is not the
>>> issue, actually, and even running another instance will not do what
>>> you
>>> need.  Your problem is that the OS itself will stamp outbound packets
>>> with the main source IP of the main interface.  Asterisk could be
>>> modified
>>> to send packets with specific IP source, but I don't think that
>>> would be a
>>> simple change.
>>
>> ip route add default via 1.2.3.4 src 1.2.3.8
>> ip route add 9.8.7.6 via 1.2.3.4 src 1.2.3.9
>>
>> If the special SIP provider is 9.8.7.6, this should make the packets
>> to it comes from 1.2.3.9. This only applies if the application does
>> not pick a source address itself, but I believe that is true for
>> Asterisk.
>
> We do that on a box or two, appears to work fine.
>
> S
>

Yes, this does work.

-- 
Thanks,
Steve Totaro
+18887771888 (Toll Free)
+12409381212 (Cell)
+12024369784 (Skype)



More information about the asterisk-users mailing list