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

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 7, 2011, 5:23:42 PM2/7/11
to sipxtapi...@googlegroups.com
Revision: 1422
Author: jaroslavl1
Date: Mon Feb 7 14:17:41 2011
Log: Applied patch from Saab:
- Added a method to get the state of a specified line (used by
sipxUnregisterAndWait)
http://code.google.com/p/sipxtapi/source/detail?r=1422

Modified:
/trunk/sipXtackLib/include/net/SipLineMgr.h
/trunk/sipXtackLib/src/net/SipLineMgr.cpp

=======================================
--- /trunk/sipXtackLib/include/net/SipLineMgr.h Fri Jan 8 11:32:25 2010
+++ /trunk/sipXtackLib/include/net/SipLineMgr.h Mon Feb 7 14:17:41 2011
@@ -90,6 +90,9 @@
/** Sets state on given line. */
UtlBoolean setStateForLine(const Url& lineUri, SipLine::LineStateEnum
state);

+ /** Gets state on given line. */
+ UtlBoolean getStateForLine(const Url& lineUri, SipLine::LineStateEnum&
state);
+
/** Adds new credentials to given line */
UtlBoolean addCredentialForLine(const Url& lineUri,
const SipLineCredential& credential);
=======================================
--- /trunk/sipXtackLib/src/net/SipLineMgr.cpp Sun Jan 24 03:43:15 2010
+++ /trunk/sipXtackLib/src/net/SipLineMgr.cpp Mon Feb 7 14:17:41 2011
@@ -362,6 +362,20 @@

return FALSE;
}
+
+UtlBoolean SipLineMgr::getStateForLine(const Url& lineUri,
SipLine::LineStateEnum& state)
+{
+ OsLock lock(m_mutex); // scoped lock
+
+ SipLine *pLine = m_listList.getLine(lineUri);
+ if (pLine)
+ {
+ state = pLine->getState();
+ return TRUE;
+ }
+
+ return FALSE;
+}

void SipLineMgr::dumpLines()
{

Reply all
Reply to author
Forward
0 new messages