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

Benny Amorsen benny+usenet at amorsen.dk
Mon Feb 2 03:46:31 CST 2009


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.


/Benny




More information about the asterisk-users mailing list