Update to my previous mail:

The crash is caused in SipUserAgent.cpp, in next statements:
   UtlBoolean SipUserAgent::sendUdp(....)
   {
     ...
     // Disallow an address begining with * as it gets broadcasted on NT
     if(! strchr(serverAddress, '*') && *serverAddress)
      {
=>      sentOk = mSipUdpServer->send(message, serverAddress, port);
    }
  ...
}
where mSipUdpServer is actually not initialized (0x00000000), so causing
execution of send() to crash since its this-pointer is null.
*Full stacktrace:*
SipProtocolServerBase::createClient(const char * 0x0012b3cc, int 5060, const
char * 0x00129be4) line 225 + 12 bytes
SipProtocolServerBase::send(SipMessage * 0x0012b5f0, const char *
0x0012b3cc, int 5060) line 89 + 28 bytes
SipUserAgent::sendUdp(SipMessage * 0x0012b5f0, const char * 0x0012b3cc, int
5060) line 1040 + 26 bytes
SipTransaction::doFirstSend(SipMessage & {...},
SipTransaction::messageRelationship MESSAGE_REQUEST, SipUserAgent & {...},
UtlString & {...}, int & 5060, OsSocket::IpProtocolSocketType & UDP,
SIPX_TRANSPORT_DATA * 0x00000000) line 1147 + 27 bytes
SipTransaction::handleOutgoing(SipMessage & {...}, SipUserAgent & {...},
SipTransactionList & {...}, SipTransaction::messageRelationship
MESSAGE_REQUEST, SIPX_TRANSPORT_DATA * 0x00000000) line 671 + 51 bytes
SipTransaction::recurseDnsSrvChildren(SipUserAgent & {...},
SipTransactionList & {...}, SIPX_TRANSPORT_DATA * 0x00000000) line 2768 + 35
bytes
SipTransaction::handleOutgoing(SipMessage & {...}, SipUserAgent & {...},
SipTransactionList & {...}, SipTransaction::messageRelationship
MESSAGE_REQUEST, SIPX_TRANSPORT_DATA * 0x00000000) line 602 + 18 bytes
SipUserAgent::send(SipMessage & {...}, OsMsgQShared * 0x00fc47f8, void *
0x00000000, SIPX_TRANSPORT_DATA * 0x00000000) line 970 + 39 bytes
SipRefreshMgr::sendRequest(SipMessage & {...}, const char * 0x00950578
`string') line 622 + 45 bytes
SipRefreshMgr::registerUrl(const char * 0x0012e4c8, const char * 0x0012e53c,
const char * 0x0012e5b0, const char * 0x0012e780, const UtlString & {...},
int -1) line 1277 + 17 bytes
SipRefreshMgr::newRegisterMsg(const Url & {...}, const UtlString & {...},
int -1, Url * 0x0012ed8c) line 315 + 181 bytes
SipLineMgr::enableLine(const Url & {...}) line 333 + 39 bytes
sipxLineRegister(const unsigned int 1, const unsigned char 1) line 5297

Above stacktrace caused by next statements (actually the last action:
sipxLineRegister):

  lv_Result = sipxInitialize( &m_sipXInstance,
                              SIPX_PORT_DISABLE,
                              5060,
                              SIPX_PORT_DISABLE,
                              49000  );

  if ( SIPX_RESULT_SUCCESS == lv_Result )
  {
    sipxEventListenerAdd( m_sipXInstance, GenericSipXCallbackHdlr, this );
    lv_Result = sipxLineAdd( m_sipXInstance,
                             "sip:[EMAIL PROTECTED]",
                            &m_sipXLine );

    sipxLineAddCredential( m_sipXLine, "1234", "", "" );

    sipxLineRegister( m_sipXLine , true);
  }
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to