[asterisk-commits] rizzo: branch rizzo/astobj2 r47570 -
/team/rizzo/astobj2/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Nov 13 11:32:41 MST 2006
Author: rizzo
Date: Mon Nov 13 12:32:40 2006
New Revision: 47570
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47570
Log:
handle the short case first in a if/then/else block
Modified:
team/rizzo/astobj2/channels/chan_sip.c
Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=47570&r1=47569&r2=47570
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Mon Nov 13 12:32:40 2006
@@ -13570,7 +13570,9 @@
/* Check if this is an INVITE that sets up a new dialog or
a re-invite in an existing dialog */
- if (!req_ignore(req)) {
+ if (req_ignore(req)) {
+ ast_verbose("Ignoring this INVITE request\n");
+ } else {
sip_cancel_destroy(p);
/* This also counts as a pending invite */
p->pendinginvite = seqno;
@@ -13600,9 +13602,7 @@
if (!ast_test_flag(&p->flags[0], SIP_NO_HISTORY)) /* This is a response, note what it was for */
append_history(p, "ReInv", "Re-invite received");
}
- } else if (debug)
- ast_verbose("Ignoring this INVITE request\n");
-
+ }
if (!p->lastinvite && !req_ignore(req) && !p->owner) {
/* This is a new invite */
More information about the asterisk-commits
mailing list