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 _______________________________________________ Kamailio (OpenSER) - Users mailing list [email protected] http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
