[asterisk-users] tcpbind and source IP address

Joshua Colp jcolp at digium.com
Mon Mar 13 06:46:40 CDT 2017


On Mon, Mar 13, 2017, at 08:43 AM, Kseniya Blashchuk wrote:
> Mmh sorry I'm afraid I did not understand your last message. Yes the code
> does that but only with UDP, for TCP the source address is 192.168.0.172
> though it's bound to 192.168.0.177:
> IP 192.168.0.172.47596 > <mydestip>.5061
> If it was a system/kernel issue, then why is the behavior different for
> TCP
> and UDP? I thought that maybe the application does not request the bound
> address as a source in case of TCP...

The chan_sip module, from looking at the code, does use the bound
address when connecting. Someone would need to dig deeper to understand
if the problem is somehow in Asterisk or if it is the system somehow
doing it.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list