Merge "res_pjsip_mwi: Add voicemail extension and mwi_subscribe_replaces_unsolicited" into 13

This commit is contained in:
Joshua Colp
2016-04-04 14:16:02 -05:00
committed by Gerrit Code Review
13 changed files with 288 additions and 92 deletions

View File

@@ -310,6 +310,8 @@ struct ast_sip_aor {
unsigned int support_path;
/*! Qualify timeout. 0 is diabled. */
double qualify_timeout;
/* Voicemail extension to set in Message-Account */
char *voicemail_extension;
};
/*!
@@ -464,6 +466,10 @@ struct ast_sip_mwi_configuration {
);
/* Should mailbox states be combined into a single notification? */
unsigned int aggregate;
/* Should a subscribe replace unsolicited notifies? */
unsigned int subscribe_replaces_unsolicited;
/* Voicemail extension to set in Message-Account */
char *voicemail_extension;
};
/*!
@@ -2163,6 +2169,16 @@ char *ast_sip_get_regcontext(void);
*/
char *ast_sip_get_endpoint_identifier_order(void);
/*!
* \brief Retrieve the default voicemail extension.
* \since 13.9.0
*
* \note returned string needs to be de-allocated by caller.
*
* \retval the default voicemail extension
*/
char *ast_sip_get_default_voicemail_extension(void);
/*!
* \brief Retrieve the global default from user.
*
@@ -2302,4 +2318,5 @@ int ast_sip_set_tpselector_from_transport_name(const char *transport_name, pjsip
void ast_sip_modify_id_header(pj_pool_t *pool, pjsip_fromto_hdr *id_hdr,
const struct ast_party_id *id);
#endif /* _RES_PJSIP_H */

View File

@@ -65,6 +65,8 @@ struct ast_sip_message_accumulator {
int old_msgs;
/*! Number of new messages */
int new_msgs;
/*! Message-Account */
char message_account[PJSIP_MAX_URL_SIZE];
};
#endif /* _RES_PJSIP_BODY_GENERATOR_TYPES_H */

View File

@@ -339,6 +339,14 @@ struct ast_sip_subscription_handler {
struct ast_sip_subscription *ast_sip_create_subscription(const struct ast_sip_subscription_handler *handler,
struct ast_sip_endpoint *endpoint, const char *resource);
/*!
* \brief Get the pjsip dialog that is associated with this subscription
* \since 13.9.0
*
* \retval NULL Could not get dialog
* \retval non-NULL The dialog
*/
pjsip_dialog *ast_sip_subscription_get_dialog(struct ast_sip_subscription *sub);
/*!
* \brief Get the endpoint that is associated with this subscription
@@ -378,6 +386,18 @@ struct ast_taskprocessor *ast_sip_subscription_get_serializer(struct ast_sip_sub
*/
int ast_sip_subscription_notify(struct ast_sip_subscription *sub, struct ast_sip_body_data *notify_data, int terminate);
/*!
* \brief Retrieve the local sip uri for this subscription
* \since 13.9.0
*
* This is the local sip URI of the subscribed resource.
*
* \param sub The subscription
* \retval NULL Could not get uri
* \retval non-NULL The local pjsip_sip_uri
*/
pjsip_sip_uri *ast_sip_subscription_get_sip_uri(struct ast_sip_subscription *sub);
/*!
* \brief Retrieve the local URI for this subscription
*