[Asterisk-cvs] libpri-matt pri_facility.c,1.15,1.16
mattf at lists.digium.com
mattf at lists.digium.com
Mon Jan 17 11:39:26 CST 2005
Update of /usr/cvsroot/libpri-matt
In directory mongoose.digium.com:/tmp/cvs-serv28821
Modified Files:
pri_facility.c
Log Message:
Give a unique invokeid to every invoke
Index: pri_facility.c
===================================================================
RCS file: /usr/cvsroot/libpri-matt/pri_facility.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- pri_facility.c 14 Jan 2005 16:15:29 -0000 1.15
+++ pri_facility.c 17 Jan 2005 17:42:44 -0000 1.16
@@ -15,6 +15,15 @@
#include <stdlib.h>
#include <string.h>
+static unsigned char invokecount = 0;
+
+static unsigned char get_invokeid(void)
+{
+ unsigned char res = invokecount;
+
+ invokecount++;
+ return res;
+}
static unsigned char redirectingreason_qsig2q931(unsigned char qsigreason)
{
@@ -53,7 +62,7 @@
buffer[i++] = ASN1_INTEGER; /* Invoke ID -- TODO: universal method for assigning these */
buffer[i++] = 0x01;
- buffer[i++] = 0x10; /* Id of 16 */
+ buffer[i++] = get_invokeid(); /* Id of 16 */
buffer[i++] = ASN1_INTEGER;
buffer[i++] = 0x01;
More information about the svn-commits
mailing list