[libpri-commits] rmudgett: branch 1.4 r2167 - /branches/1.4/q931.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Tue Dec 14 01:10:05 UTC 2010


Author: rmudgett
Date: Mon Dec 13 19:09:57 2010
New Revision: 2167

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2167
Log:
Return error if q931_notify() cannot send NOTIFY.

Modified:
    branches/1.4/q931.c

Modified: branches/1.4/q931.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q931.c?view=diff&rev=2167&r1=2166&r2=2167
==============================================================================
--- branches/1.4/q931.c (original)
+++ branches/1.4/q931.c Mon Dec 13 19:09:57 2010
@@ -4808,15 +4808,16 @@
 		break;
 	default:
 		if ((info > 0x2) || (info < 0x00)) {
-			return 0;
+			return -1;
 		}
 		break;
 	}
 
 	if (info >= 0) {
-		info = info & 0x7F;
+		info &= 0x7F;
 	} else {
-		info = -1;
+		/* Cannot send NOTIFY message if the mandatory ie is not going to be present. */
+		return -1;
 	}
 	return q931_notify_redirection(ctrl, c, info, NULL);
 }




More information about the libpri-commits mailing list