Changeset 881 for pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
- Timestamp:
- Jan 13, 2007 11:22:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r875 r881 1342 1342 pjsip_cred_info cred_info[PJSUA_ACC_MAX_PROXIES]; 1343 1343 1344 /** 1345 * Optionally bind this account to specific transport. This normally is 1346 * not a good idea, as account should be able to send requests using 1347 * any available transports according to the destination. But some 1348 * application may want to have explicit control over the transport to 1349 * use, so in that case it can set this field. 1350 * 1351 * Default: -1 (PJSUA_INVALID_ID) 1352 * 1353 * @see pjsua_acc_set_transport() 1354 */ 1355 pjsua_transport_id transport_id; 1356 1344 1357 } pjsua_acc_config; 1345 1358 … … 1355 1368 1356 1369 cfg->reg_timeout = PJSUA_REG_INTERVAL; 1370 cfg->transport_id = PJSUA_INVALID_ID; 1357 1371 } 1358 1372 … … 1655 1669 pjsip_rx_data *rdata ); 1656 1670 1671 1672 /** 1673 * Lock/bind this account to a specific transport/listener. Normally 1674 * application shouldn't need to do this, as transports will be selected 1675 * automatically by the stack according to the destination. 1676 * 1677 * When account is locked/bound to a specific transport, all outgoing 1678 * requests from this account will use the specified transport (this 1679 * includes SIP registration, dialog (call and event subscription), and 1680 * out-of-dialog requests such as MESSAGE). 1681 * 1682 * Note that transport_id may be specified in pjsua_acc_config too. 1683 * 1684 * @param acc_id The account ID. 1685 * @param tp_id The transport ID. 1686 * 1687 * @return PJ_SUCCESS on success. 1688 */ 1689 PJ_DECL(pj_status_t) pjsua_acc_set_transport(pjsua_acc_id acc_id, 1690 pjsua_transport_id tp_id); 1657 1691 1658 1692
Note: See TracChangeset
for help on using the changeset viewer.