Added reporting the number of SIP transactions to "status sip" command.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5746 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
734138c0ba
commit
6c99ac9558
|
@ -1360,6 +1360,13 @@ public:
|
|||
inline void insert(SIPTransaction* transaction)
|
||||
{ lock(); m_transList.insert(transaction); unlock(); }
|
||||
|
||||
/**
|
||||
* Get the number of active SIP transactions
|
||||
* @return Count of transactions in the list
|
||||
*/
|
||||
inline unsigned int transactionCount()
|
||||
{ Lock mylock(this); return m_transList.count(); }
|
||||
|
||||
protected:
|
||||
/**
|
||||
* The list that holds all the SIP transactions.
|
||||
|
|
|
@ -1127,7 +1127,8 @@ public:
|
|||
unsigned int transportTerminated(YateSIPTransport* trans);
|
||||
bool validLine(const String& line);
|
||||
bool commandComplete(Message& msg, const String& partLine, const String& partWord);
|
||||
void msgStatus(Message& msg);
|
||||
virtual void msgStatus(Message& msg);
|
||||
virtual void statusParams(String& str);
|
||||
// Build and dispatch a socket.ssl message
|
||||
bool socketSsl(Socket** sock, bool server, const String& context = String::empty());
|
||||
// Send a SIP method
|
||||
|
@ -8872,6 +8873,13 @@ void SIPDriver::msgStatus(Message& msg)
|
|||
}
|
||||
}
|
||||
|
||||
void SIPDriver::statusParams(String& str)
|
||||
{
|
||||
Driver::statusParams(str);
|
||||
if (m_endpoint->engine())
|
||||
str.append("transactions=",",") << m_endpoint->engine()->transactionCount();
|
||||
}
|
||||
|
||||
// Build and dispatch a socket.ssl message
|
||||
bool SIPDriver::socketSsl(Socket** sock, bool server, const String& context)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue