forked from willamowius/gnugk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SoftPBX.h
67 lines (60 loc) · 2.44 KB
/
SoftPBX.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//////////////////////////////////////////////////////////////////
//
// SoftPBX.h
//
// Copyright (c) 2000-2017, Jan Willamowius
//
// This work is published under the GNU Public License version 2 (GPLv2)
// see file COPYING for details.
// We also explicitly grant the right to link this code
// with the OpenH323/H323Plus and OpenSSL library.
//
//////////////////////////////////////////////////////////////////
#ifndef SOFTPBX_H
#define SOFTPBX_H "@(#) $Id$"
// nothing to include :)
class PTime;
class PString;
class USocket;
class EndpointRec;
class CallRec;
template<class> class SmartPtr;
typedef SmartPtr<EndpointRec> endptr;
namespace SoftPBX
{
void PrintEndpoint(const PString & EpStr, USocket *client, bool verbose);
void PrintAllRegistrations(USocket *client, bool verbose=false);
void PrintAllCached(USocket *client, bool verbose=false);
void PrintRemoved(USocket *client, bool verbose=false);
void PrintCurrentCalls(USocket *client, bool verbose=false);
void PrintCurrentCallsPorts(USocket *client);
void PrintStatistics(USocket *client, bool verbose=false);
void ResetCallCounters(USocket *client);
void UnregisterAllEndpoints();
void UnregisterAlias(const PString & Alias);
void UnregisterIp(const PString & Ip);
void UnregisterEndpoint(const PString & idStr);
void DisconnectAll();
void DisconnectCall(unsigned CallNumber);
void DisconnectCallId(const PString & CallId);
void DisconnectIp(const PString & Ip);
void DisconnectAlias(const PString & Alias);
void DisconnectEndpoint(const PString & Id);
void DisconnectEndpoint(const endptr &);
void SendProceeding(const PString & CallId);
void TransferCall(const PString & SourceAlias, const PString & DestinationAlias);
void TransferCall(const PString & CallId, const PCaselessString & which, const PString & Destination, const PString & method);
void MakeCall(const PString & SourceAlias, const PString & DestinationAlias, const PString & TransferMethod = "");
void RerouteCall(const PString & CallId, const PCaselessString & whichLeg, const PString & destination);
void PrintPrefixCapacities(USocket *client, const PString & alias);
void PrintCapacityControlRules(USocket *client);
void PrintEndpointQoS(USocket *client);
void PrintNeighbors(USocket *client);
void PrintCallInfo(USocket *client, const PString & callid);
void MaintenanceMode(bool on, const PString & alternate = "");
PString Uptime();
PInt32 UptimeTicks();
extern int TimeToLive;
extern PTime StartUp;
}
#endif // SOFTPBX_H