Fixed #932 and #905 in public. OpenBTS now responds negatively to SIP

re-invites, though the specific effect of this depends on the client
 sending the re-invite. In the case of FS, it causes the RTP stream to
 break. We also now complain when invites time out, sending an alert to the
 user about the proxy status.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3810 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2012-06-19 20:22:20 +00:00
parent 2fe7dd1ec4
commit af13ea7902
8 changed files with 97 additions and 49 deletions

View File

@@ -420,10 +420,10 @@ SIP::SIPState TransactionEntry::MODSendBYE()
return state;
}
SIP::SIPState TransactionEntry::MODSendUNAVAIL()
SIP::SIPState TransactionEntry::MODSendERROR(osip_message_t * cause, int code, const char * reason, bool cancel)
{
ScopedLock lock(mLock);
SIP::SIPState state = mSIP.MODSendUNAVAIL();
SIP::SIPState state = mSIP.MODSendERROR(cause, code, reason, cancel);
echoSIPState(state);
return state;
}
@@ -452,10 +452,10 @@ SIP::SIPState TransactionEntry::MODResendCANCEL()
return state;
}
SIP::SIPState TransactionEntry::MODResendUNAVAIL()
SIP::SIPState TransactionEntry::MODResendERROR(bool cancel)
{
ScopedLock lock(mLock);
SIP::SIPState state = mSIP.MODResendUNAVAIL();
SIP::SIPState state = mSIP.MODResendERROR(cancel);
echoSIPState(state);
return state;
}
@@ -476,10 +476,10 @@ SIP::SIPState TransactionEntry::MODWaitForCANCELOK()
return state;
}
SIP::SIPState TransactionEntry::MODWaitForUNAVAILACK()
SIP::SIPState TransactionEntry::MODWaitForERRORACK(bool cancel)
{
ScopedLock lock(mLock);
SIP::SIPState state = mSIP.MODWaitForUNAVAILACK();
SIP::SIPState state = mSIP.MODWaitForERRORACK(cancel);
echoSIPState(state);
return state;
}