[SR-Users] source port used for forwarded requests

Alex Balashov abalashov at evaristesys.com
Fri Dec 16 05:17:13 CET 2011


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 at joobworld.com> wrote:

> On Fri, Dec 16, 2011 at 12:26 PM, Alex Balashov
> <abalashov at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list