Add additional info about using SIP TCP transport#31
Open
wosrediinanatour wants to merge 1 commit intopjsip:masterfrom
Open
Add additional info about using SIP TCP transport#31wosrediinanatour wants to merge 1 commit intopjsip:masterfrom
wosrediinanatour wants to merge 1 commit intopjsip:masterfrom
Conversation
The account configuration `AccountSipConfig::transportId` and `Account::setTransport()` was not mentioned.
nanangizz
reviewed
Aug 25, 2025
| 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()`). |
Member
There was a problem hiding this comment.
Actually the account's transport binding is for different purposes (e.g: selecting IP version or network interface) and cannot be used for specifying transport type for sending a SIP request. The transport type is specified in the SIP request message itself (e.g: via target URI or proxy/route) as described in the docs. So if you send a request using transport type that is different to the binding (e.g: account is bound to UDP while request specifies a TCP target), the request will fail to send.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The account configuration
AccountSipConfig::transportIdandAccount::setTransport()was not mentioned.