[SR-Users] source port used for forwarded requests

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 16 12:48:27 CET 2011



On 12/16/11 5:17 AM, Alex Balashov wrote:
> Maybe, if I understand you correctly, the 'advertised_address' and/or 'advertised_port' settings are the thing for you?
No, these parameters are not used for selection of socket, not even for 
routing. They are the values to be used to build Via headers, instead of 
using the values from sending socket.

mhomed helps also in selection of the right outgoing socket, when the 
route to destination is possible only from specific sockets.

Cheers,
Daniel

>
> --
> 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
> _______________________________________________
> 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

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list