diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2009-08-05 18:41:23 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2009-08-05 18:41:23 +0000 |
commit | d0c5ad00ee36fb9c0922734dbba059d69b9830dd (patch) | |
tree | 3eeffefcce4cb75a4f1a825b424434a8d62d9d00 /pjsip/include/pjsua-lib | |
parent | a3dcee2a2b4e375e5f9efdac20896923f244d932 (diff) |
Ticket #930:
- Updated semantic of contact param in functions pjsip_dlg_create_uac(), pjsip_dlg_create_uas(), pjsip_endpt_create_request() and also variable pjsua_acc.contact to be Contact header value (was Contact URI).
- Updated docs related to above modifications.
- Fixed pjsua_im_send() in generating contact header, it should use pjsua_acc.contact instead, if it is set.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2855 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 12 | ||||
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua_internal.h | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 023acb6b..e06019d9 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -2163,11 +2163,11 @@ PJ_DECL(pj_status_t) pjsua_acc_create_request(pjsua_acc_id acc_id, /** - * Create a suitable URI to be put as Contact based on the specified - * target URI for the specified account. + * Create a suitable Contact header value, based on the specified target URI + * for the specified account. * * @param pool Pool to allocate memory for the string. - * @param contact The string where the Contact URI will be stored. + * @param contact The string where the Contact will be stored. * @param acc_id Account ID. * @param uri Destination URI of the request. * @@ -2181,11 +2181,11 @@ PJ_DECL(pj_status_t) pjsua_acc_create_uac_contact( pj_pool_t *pool, /** - * Create a suitable URI to be put as Contact based on the information - * in the incoming request. + * Create a suitable Contact header value, based on the information in the + * incoming request. * * @param pool Pool to allocate memory for the string. - * @param contact The string where the Contact URI will be stored. + * @param contact The string where the Contact will be stored. * @param acc_id Account ID. * @param rdata Incoming request. * diff --git a/pjsip/include/pjsua-lib/pjsua_internal.h b/pjsip/include/pjsua-lib/pjsua_internal.h index a144c97d..d80f5d1d 100644 --- a/pjsip/include/pjsua-lib/pjsua_internal.h +++ b/pjsip/include/pjsua-lib/pjsua_internal.h @@ -118,7 +118,7 @@ typedef struct pjsua_acc int index; /**< Index in accounts array. */ pj_str_t display; /**< Display name, if any. */ pj_str_t user_part; /**< User part of local URI. */ - pj_str_t contact; /**< Our Contact URI for REGISTER */ + pj_str_t contact; /**< Our Contact header. */ pj_str_t srv_domain; /**< Host part of reg server. */ int srv_port; /**< Port number of reg server. */ |