Here is a patch file for this bug report. Done using TortoiseSVN. Is there 
perhaps another alternative which should be used?
 
Regards,
Daníel



> Date: Thu, 21 Jun 2007 14:48:05 +0400> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: [email protected]> Subject: Re: [sipxtapi-dev] 
> SipConnection.cpp: Variables initialization.> > Hello,> > > On 6/21/07, 
> Jhorsh Muhammed <[EMAIL PROTECTED]> wrote:> > I found that these arrays is 
> not initialized.> > int receiveRtpPorts[MAX_ADDRESS_CANDIDATES];> > int 
> receiveRtcpPorts[MAX_ADDRESS_CANDIDATES];> > int 
> receiveVideoRtpPorts[MAX_ADDRESS_CANDIDATES];> > int 
> receiveVideoRtcpPorts[MAX_ADDRESS_CANDIDATES];> > so in RELEASE configuration 
> it is not working properly, when ports value is> > checking for > 0.> > I 
> found abnormal video ports value in SDP content of INVITE message. After I> > 
> add initialization, everything starts to work well.> > For example Astrerisk 
> shows error massage and call will be terminated.> > Are you talking about 
> SipConnection::dial()? It's better to tell line number> or, even better, 
> provide patches in unified diff format. You could get such> patches by 
> invoking "svn diff" command from command line under sipXtapi> source tree.> > 
> Anyway, thanks for your effort. :)> > -- > Regards,> Alexander Chemeris.> > 
> SIPez LLC.> SIP VoIP, IM and Presence Consulting> http://www.SIPez.com> tel: 
> +1 (617) 273-4000> _______________________________________________> 
> sipxtapi-dev mailing list> [email protected]> List Archive: 
> http://list.sipfoundry.org/archive/sipxtapi-dev/
_________________________________________________________________
Play free games, earn tickets, get cool prizes! Join Live Search Club. 
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink
Index: sipXcallLib/src/cp/SipConnection.cpp
===================================================================
--- sipXcallLib/src/cp/SipConnection.cpp        (revision 9770)
+++ sipXcallLib/src/cp/SipConnection.cpp        (working copy)
@@ -780,6 +780,13 @@
     int receiveVideoRtpPorts[MAX_ADDRESS_CANDIDATES];
     int receiveVideoRtcpPorts[MAX_ADDRESS_CANDIDATES];
     RTP_TRANSPORT transportTypes[MAX_ADDRESS_CANDIDATES];
+    for (int i = 0; i < MAX_ADDRESS_CANDIDATES; i ++) 
+       {
+        receiveRtpPorts[i] = receiveRtcpPorts[i] = 
+            receiveVideoRtpPorts[i] = receiveVideoRtcpPorts[i] = 0;
+        transportTypes[i] = RTP_TRANSPORT_UNKNOWN;
+       }
+    
     int nRtpContacts ;
     int totalBandwidth = 0;
     SdpSrtpParameters srtpParams;
@@ -1473,6 +1480,13 @@
         int receiveVideoRtpPorts[MAX_ADDRESS_CANDIDATES];
         int receiveVideoRtcpPorts[MAX_ADDRESS_CANDIDATES];
         RTP_TRANSPORT transportTypes[MAX_ADDRESS_CANDIDATES];
+        for (int i = 0; i < MAX_ADDRESS_CANDIDATES; i ++) 
+        {
+            receiveRtpPorts[i] = receiveRtcpPorts[i] = 
+                receiveVideoRtpPorts[i] = receiveVideoRtcpPorts[i] = 0;
+            transportTypes[i] = RTP_TRANSPORT_UNKNOWN;
+               }
+        
         int numAddresses;
         int numMatchingCodecs = 0;
         int matchingBandwidth = 0;
@@ -3111,6 +3125,13 @@
     int receiveVideoRtpPorts[MAX_ADDRESS_CANDIDATES];
     int receiveVideoRtcpPorts[MAX_ADDRESS_CANDIDATES];
     RTP_TRANSPORT transportTypes[MAX_ADDRESS_CANDIDATES];
+    for (int i = 0; i < MAX_ADDRESS_CANDIDATES; i ++) 
+    {
+        receiveRtpPorts[i] = receiveRtcpPorts[i] = 
+            receiveVideoRtpPorts[i] = receiveVideoRtcpPorts[i] = 0;
+        transportTypes[i] = RTP_TRANSPORT_UNKNOWN;
+       }
+    
     int numAddresses = 0;
     int totalBandwidth = 0;
     int matchingBandwidth = 0;
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to