Setting source port on tcp/tls

P
Parahax
Wed, Apr 14, 2021 7:00 PM

Hi all,

Is there a way to set the source port on pjsua_transport_config or in pjsip
in general when it's a tcp/tls transport. The port field only works on udp
so the ports made are random ones in the 50k range.

I ask because I'm wondering if those random ports would be blocked on a
network or server that only allows a specific set of ports, or would pjsip
be smart enough to choose the non blocked ones?

Thanks,
Andrey

Hi all, Is there a way to set the source port on pjsua_transport_config or in pjsip in general when it's a tcp/tls transport. The port field only works on udp so the ports made are random ones in the 50k range. I ask because I'm wondering if those random ports would be blocked on a network or server that only allows a specific set of ports, or would pjsip be smart enough to choose the non blocked ones? Thanks, Andrey