[asterisk-commits] mmichelson: branch 10 r360672 - in /branches/10: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 27 13:23:15 CDT 2012
Author: mmichelson
Date: Tue Mar 27 13:23:11 2012
New Revision: 360672
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360672
Log:
Make a debug message regarding subscription changes more accurate.
I was getting confused during some testing why Asterisk was saying that
a subscription was being added when it was clearly being removed. This
fixes that confusion.
........
Merged revisions 360625 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/channels/chan_sip.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/channels/chan_sip.c?view=diff&rev=360672&r1=360671&r2=360672
==============================================================================
--- branches/10/channels/chan_sip.c (original)
+++ branches/10/channels/chan_sip.c Tue Mar 27 13:23:11 2012
@@ -25672,12 +25672,15 @@
}
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 */
More information about the asterisk-commits
mailing list