attempting to fix #937 in public, basically forgot to check if sip_method exists.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3700 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl 2012-05-31 02:44:12 +00:00
parent f889334bb7
commit 4e4552d65f

View file

@ -736,8 +736,8 @@ SIPState SIPEngine::MODWaitForUNAVAILACK()
osip_message_t * ack = gSIPInterface.read(mCallID, gConfig.getNum("SIP.Timer.E"));
responded = true;
saveResponse(ack);
if (!strncmp(ack->sip_method,"ACK", 4)) {
LOG(WARNING) << "unexpected " << ack->sip_method << " response to UNAVAIL, from proxy " << mProxyIP << ":" << mProxyPort << ". Assuming other end has cleared";
if ((NULL == ack->sip_method) || !strncmp(ack->sip_method,"ACK", 4)) {
LOG(WARNING) << "unexpected response to UNAVAIL, from proxy " << mProxyIP << ":" << mProxyPort << ". Assuming other end has cleared";
}
osip_message_free(ack);
break;