From c9750e5f318a73f9e6e80401eea44e7beaca7d5d Mon Sep 17 00:00:00 2001 From: XAVER Florian Date: Fri, 22 Aug 2025 08:43:59 +0200 Subject: [PATCH] Add additional info about using SIP TCP The account configuration `AccountSipConfig::transportId` and `Account::setTransport()` was not mentioned. --- docs/source/specific-guides/network_nat/sip_tcp.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/source/specific-guides/network_nat/sip_tcp.rst b/docs/source/specific-guides/network_nat/sip_tcp.rst index 78d8265..3522d83 100644 --- a/docs/source/specific-guides/network_nat/sip_tcp.rst +++ b/docs/source/specific-guides/network_nat/sip_tcp.rst @@ -80,10 +80,15 @@ It could be the case that the initial request is sent with TCP, but the subsequent ones are with UDP. In this case, check the URI in the *Route* or *Record-Route* or *Contact* header of the 18x or 2xx response that is sent by the remote party. Chances are this header lacks the -``“;transport=tcp"`` parameter in the URI; in this case, you can either -configure the other end to use TCP, or configure your proxy to -*record-route* (i.e. to force itself to be within the request path of -the call). +``“;transport=tcp"`` parameter in the URI; in this case, you can take one +of the following measures: + + - Configure the other end to use TCP, + - Configure your proxy to *record-route* (i.e. to force itself to be + within the request path of the call). + - Configure the transport of the accounts to have explicit control + (:cpp:any:`AccountSipConfig::transportId`/:cpp:any:`Account::setTransport()` + or :cpp:any:`pjsua_acc_config::transport_id`/:cpp:any:`pjsua_acc_set_transport()`). Automatic Switch to TCP if Request is Larger than 1300 bytes -----------------------------------------------------------------------