diff options
author | Kevin Harwell <kharwell@digium.com> | 2013-12-11 20:24:50 +0000 |
---|---|---|
committer | Kevin Harwell <kharwell@digium.com> | 2013-12-11 20:24:50 +0000 |
commit | c602b086edb3bda8e3406c39b55285f0762b1f67 (patch) | |
tree | 68256d7f795b30e2bc88d6662d912353dc0fdcbc /include/asterisk/res_pjsip.h | |
parent | 90108b15a0bfb0a7fe88a12b4afbcf1086f18df9 (diff) |
res_pjsip_messaging: send message to a default outbound endpoint
In some cases messages need to be sent to a direct URI (sip:<ip address>). This
patch adds in that support by using a default outbound endpoint. When sending
messages, if no endpoint can be found then the default one is used.
To facilitate this a new default_outbound_endpoint option was added to the
globals section for pjsip.conf.
Review: https://reviewboard.asterisk.org/r/2944/
........
Merged revisions 403680 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/res_pjsip.h')
-rw-r--r-- | include/asterisk/res_pjsip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index d34005d62..18d1aafff 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -1369,6 +1369,13 @@ struct ast_sip_endpoint *ast_pjsip_rdata_get_endpoint(pjsip_rx_data *rdata); struct ao2_container *ast_sip_get_endpoints(void); /*! + * \brief Retrieve the default outbound endpoint. + * + * \retval The default outbound endpoint, NULL if not found. + */ +struct ast_sip_endpoint *ast_sip_default_outbound_endpoint(void); + +/*! * \brief Retrieve relevant SIP auth structures from sorcery * * \param auths Vector of sorcery IDs of auth credentials to retrieve |