mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 12:12:48 +00:00
pjsip: Add 'PJSIP_AOR' and 'PJSIP_CONTACT' dialplan functions.
The PJSIP_AOR dialplan function allows inspection of configured AORs including what contacts are currently bound to them. The PJSIP_CONTACT dialplan function allows inspection of contacts in existence. These can include both externally added (by way of registration) or permanent ones. ASTERISK-24341 Reported by: xrobau Review: https://reviewboard.asterisk.org/r/4308/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@430179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -915,6 +915,16 @@ struct ao2_container *ast_sip_location_retrieve_aor_contacts(const struct ast_si
|
||||
*/
|
||||
struct ast_sip_contact *ast_sip_location_retrieve_contact_from_aor_list(const char *aor_list);
|
||||
|
||||
/*!
|
||||
* \brief Retrieve the first bound contact AND the AOR chosen from a list of AORs
|
||||
*
|
||||
* \param aor_list A comma-separated list of AOR names
|
||||
* \param aor The chosen AOR
|
||||
* \param contact The chosen contact
|
||||
*/
|
||||
void ast_sip_location_retrieve_contact_and_aor_from_list(const char *aor_list, struct ast_sip_aor **aor,
|
||||
struct ast_sip_contact **contact);
|
||||
|
||||
/*!
|
||||
* \brief Retrieve a named contact
|
||||
*
|
||||
|
@@ -105,6 +105,8 @@ struct ast_sip_session {
|
||||
char exten[AST_MAX_EXTENSION];
|
||||
/*! The endpoint with which Asterisk is communicating */
|
||||
struct ast_sip_endpoint *endpoint;
|
||||
/*! The AOR associated with this session */
|
||||
struct ast_sip_aor *aor;
|
||||
/*! The contact associated with this session */
|
||||
struct ast_sip_contact *contact;
|
||||
/*! The PJSIP details of the session, which includes the dialog */
|
||||
|
Reference in New Issue
Block a user