[Asterisk-cvs] libpri pri_facility.c,1.10,1.11

mattf at lists.digium.com mattf at lists.digium.com
Thu Apr 21 17:07:47 CDT 2005


Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv11565

Modified Files:
	pri_facility.c 
Log Message:
More little callername tweaks


Index: pri_facility.c
===================================================================
RCS file: /usr/cvsroot/libpri/pri_facility.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- pri_facility.c	21 Apr 2005 19:58:14 -0000	1.10
+++ pri_facility.c	21 Apr 2005 21:58:21 -0000	1.11
@@ -641,6 +641,7 @@
 	unsigned char namelen = 0;
 	struct rose_component *comp = NULL, *compstk[10];
 	int compsp = 0;
+	int mymessage = 0;
 	static unsigned char op_tag[] = { 
 		0x2a, /* informationFollowing 42 */
 		0x86,
@@ -722,7 +723,12 @@
 	i += res;
 	ASN1_FIXUP(compstk, compsp, buffer, i);
 
-	if (pri_call_apdu_queue(c, Q931_FACILITY, buffer, i, NULL, NULL))
+	if (cpe) 
+		mymessage = Q931_SETUP;
+	else
+		mymessage = Q931_FACILITY;
+
+	if (pri_call_apdu_queue(c, mymessage, buffer, i, NULL, NULL))
 		return -1;
 	
 	return 0;




More information about the svn-commits mailing list