summaryrefslogtreecommitdiff
path: root/res/res_sip_mwi.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2013-07-30 15:17:56 +0000
committerMark Michelson <mmichelson@digium.com>2013-07-30 15:17:56 +0000
commit895c8e0d2c97cd04299f3f179e99d8a3873c06c6 (patch)
tree87aa12b92909a9579198ac486fe8dc902c9d2d5a /res/res_sip_mwi.c
parent7fded3378948b9076cc092145bb4823a50b8501c (diff)
Reorganize the ast_sip_endpoint structure into substructures.
(closes issue ASTERISK-22135) reported by Matt Jordan Review: https://reviewboard.asterisk.org/r/2707 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395748 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_sip_mwi.c')
-rw-r--r--res/res_sip_mwi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/res/res_sip_mwi.c b/res/res_sip_mwi.c
index cb636dbbb..6b44d52d0 100644
--- a/res/res_sip_mwi.c
+++ b/res/res_sip_mwi.c
@@ -281,12 +281,12 @@ static int send_unsolicited_mwi_notify_to_contact(void *obj, void *arg, int flag
return 0;
}
- if (!ast_strlen_zero(endpoint->mwi_from)) {
+ if (!ast_strlen_zero(endpoint->subscription.mwi.fromuser)) {
pjsip_fromto_hdr *from = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_FROM, NULL);
pjsip_name_addr *from_name_addr = (pjsip_name_addr *) from->uri;
pjsip_sip_uri *from_uri = pjsip_uri_get_uri(from_name_addr->uri);
- pj_strdup2(tdata->pool, &from_uri->user, endpoint->mwi_from);
+ pj_strdup2(tdata->pool, &from_uri->user, endpoint->subscription.mwi.fromuser);
}
switch (state) {
@@ -627,18 +627,18 @@ static int create_mwi_subscriptions_for_endpoint(void *obj, void *arg, int flags
char *mailboxes;
char *mailbox;
- if (ast_strlen_zero(endpoint->mailboxes)) {
+ if (ast_strlen_zero(endpoint->subscription.mwi.mailboxes)) {
return 0;
}
- if (endpoint->aggregate_mwi) {
+ if (endpoint->subscription.mwi.aggregate) {
aggregate_sub = mwi_subscription_alloc(endpoint, AST_SIP_NOTIFIER, 0, NULL);
if (!aggregate_sub) {
return 0;
}
}
- mailboxes = ast_strdupa(endpoint->mailboxes);
+ mailboxes = ast_strdupa(endpoint->subscription.mwi.mailboxes);
while ((mailbox = strsep(&mailboxes, ","))) {
struct mwi_subscription *sub = aggregate_sub ?:
mwi_subscription_alloc(endpoint, AST_SIP_SUBSCRIBER, 0, NULL);