[Asterisk-cvs] asterisk-addons/asterisk-ooh323c/ooh323c/src ooGkClient.c, 1.4, 1.5

vphirke vphirke
Wed Aug 10 09:02:50 CDT 2005


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

Modified Files:
	ooGkClient.c 
Log Message:
Updated

Index: ooGkClient.c
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/asterisk-ooh323c/ooh323c/src/ooGkClient.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ooGkClient.c	21 Jul 2005 21:49:36 -0000	1.4
+++ ooGkClient.c	10 Aug 2005 13:06:16 -0000	1.5
@@ -1471,11 +1471,11 @@
    /* Populate call signalling addresses */
    pIpAddressLocal = (H225TransportAddress_ipAddress*)memAlloc(pctxt, 
                                      sizeof(H225TransportAddress_ipAddress));
-   if(ooUtilsIsStrEmpty(call->remoteIP))
+   if(!ooUtilsIsStrEmpty(call->remoteIP))
       pIpAddressRemote = (H225TransportAddress_ipAddress*)memAlloc(pctxt, 
                                       sizeof(H225TransportAddress_ipAddress));
 
-   if(!pIpAddressLocal || (strlen(call->remoteIP) && (!pIpAddressRemote)))
+   if(!pIpAddressLocal || (!ooUtilsIsStrEmpty(call->remoteIP) && (!pIpAddressRemote)))
    {
       OOTRACEERR1("Error:Failed to allocate memory for Call Signalling "
                   "Addresses of ARQ message\n");
@@ -1488,7 +1488,7 @@
    pIpAddressLocal->ip.numocts = 4;
    pIpAddressLocal->port = gH323ep.listenPort;
 
-   if(strlen(call->remoteIP))
+   if(!ooUtilsIsStrEmpty(call->remoteIP))
    {
       ooSocketConvertIpToNwAddr(call->remoteIP, pIpAddressRemote->ip.data);
       pIpAddressRemote->ip.numocts = 4;
@@ -1500,7 +1500,7 @@
       pAdmReq->m.destCallSignalAddressPresent = TRUE;
       pAdmReq->destCallSignalAddress.t = T_H225TransportAddress_ipAddress;
       pAdmReq->destCallSignalAddress.u.ipAddress = pIpAddressLocal;
-      if(strlen(call->remoteIP))
+      if(!ooUtilsIsStrEmpty(call->remoteIP))
       {
          pAdmReq->m.srcCallSignalAddressPresent = TRUE;
          pAdmReq->srcCallSignalAddress.t = T_H225TransportAddress_ipAddress;
@@ -1510,7 +1510,7 @@
       pAdmReq->m.srcCallSignalAddressPresent = TRUE;
       pAdmReq->srcCallSignalAddress.t = T_H225TransportAddress_ipAddress;
       pAdmReq->srcCallSignalAddress.u.ipAddress = pIpAddressLocal;
-      if(strlen(call->remoteIP))
+      if(!ooUitlsIsStrEmpty(call->remoteIP))
       {
          pAdmReq->m.destCallSignalAddressPresent = TRUE;
          pAdmReq->destCallSignalAddress.t = T_H225TransportAddress_ipAddress;




More information about the svn-commits mailing list