[sipxtapi] r1433 committed - Applied patch from Saab:...

9 views
Skip to first unread message

codesite...@google.com

unread,
Feb 7, 2011, 6:08:21 PM2/7/11
to sipxtapi...@googlegroups.com
Revision: 1433
Author: jaroslavl1
Date: Mon Feb 7 15:00:17 2011
Log: Applied patch from Saab:
- processCancelResponse - need to handle OK for CANCEL response. For
sipXecs, if you cancel when in REMOTE_OFFERING, you don't get the 487
message.
http://code.google.com/p/sipxtapi/source/detail?r=1433

Modified:
/trunk/sipXcallLib/src/cp/state/BaseSipConnectionState.cpp

=======================================
--- /trunk/sipXcallLib/src/cp/state/BaseSipConnectionState.cpp Sun Jan 24
08:06:28 2010
+++ /trunk/sipXcallLib/src/cp/state/BaseSipConnectionState.cpp Mon Feb 7
15:00:17 2011
@@ -2224,6 +2224,20 @@
// 481 and other fatal responses were already handled
// if CANCEL succeeds, 487 Request Terminated will be sent on INVITE
transaction (with cseq method INVITE)
// and then we terminate INVITE transaction
+
+ // OBS: We do care - some servers (SipXecs) does not send 487 if we are
in remote offering
+ ISipConnectionState::StateEnum connectionState = getCurrentState();
+
+ int responseCode = sipMessage.getResponseStatusCode();
+ UtlString responseText;
+ sipMessage.getResponseStatusText(&responseText);
+
+ if (responseCode == SIP_OK_CODE)
+ {
+ // progress to disconnected state
+ SipResponseTransitionMemory memory(responseCode, responseText);
+ return getTransition(ISipConnectionState::CONNECTION_DISCONNECTED,
&memory);
+ }

return NULL;
}

Reply all
Reply to author
Forward
0 new messages