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

Stagg Shelton stagg at 3pconnect.com
Sat Jun 20 18:20:31 CEST 2009


Hi Juha,

Would I use the force_send_socket to set the source address inside the  
switch, or is there some other method that should be used.

Thanks
Stagg

On Jun 19, 2009, at 2:03 PM, Juha Heinanen wrote:

> 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