[Asterisk-cvs] asterisk-addons/asterisk-ooh323c/ooh323c/src ooq931.c, 1.6, 1.7

vphirke at lists.digium.com vphirke at lists.digium.com
Mon Jun 27 11:28:24 CDT 2005


Update of /usr/cvsroot/asterisk-addons/asterisk-ooh323c/ooh323c/src
In directory mongoose.digium.com:/tmp/cvs-serv27599/ooh323c/src

Modified Files:
	ooq931.c 
Log Message:
updated stack source

Index: ooq931.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/asterisk-ooh323c/ooh323c/src/ooq931.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- ooq931.c	24 Jun 2005 21:01:49 -0000	1.6
+++ ooq931.c	27 Jun 2005 15:28:31 -0000	1.7
@@ -660,7 +660,13 @@
    /* Q931 protocol discriminator */
    msgbuf[i++] = pq931Msg->protocolDiscriminator;
    msgbuf[i++] = 2; /* length of call ref is two octets */
-   msgbuf[i++] = (pq931Msg->callReference >> 8); /* populate 1st octet */
+   msgbuf[i] = (pq931Msg->callReference >> 8); /* populate 1st octet */
+   if(!strcmp(call->callType, "incoming"))
+      msgbuf[i++] |= 0x80;   /* fromDestination*/
+   else
+      i++;   /* fromOriginator*/
+
+  
    msgbuf[i++] = pq931Msg->callReference; /* populate 2nd octet */
    msgbuf[i++] = pq931Msg->messageType; /* type of q931 message */
 
@@ -831,6 +837,8 @@
           call->callIdentifier.guid.data, 
           call->callIdentifier.guid.numocts);
    callProceeding->protocolIdentifier = gProtocolID;  
+
+   callProceeding->destinationInfo.m.terminalPresent = TRUE;
    callProceeding->destinationInfo.m.vendorPresent = 1;
    vendor = &callProceeding->destinationInfo.vendor;
    if(gH323ep.productID)
@@ -942,6 +950,8 @@
           call->callIdentifier.guid.data, 
           call->callIdentifier.guid.numocts);
    alerting->protocolIdentifier = gProtocolID;  
+
+   alerting->destinationInfo.m.terminalPresent = TRUE;
    alerting->destinationInfo.m.vendorPresent = 1;
    vendor = &alerting->destinationInfo.vendor;
    if(gH323ep.productID)
@@ -1255,6 +1265,8 @@
 
    connect->protocolIdentifier = gProtocolID;  
 
+   connect->destinationInfo.m.terminalPresent = TRUE;
+   
    connect->destinationInfo.m.vendorPresent = 1;
    vendor = &connect->destinationInfo.vendor;
       




More information about the svn-commits mailing list