mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-05-10 12:00:03 +00:00
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:
parent
f889334bb7
commit
4e4552d65f
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue