[asterisk-commits] mmichelson: trunk r360673 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 27 13:44:58 CDT 2012
Author: mmichelson
Date: Tue Mar 27 13:44:53 2012
New Revision: 360673
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360673
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
........
Merged revisions 360672 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=360673&r1=360672&r2=360673
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Mar 27 13:44:53 2012
@@ -25886,12 +25886,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