[libpri-commits] mattf: trunk r539 - /trunk/q921.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Thu Mar 6 17:43:51 CST 2008


Author: mattf
Date: Thu Mar  6 17:43:51 2008
New Revision: 539

URL: http://svn.digium.com/view/libpri?view=rev&rev=539
Log:
Make sure we are sending as command not as response

Modified:
    trunk/q921.c

Modified: trunk/q921.c
URL: http://svn.digium.com/view/libpri/trunk/q921.c?view=diff&rev=539&r1=538&r2=539
==============================================================================
--- trunk/q921.c (original)
+++ trunk/q921.c Thu Mar  6 17:43:51 2008
@@ -787,7 +787,7 @@
 	case Q921_TEI_IDENTITY_REQUEST:
 		if (tei != 127) {
 			pri_error(pri, "Received TEI identity request with invalid TEI %d\n", tei);
-			q921_send_tei(pri, Q921_TEI_IDENTITY_DENIED, ri, tei, 0);
+			q921_send_tei(pri, Q921_TEI_IDENTITY_DENIED, ri, tei, 1);
 		}
 		/* Go to master */
 		for (sub = pri; sub->master; sub = sub->master);
@@ -801,7 +801,7 @@
 			pri_error(pri, "Unable to allocate D-channel for new TEI %d\n", tei);
 			return NULL;
 		}
-		q921_send_tei(pri, Q921_TEI_IDENTITY_ASSIGNED, ri, tei, 0);
+		q921_send_tei(pri, Q921_TEI_IDENTITY_ASSIGNED, ri, tei, 1);
 		break;
 	case Q921_TEI_IDENTITY_ASSIGNED:
 		if (ri != pri->ri) {
@@ -838,7 +838,7 @@
 
 		/* If it's addressed to the group TEI or to our TEI specifically, we respond */
 		if ((tei == Q921_TEI_GROUP) || (tei == pri->subchannel->tei))
-			q921_send_tei(pri, Q921_TEI_IDENTITY_CHECK_RESPONSE, random() % 65535, pri->subchannel->tei, 0);
+			q921_send_tei(pri, Q921_TEI_IDENTITY_CHECK_RESPONSE, random() % 65535, pri->subchannel->tei, 1);
 
 		break;
 	case Q921_TEI_IDENTITY_REMOVE:




More information about the libpri-commits mailing list