[Kamailio-Users] Sending from 1 of N ip address

Juha Heinanen jh at tutpro.com
Fri Jun 19 20:03:08 CEST 2009


Stagg Shelton writes:

 > My basic requirement is that if upstream gateway ip address == 1.2.3.4  
 > then originate and maintain the dialog from my source ip 4.3.2.1  else  
 > if gateway ip == 6.7.8.9  then originate and maintain dialog using  
 > soure ip 9.8.7.6, else if ... N upstream gateways

after you have called next_gw(), you can write a switch statement on
request uri host or on gw's flags that sets the desired source address.

looks like force_send_socket does not allow a pv argument, which could
allow a more dynamic implementation.  you could open a feature request
on it.

-- juha



More information about the Users mailing list