[libss7-commits] rmudgett: trunk r315 - /trunk/isup.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Thu Aug 30 17:07:11 CDT 2012


Author: rmudgett
Date: Thu Aug 30 17:07:08 2012
New Revision: 315

URL: http://svnview.digium.com/svn/libss7?view=rev&rev=315
Log:
Don't kill the call if isup_far() chooses to not send the message.

Modified:
    trunk/isup.c

Modified: trunk/isup.c
URL: http://svnview.digium.com/svn/libss7/trunk/isup.c?view=diff&rev=315&r1=314&r2=315
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Thu Aug 30 17:07:08 2012
@@ -4596,14 +4596,13 @@
 		c->call_ref_pc = c->next->call_ref_pc;
 		c->got_sent_msg |= ISUP_SENT_FAR;
 		res = isup_send_message(ss7, c, ISUP_FAR, far_params);
-	}
-
-	if (res > -1) {
-		c->got_sent_msg |= ISUP_SENT_FAR;
-	} else {
-		ss7_call_null(ss7, c, 0);
-		isup_free_call(ss7, c);
-		ss7_error(ss7, "Unable to send FAR to DPC: %d\n", c->dpc);
+		if (res > -1) {
+			c->got_sent_msg |= ISUP_SENT_FAR;
+		} else {
+			ss7_call_null(ss7, c, 0);
+			isup_free_call(ss7, c);
+			ss7_error(ss7, "Unable to send FAR to DPC: %d\n", c->dpc);
+		}
 	}
 
 	return res;




More information about the libss7-commits mailing list