summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsip/sip_util.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2014-08-18 08:54:43 +0000
committerBenny Prijono <bennylp@teluu.com>2014-08-18 08:54:43 +0000
commitc38c8101be49bb4cb9cf95815f0c2ce955876c3b (patch)
tree7d8c20a74df8f5c1939498c9315271b7413472a7 /pjsip/include/pjsip/sip_util.h
parent6b29b9ed22824ecb99eafa500b22db20cc9f3d75 (diff)
Closed #1677: Contact uses source port in initial registration.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4888 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsip/sip_util.h')
-rw-r--r--pjsip/include/pjsip/sip_util.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_util.h b/pjsip/include/pjsip/sip_util.h
index 226dccd6..c8b43f35 100644
--- a/pjsip/include/pjsip/sip_util.h
+++ b/pjsip/include/pjsip/sip_util.h
@@ -371,6 +371,21 @@ PJ_DECL(pj_status_t) pjsip_endpt_create_cancel( pjsip_endpoint *endpt,
const pjsip_tx_data *tdata,
pjsip_tx_data **p_tdata);
+/**
+ * Get destination address and port and transport type information for the
+ * specified URI.
+ *
+ * @param target_uri The destination URI.
+ * @param request_uri Optional request URI to be considered. May be NULL.
+ * @param pool Pool to allocate memory from.
+ * @param dest_info To be filled with destination info.
+ *
+ * @return PJ_SUCCESS or the appropriate error code.
+ */
+PJ_DECL(pj_status_t) pjsip_get_dest_info(const pjsip_uri *target_uri,
+ const pjsip_uri *request_uri,
+ pj_pool_t *pool,
+ pjsip_host_info *dest_info);
/**
* Find which destination to be used to send the request message, based