diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-09-20 12:16:56 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-09-20 12:16:56 +0000 |
commit | 643ea6e515fc75d19cd3f0a6dbdb00ac2b2fd167 (patch) | |
tree | 0d7508f215d2622f41a257040dcb63e1e64f2e57 /pjsip/include | |
parent | 7542c4898053f6c15ac58f146f2852e59e592503 (diff) |
Ticket #611: Configuration option to force the route URI to use loose routing
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2301 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 10 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index f8801776..e377e059 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -1115,6 +1115,16 @@ typedef struct pjsua_config pj_str_t nameserver[4]; /** + * Force loose-route to be used in all route/proxy URIs (outbound_proxy + * and account's proxy settings). When this setting is enabled, the + * library will check all the route/proxy URIs specified in the settings + * and append ";lr" parameter to the URI if the parameter is not present. + * + * Default: 1 + */ + pj_bool_t force_lr; + + /** * Number of outbound proxies in the \a outbound_proxy array. */ unsigned outbound_proxy_cnt; diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index d52b6d52..ef1487a4 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -342,6 +342,11 @@ PJ_INLINE(pjsua_im_data*) pjsua_im_data_dup(pj_pool_t *pool, #define PJSUA_UNLOCK() #endif +/** + * Normalize route URI (check for ";lr" and append one if it doesn't + * exist and pjsua_config.force_lr is set. + */ +pj_status_t normalize_route_uri(pj_pool_t *pool, pj_str_t *uri); /** * Resolve STUN server. |