diff options
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index f60540357..df36ce0e9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -25886,12 +25886,15 @@ static int handle_request_subscribe(struct sip_pvt *p, struct sip_request *req, } if (sipdebug) { + const char *action = p->expiry > 0 ? "Adding" : "Removing"; if (p->subscribed == MWI_NOTIFICATION && p->relatedpeer) { - ast_debug(2, "Adding subscription for mailbox notification - peer %s\n", p->relatedpeer->name); + ast_debug(2, "%s subscription for mailbox notification - peer %s\n", + action, p->relatedpeer->name); } else if (p->subscribed == CALL_COMPLETION) { - ast_debug(2, "Adding CC subscription for peer %s\n", p->username); + ast_debug(2, "%s CC subscription for peer %s\n", action, p->username); } else { - ast_debug(2, "Adding subscription for extension %s context %s for peer %s\n", p->exten, p->context, p->username); + ast_debug(2, "%s subscription for extension %s context %s for peer %s\n", + action, p->exten, p->context, p->username); } } if (p->autokillid > -1 && sip_cancel_destroy(p)) /* Remove subscription expiry for renewals */ |