Maybe, if I understand you correctly, the 'advertised_address' and/or 'advertised_port' settings are the thing for you?
-- This message was painstakingly thumbed out on my mobile, so apologies for brevity, errors, and general sloppiness.
Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/
On Dec 15, 2011, at 9:42 PM, Ben WIlliams benwilliams@joobworld.com wrote:
On Fri, Dec 16, 2011 at 12:26 PM, Alex Balashov abalashov@evaristesys.com wrote:
On 12/15/2011 06:25 PM, Ben WIlliams wrote:
Hi, My Kamailio server listens on multiple IPs - say IP1, IP2. If a request arrives on one IP, Kamailio uses the same IP as the source address when forwarding, which is good. But is there any way a UA could generate a request to IP1 that gets forwarded by Kamailio with source address IP2 ? The reason I ask is because Asterisk is setup to trust all calls arriving from IP2 but not IP1.
Yes, this is the function of force_send_socket() and/or $fs.
Thanks Alex. I didn't actually want to change the socket in my kamailio script. Just checking that there is no way the SIP message itself can specify which source IP is used when forwarding.
Ben
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users