< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

Re: [sipxtapi-dev] SIPXTapi crashes


Hello Paul,

What actually causes this negotiation to fail?.....I am trying to integrate
GIPS voice component with SIPXtapi and after that its happening. If i use
SIPXmedia instead of GIPS, it works fine.

I have made changed in Mediaadapter project (Sipxfactoryimpl and
cpphonemediainterface files.

Regards,

Manoj



Original Message:
-----------------
From: Paul Whitfield paulw@xxxxxxxxxxxxxxxxxx
Date: Tue, 18 Mar 2008 08:35:41 +0900
To: manoj@xxxxxxxxxxxxxxxxx, sipxtapi-dev@xxxxxxxxxxxxxxxxxxx
Subject: Re: [sipxtapi-dev] SIPXTapi crashes


Manoj Kumar Joshi wrote:
> Hello ,
> 
>  
>  I am getting exception in "*UtlSListIterator 
> iterator((UtlSList&)(*(sdpFields)));*" it seems "sdpFields" does not 
> have readable data....Can you suggest somthing?
> 
> void SdpBody::setRtpTcpRole(RtpTcpRoles role)

I found a similar issue it was a result of calling setRtpTcpRole
with a null SdpBody object when media negotiation had failed

Specifically I saw the problem in

SipConnection.cpp

The fix was to add a test for null pBody as shown below.


UtlBoolean SipConnection::prepareInviteSdpForSend(SipMessage* pMsg,
                                             int         connectionId,
                                             const void* 
pSecurityAttributes)
{
     UtlBoolean bRet = TRUE;
     SdpBody* pBody = (SdpBody*)pMsg->getSdpBody();

     if ( pBody  && ( RTP_TCP_ROLE_ACTPASS != mRtpTcpRole) )
     {
         pBody->setRtpTcpRole(mRtpTcpRole);
     }


The media negotiation had still failed!

Regards

Paul

--------------------------------------------------------------------
mail2web.com ? Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail