diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-03-23 19:09:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-03-23 19:09:54 +0000 |
commit | 57921286f7577dd670b905f85a4ef0271cfb2028 (patch) | |
tree | 2d14cbbee45fc7df5d2dba49c3195cf06d595be9 /pjsip/src/pjsua-lib/pjsua_acc.c | |
parent | e3fd604ea862f68ad3ece248ca7d853899cbf48f (diff) |
ICE (work in progress): implemented server reflexive candidate
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1099 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_acc.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_acc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c index b168c9ad..3e39b15f 100644 --- a/pjsip/src/pjsua-lib/pjsua_acc.c +++ b/pjsip/src/pjsua-lib/pjsua_acc.c @@ -943,6 +943,12 @@ PJ_DEF(pj_status_t) pjsua_acc_create_uac_contact( pj_pool_t *pool, PJ_ASSERT_RETURN(pjsua_acc_is_valid(acc_id), PJ_EINVAL); acc = &pjsua_var.acc[acc_id]; + /* If force_contact is configured, then use use it */ + if (acc->cfg.force_contact.slen) { + *contact = acc->cfg.force_contact; + return PJ_SUCCESS; + } + /* If route-set is configured for the account, then URI is the * first entry of the route-set. */ @@ -1037,6 +1043,12 @@ PJ_DEF(pj_status_t) pjsua_acc_create_uas_contact( pj_pool_t *pool, PJ_ASSERT_RETURN(pjsua_acc_is_valid(acc_id), PJ_EINVAL); acc = &pjsua_var.acc[acc_id]; + /* If force_contact is configured, then use use it */ + if (acc->cfg.force_contact.slen) { + *contact = acc->cfg.force_contact; + return PJ_SUCCESS; + } + /* If Record-Route is present, then URI is the top Record-Route. */ if (rdata->msg_info.record_route) { sip_uri = (pjsip_sip_uri*) |