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

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