diff options
author | Joshua Colp <jcolp@digium.com> | 2015-01-05 17:51:59 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2015-01-05 17:51:59 +0000 |
commit | a7c38428af5da34b99334ad384976c1330c9b569 (patch) | |
tree | f882149799acd33a262d89d6875862bb77a713ba /include | |
parent | cca262e7d32944ae5b0b6f8e0de080be1149bf74 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_pjsip.h | 10 | ||||
-rw-r--r-- | include/asterisk/res_pjsip_session.h | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/res_pjsip.h b/include/asterisk/res_pjsip.h index e708fd8ab..74976c718 100644 --- a/include/asterisk/res_pjsip.h +++ b/include/asterisk/res_pjsip.h @@ -916,6 +916,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 * * \param contact_name Name of the contact diff --git a/include/asterisk/res_pjsip_session.h b/include/asterisk/res_pjsip_session.h index 48d5a4712..75e7f1397 100644 --- a/include/asterisk/res_pjsip_session.h +++ b/include/asterisk/res_pjsip_session.h @@ -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 */ |