[asterisk-users] Sending Calls via SIP trunk from two different IP addresses from same Asterisk Machine
Steve Howes
steve at geekinter.net
Mon Feb 2 06:53:50 CST 2009
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
More information about the asterisk-users
mailing list