Disable rport on PJSIP

Hi, is there a way of forbidding Asterisk with PJSIP to send rport in Via header. Although I have an option force_rport set to no for my endpoints, rport is still present in the Options messages. This causes my cisco phones to automatically fall to unavailable state. For CHAN_SIP nat=no seems to work as expected.

Thanks in advance.

09:31:54.004628 IP (tos 0x0, ttl 64, id 24137, offset 0, flags [DF], proto UDP (17), length 453) > SIP, length: 425
	OPTIONS sip:1002@ SIP/2.0
	Via: SIP/2.0/UDP;rport;branch=z9hG4bKPj60e15592-489f-4424-b8f5-46a385119c15
	From: <sip:1002@>;tag=90bd01f7-c24d-4092-ba81-94fa068dfe62
	To: <sip:1002@>
	Contact: <sip:1002@>
	Call-ID: fe9bd533-8f8d-488f-aa76-76f5064a42de
	CSeq: 22705 OPTIONS
	Max-Forwards: 70
	User-Agent: FPBX-
	Content-Length:  0

I don’t think there is any configuration option, and I believe PJSIP has some explicit stuff (which may not be configurable) to place it into the signaling.

Joshua, thank you for a quick answer. I found something for an old version of PJSIP here: https://trac.pjsip.org/repos/ticket/1155 but have no idea if I can use it somehow or not. From your point of view, is there a way to turn this on (recompile)? I only found the reference in pjsip/src/pjsip/sip_util.c file.

Thank you.

If you modify the source code somewhere to do it then yes, otherwise an option would need to be added to pjsip.conf to configure that.

Thank you very much. I wiil try to find a way.