[SR-Users] source port used for forwarded requests

Ben WIlliams benwilliams at joobworld.com
Fri Dec 16 03:42:38 CET 2011


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



More information about the sr-users mailing list