pjsua_acc_set_transport method
Lock/bind this account to a specific transport/listener. Normally application shouldn't need to do this, as transports will be selected automatically by the stack according to the destination.
When account is locked/bound to a specific transport, all outgoing requests from this account will use the specified transport (this includes SIP registration, dialog (call and event subscription), and out-of-dialog requests such as MESSAGE).
Note that transport_id may be specified in pjsua_acc_config too.
@param acc_id The account ID. @param tp_id The transport ID.
@return PJ_SUCCESS on success.
Implementation
int pjsua_acc_set_transport(
int acc_id,
int tp_id,
) {
return _pjsua_acc_set_transport(
acc_id,
tp_id,
);
}