[asterisk-commits] rizzo: trunk r44900 - /trunk/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Oct 11 16:26:45 MST 2006


Author: rizzo
Date: Wed Oct 11 18:26:44 2006
New Revision: 44900

URL: http://svn.digium.com/view/asterisk?rev=44900&view=rev
Log:
operator != also works between booleans...


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=44900&r1=44899&r2=44900&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Oct 11 18:26:44 2006
@@ -11687,8 +11687,7 @@
 	was_reachable = peer->lastms > 0 && peer->lastms <= peer->maxms;
 	is_reachable = pingtime <= peer->maxms;
 	statechanged = peer->lastms == 0 /* yes, unknown before */
-		|| ( !was_reachable && is_reachable)
-		|| ( was_reachable  && !is_reachable );
+		|| was_reachable != is_reachable;
 
 	peer->lastms = pingtime;
 	peer->call = NULL;



More information about the asterisk-commits mailing list