res_pjsip.c: Added disable_rport option for pjsip.conf

Currently when the pjsip making an outgoing request, it keep adding the
rport parameter in a request message as a default.

This causes unexpected rport handle at the other end.

Added option for disable this behaviour in the pjsip.conf.

This is a system option, but working as a gloabl option.

ASTERISK-28959

Change-Id: I9596675e52a742774738b5aad5d1fec32f477abc
This commit is contained in:
sungtae kim
2020-06-24 01:27:47 +02:00
committed by George Joseph
parent a700134f57
commit e34da79c60
5 changed files with 61 additions and 0 deletions

View File

@@ -1749,6 +1749,12 @@
</para></note>
</description>
</configOption>
<configOption name="disable_rport" default="no">
<synopsis>Disable the use of rport in outgoing requests.</synopsis>
<description><para>
Remove "rport" parameter from the outgoing requests.
</para></description>
</configOption>
<configOption name="type">
<synopsis>Must be of type 'system' UNLESS the object name is 'system'.</synopsis>
</configOption>