Added copyright notices to sources and scripts missing them.
Updated copyright notices for 2014. Fixed end of lines in many files. git-svn-id: http://yate.null.ro/svn/yate/trunk@5755 acf43c95-373e-0410-b603-e72c3f656dc1divo
parent
3ef32278a8
commit
37a72e4bc1
4
README
4
README
|
@ -2,9 +2,9 @@
|
|||
-----------------------------------
|
||||
|
||||
The YATE project aims to be a fully featured software PBX.
|
||||
|
||||
|
||||
It was created to alow developers and users to have more functionality and
|
||||
scalability. To reach this goal YATE is built from two kinds of components:
|
||||
scalability. To reach this goal YATE is built from two kinds of components:
|
||||
1. The main engine - telengine.
|
||||
2. Modules - routing modules
|
||||
- drivers
|
||||
|
|
18
autogen.sh
18
autogen.sh
|
@ -1,5 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
# autogen.sh
|
||||
# This file is part of the YATE Project http://YATE.null.ro
|
||||
#
|
||||
# Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
# Copyright (C) 2005-2014 Null Team
|
||||
#
|
||||
# This software is distributed under multiple licenses;
|
||||
# see the COPYING file in the main directory for licensing
|
||||
# information for this specific distribution.
|
||||
#
|
||||
# This use of this software may be subject to additional restrictions.
|
||||
# See the LEGAL file in the main directory for details.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
# Run this to generate a new configure script
|
||||
|
||||
if [ -z `which which 2>/dev/null` ]; then
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* A Qt-4 based universal telephony client
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -55,7 +55,7 @@ void EngineThread::cleanup()
|
|||
s_engineThread = 0;
|
||||
}
|
||||
|
||||
static int mainLoop()
|
||||
static int mainLoop()
|
||||
{
|
||||
// create engine from this thread
|
||||
Engine::self();
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* A Qt-4 based universal telephony client
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -228,7 +228,7 @@ public:
|
|||
|
||||
int getType() {
|
||||
if (m_widget) {
|
||||
String cls = m_widget->metaObject()->className();
|
||||
String cls = m_widget->metaObject()->className();
|
||||
for (int i = 0; i < Unknown; i++)
|
||||
if (s_types[i] == cls)
|
||||
return i;
|
||||
|
@ -309,7 +309,7 @@ public:
|
|||
inline void addColumn(int index, int width = -1, const char* name = 0) {
|
||||
m_table->insertColumn(index);
|
||||
if (width >= 0)
|
||||
m_table->setColumnWidth(index,width);
|
||||
m_table->setColumnWidth(index,width);
|
||||
setHeaderText(index,name);
|
||||
}
|
||||
inline void setImage(int row, int col, const String& image) {
|
||||
|
@ -344,9 +344,9 @@ public:
|
|||
void updateRow(const String& item, const NamedList* data, bool atStart);
|
||||
// Update a row from a list of parameters
|
||||
void updateRow(int row, const NamedList& data);
|
||||
// Find a row by the first's column value. Return -1 if not found
|
||||
// Find a row by the first's column value. Return -1 if not found
|
||||
int getRow(const String& item);
|
||||
// Find a column by its label. Return -1 if not found
|
||||
// Find a column by its label. Return -1 if not found
|
||||
int getColumn(const String& name, bool caseInsentive = true);
|
||||
protected:
|
||||
void init(bool tmp);
|
||||
|
@ -394,7 +394,7 @@ static String s_propWindowFlags = "_yate_windowflags"; // Window flags
|
|||
static const String s_propContextMenu = "_yate_context_menu"; // Context menu name
|
||||
static String s_propHideInactive = "dynamicHideOnInactive"; // Hide inactive window
|
||||
static const String s_yatePropPrefix = "_yate_"; // Yate dynamic properties prefix
|
||||
static NamedList s_qtStyles(""); // Qt styles classname -> internal name
|
||||
static NamedList s_qtStyles(""); // Qt styles classname -> internal name
|
||||
//
|
||||
static Qt4ClientFactory s_qt4Factory;
|
||||
static Configuration s_cfg;
|
||||
|
@ -889,7 +889,7 @@ void TableWidget::updateRow(int row, const NamedList& data)
|
|||
}
|
||||
}
|
||||
|
||||
// Find a row by the first's column value. Return -1 if not found
|
||||
// Find a row by the first's column value. Return -1 if not found
|
||||
int TableWidget::getRow(const String& item)
|
||||
{
|
||||
int n = rowCount();
|
||||
|
@ -901,7 +901,7 @@ int TableWidget::getRow(const String& item)
|
|||
return -1;
|
||||
}
|
||||
|
||||
// Find a column by its label. Return -1 if not found
|
||||
// Find a column by its label. Return -1 if not found
|
||||
int TableWidget::getColumn(const String& name, bool caseInsensitive)
|
||||
{
|
||||
int n = columnCount();
|
||||
|
@ -1545,7 +1545,7 @@ bool QtWindow::getOptions(const String& name, NamedList* items)
|
|||
}
|
||||
|
||||
// Append or insert text lines to a widget
|
||||
bool QtWindow::addLines(const String& name, const NamedList* lines, unsigned int max,
|
||||
bool QtWindow::addLines(const String& name, const NamedList* lines, unsigned int max,
|
||||
bool atStart)
|
||||
{
|
||||
DDebug(ClientDriver::self(),DebugAll,"QtWindow(%s) addLines('%s',%p,%u,%s) [%p]",
|
||||
|
@ -1613,7 +1613,7 @@ bool QtWindow::addLines(const String& name, const NamedList* lines, unsigned int
|
|||
if (w.combo()->lineEdit())
|
||||
w.combo()->lineEdit()->setText(w.combo()->itemText(0));
|
||||
}
|
||||
else {
|
||||
else {
|
||||
for (unsigned int i = 0; i < count; i++) {
|
||||
NamedString* ns = lines->getParam(i);
|
||||
if (ns)
|
||||
|
@ -2057,7 +2057,7 @@ bool QtWindow::getSelect(const String& name, String& item)
|
|||
{
|
||||
TableWidget t(w);
|
||||
int row = t.crtRow();
|
||||
return row >= 0 ? t.getCell(row,0,item) : false;
|
||||
return row >= 0 ? t.getCell(row,0,item) : false;
|
||||
}
|
||||
case QtWidget::ListBox:
|
||||
{
|
||||
|
@ -2255,7 +2255,7 @@ void QtWindow::moveEvent(QMoveEvent* event)
|
|||
m_id.c_str(),m_x,m_y,this);
|
||||
}
|
||||
|
||||
void QtWindow::resizeEvent(QResizeEvent* event)
|
||||
void QtWindow::resizeEvent(QResizeEvent* event)
|
||||
{
|
||||
QWidget::resizeEvent(event);
|
||||
// Don't update size if not shown normal
|
||||
|
@ -3586,7 +3586,7 @@ bool QtClient::chooseFile(Window* parent, NamedList& params)
|
|||
}
|
||||
else
|
||||
dlg->setFileMode(QFileDialog::DirectoryOnly);
|
||||
|
||||
|
||||
dlg->selectFile(QtClient::setUtf8(params.getValue(YSTRING("selectedfile"))));
|
||||
|
||||
dlg->setVisible(true);
|
||||
|
@ -4282,7 +4282,7 @@ void QtClient::applyWindowFlags(QWidget* w, const String& value)
|
|||
w->setWindowFlags((Qt::WindowFlags)flags);
|
||||
}
|
||||
|
||||
// Build a QT Alignment mask from a comma separated list of flags
|
||||
// Build a QT Alignment mask from a comma separated list of flags
|
||||
int QtClient::str2align(const String& flags, int initVal)
|
||||
{
|
||||
ObjList* list = flags.split(',',false);
|
||||
|
@ -4623,7 +4623,7 @@ QtUrlBuilder::~QtUrlBuilder()
|
|||
{
|
||||
TelEngine::destruct(m_queryParams);
|
||||
}
|
||||
|
||||
|
||||
// Build URL
|
||||
QUrl QtUrlBuilder::build(const NamedList& params) const
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* A Qt-4 based universal telephony client
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -35,7 +35,7 @@
|
|||
#endif
|
||||
|
||||
#endif /* _WINDOWS */
|
||||
|
||||
|
||||
#ifndef YQT4_API
|
||||
#define YQT4_API
|
||||
#endif
|
||||
|
@ -191,7 +191,7 @@ public:
|
|||
* Destructor
|
||||
*/
|
||||
~QtUrlBuilder();
|
||||
|
||||
|
||||
/**
|
||||
* Build URL
|
||||
* @param params URL params
|
||||
|
@ -466,7 +466,7 @@ public:
|
|||
/**
|
||||
* Build a menu object from a list of parameters.
|
||||
* Each menu item is indicated by a parameter starting with 'item:".
|
||||
* item:menu_name=Menu Text will create a menu item named 'menu_name' with
|
||||
* item:menu_name=Menu Text will create a menu item named 'menu_name' with
|
||||
* 'Menu Text' as display name.
|
||||
* If the item parameter is a NamedPointer a submenu will be created.
|
||||
* Menu actions properties can be set from parameters with format:
|
||||
|
@ -641,9 +641,9 @@ public:
|
|||
static void applyWindowFlags(QWidget* w, const String& value);
|
||||
|
||||
/**
|
||||
* Build a QT Alignment mask from a comma separated list of flags
|
||||
* Build a QT Alignment mask from a comma separated list of flags
|
||||
* @param flags The flags list
|
||||
* @param initVal Initial value for the returned mask
|
||||
* @param initVal Initial value for the returned mask
|
||||
* @return QT Alignment mask
|
||||
*/
|
||||
static int str2align(const String& flags, int initVal = 0);
|
||||
|
@ -824,7 +824,7 @@ public:
|
|||
* @param atStart True to insert, false to append
|
||||
* @return True on success
|
||||
*/
|
||||
virtual bool addLines(const String& name, const NamedList* lines, unsigned int max,
|
||||
virtual bool addLines(const String& name, const NamedList* lines, unsigned int max,
|
||||
bool atStart = false);
|
||||
|
||||
virtual bool addTableRow(const String& name, const String& item, const NamedList* data = 0, bool atStart = false);
|
||||
|
@ -1002,7 +1002,7 @@ public:
|
|||
* @param parent The widget holding the loaded widget's contents
|
||||
* @param uiName The loaded widget's name (used for debug)
|
||||
* @param path Optional fileName path. Set to 0 to use the default one
|
||||
* @return QWidget pointer or 0 on failure
|
||||
* @return QWidget pointer or 0 on failure
|
||||
*/
|
||||
static QWidget* loadUI(const char* fileName, QWidget* parent,
|
||||
const char* uiName, const char* path = 0);
|
||||
|
@ -1012,7 +1012,7 @@ public:
|
|||
* @param fileName Optional UI filename to clear. Clear all if 0
|
||||
*/
|
||||
static void clearUICache(const char* fileName = 0);
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve the parent window
|
||||
* @return QtWindow pointer or 0
|
||||
|
@ -1489,7 +1489,7 @@ public:
|
|||
*/
|
||||
static inline void setListItemProp(QObject* obj, const QString& item)
|
||||
{ obj->setProperty("_yate_widgetlistitem",QVariant(item)); }
|
||||
|
||||
|
||||
/**
|
||||
* Retrieve the list item property from an item's child object
|
||||
* @param obj The object
|
||||
|
@ -1999,7 +1999,7 @@ public:
|
|||
virtual void reset();
|
||||
|
||||
protected:
|
||||
int m_acceptOnEmpty; // Accept drop on widget surface not occupied by any item
|
||||
int m_acceptOnEmpty; // Accept drop on widget surface not occupied by any item
|
||||
ObjList m_acceptItemTypes; // Item type to handle drop
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
# run-qt4
|
||||
# This file is part of the YATE Project http://YATE.null.ro
|
||||
#
|
||||
# Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
# Copyright (C) 2005-2014 Null Team
|
||||
#
|
||||
# This software is distributed under multiple licenses;
|
||||
# see the COPYING file in the main directory for licensing
|
||||
# information for this specific distribution.
|
||||
#
|
||||
# This use of this software may be subject to additional restrictions.
|
||||
# See the LEGAL file in the main directory for details.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
# Script to run the Qt4 client from the build directory
|
||||
|
||||
if [ -x yate-qt4 -a -x ../run ]; then
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
;[tcap map]
|
||||
; This section configures a TCAP User MAP/CAMEL protocol translator
|
||||
|
||||
; type: string: Type of TCAP User
|
||||
; type: string: Type of TCAP User
|
||||
; Allowed values are MAP or CAMEL
|
||||
;type=MAP
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
; s.uu -> 1.12
|
||||
; s.uuu -> 1.123
|
||||
; s.uuuu -> 1.1234
|
||||
; s.uuuuu -> 1.12346
|
||||
; s.uuuuu -> 1.12346
|
||||
; s.uuuuuu -> 1.123456
|
||||
; Other formats may me used but they must correspond with C strftime method formats
|
||||
; Important! If duplicate formats are ignored!
|
||||
|
|
|
@ -253,14 +253,14 @@ gkclient = false
|
|||
[gk]
|
||||
; If server is true the gatekeeper of yate will start. You must understand that
|
||||
; the H323EndPoint and H323GateKeeper share the calls. So you can make a call
|
||||
; to a registered endpoint of this gatekeeper even if in the [ep] section
|
||||
; to a registered endpoint of this gatekeeper even if in the [ep] section
|
||||
; you haven't register the local H323EndPoint to the local H323Gatekeeper. In
|
||||
; fact is not recomanded to register the local EndPoint to the local GateKeeper.
|
||||
; The local H323EndPoint is used as proxy for calls to local non h323
|
||||
; destinations. If you wanna call let's say tone/dial from a registered
|
||||
; endpoint to the local gatekeeper, you must make a route in regexroute (or
|
||||
; The local H323EndPoint is used as proxy for calls to local non h323
|
||||
; destinations. If you wanna call let's say tone/dial from a registered
|
||||
; endpoint to the local gatekeeper, you must make a route in regexroute (or
|
||||
; whatever you use) and then just dial the number.
|
||||
; If you wanna call a registered endpoint you must use now as a module register
|
||||
; If you wanna call a registered endpoint you must use now as a module register
|
||||
; since is the only module who can record prefixes right now.
|
||||
|
||||
; server: bool: Enable running a gatekeeper on the main endpoint
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
; List of pipelines that will be used as sources of music (on hold).
|
||||
; Each pipeline should write to stdout in 16bit signed linear
|
||||
; at default rate 8000/s or as specificed in the "rate" parameter.
|
||||
; From outside (e.g. routing modules) mohs are addressed
|
||||
; From outside (e.g. routing modules) mohs are addressed
|
||||
; as moh/default, moh/noise etc.
|
||||
|
||||
; use mpg123 to play a bunch of mp3 files (shuffled)
|
||||
|
|
|
@ -29,12 +29,12 @@
|
|||
;[yate]
|
||||
; this section is an example on how to configure a database account to be monitored
|
||||
; name of the section is the database account
|
||||
|
||||
|
||||
; type=
|
||||
; specify that this section is for database monitoring
|
||||
;type=database
|
||||
|
||||
;interval in seconds at which statistic data should be sent. Defaults to 3600 (1 hour)
|
||||
;interval in seconds at which statistic data should be sent. Defaults to 3600 (1 hour)
|
||||
;notiftime=3600
|
||||
|
||||
; alarm threshold for maximum number of queries. Defaults to 1000
|
||||
|
|
|
@ -114,7 +114,7 @@ tcap=
|
|||
;check_addr=false
|
||||
|
||||
; sccp.CalledPartyAddress.route: string: Routing Indicator for SCCP Called Party Address
|
||||
; Values allowed :
|
||||
; Values allowed :
|
||||
; gt - for Global Title Translation
|
||||
; ssn - routing by SubSystem Number (SSN)
|
||||
;sccp.CalledPartyAddress.route=
|
||||
|
@ -136,11 +136,11 @@ tcap=
|
|||
; {"maritimemobile", LNPClient::NPMaritimeMobile},
|
||||
; {"landmobile", LNPClient::NPLandMobile},
|
||||
; {"private", LNPClient::NPPrivate},
|
||||
; NOTE! According to GR-533-Core, this mustn't be set
|
||||
; NOTE! According to GR-533-Core, this mustn't be set
|
||||
;sccp.CalledPartyAddress.gt.np=
|
||||
|
||||
; sccp.CalledPartyAddress.gt.enconding: string: Encoding type for Called Party Address GT
|
||||
; NOTE! According to GR-533-Core, this mustn't be set
|
||||
; NOTE! According to GR-533-Core, this mustn't be set
|
||||
; Allowed values: bcd
|
||||
;sccp.CalledPartyAddress.gt.encoding : integer GT encoding scheme
|
||||
|
||||
|
@ -150,7 +150,7 @@ tcap=
|
|||
;sccp.CalledPartyAddress.gt.tt=11
|
||||
|
||||
; sccp.CallingPartyAddress.route: string: Routing Indicator for SCCP Calling Party Address
|
||||
; Values allowed :
|
||||
; Values allowed :
|
||||
; ssn - routing by SubSystem Number (SSN)
|
||||
;sccp.CallingPartyAddress.route=
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
; trunk (timestamps use, send interval, max packet length) are ignored if there
|
||||
; is another call using trunking with the same remote ip/port.
|
||||
; TAKE CARE WHEN SETTING TRUNKING PARAMETERS IN MORE THEN 1 PLACE FOR THE SAME
|
||||
; REMOTE IP/PORT !!!
|
||||
; REMOTE IP/PORT !!!
|
||||
; When routing a call to iax module a specific listener can be specfied:
|
||||
; 1: Its name can be set in 'oconnection_id' parameter.
|
||||
; The name of the listener created from 'general' section is 'iaxengine'
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
; Minimum allowed value is 10000
|
||||
; Defaults to 20000 if missing or to the minimum value if invalid
|
||||
;stanza_timeout=20000
|
||||
|
||||
|
||||
; ping_interval: integer: The interval (in milliseconds) to ping the remote party of a
|
||||
; jingle session
|
||||
; If enabled and the ping element fails the session will be terminated
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
; Example of an ISDN trunk
|
||||
;[trunk1]
|
||||
|
||||
; type: keyword: Specify the trunk type
|
||||
; type: keyword: Specify the trunk type
|
||||
; Allowed values:
|
||||
; isdn-bri-net: ISDN network side of a data link over basic rate HDLC interface(s)
|
||||
; isdn-bri-cpe: ISDN CPE (user) side of a data link over basic rate HDLC interface(s)
|
||||
|
@ -194,7 +194,7 @@
|
|||
; Example of an ISDN passive recorder
|
||||
;[recorder1]
|
||||
|
||||
; type: keyword: Specify the trunk type
|
||||
; type: keyword: Specify the trunk type
|
||||
; Allowed values:
|
||||
; isdn-pri-mon: ISDN monitor of one or more primary HDLC interface(s)
|
||||
;type=isdn-pri-mon
|
||||
|
@ -252,7 +252,7 @@
|
|||
|
||||
; Example of a SS7 ISUP trunk
|
||||
;[isup1]
|
||||
; type: keyword: Specify the trunk type
|
||||
; type: keyword: Specify the trunk type
|
||||
; Allowed values:
|
||||
; ss7-isup: SS7 ISDN User Part
|
||||
;type=ss7-isup
|
||||
|
@ -410,7 +410,7 @@
|
|||
;ringback=no
|
||||
|
||||
; location: string: Exchange location to be set when sending Q.850 causes
|
||||
; Available values are:
|
||||
; Available values are:
|
||||
; U User
|
||||
; LPN Private network serving the local user
|
||||
; LN Public network serving the local user
|
||||
|
@ -513,7 +513,7 @@
|
|||
|
||||
; Example of a SS7 MTP3 network (linkset)
|
||||
;[linkset1]
|
||||
; type: keyword: Specify the linkset type
|
||||
; type: keyword: Specify the linkset type
|
||||
; Allowed values:
|
||||
; ss7-mtp3: SS7 Message Transfer Part - Layer 3
|
||||
;type=ss7-mtp3
|
||||
|
@ -624,7 +624,7 @@
|
|||
|
||||
; Example of a SS7 MTP2 link
|
||||
;[link1]
|
||||
; type: keyword: Specify the link type
|
||||
; type: keyword: Specify the link type
|
||||
; Allowed values:
|
||||
; ss7-mtp2: SS7 Message Transfer Part - Layer 2
|
||||
;type=ss7-mtp2
|
||||
|
@ -812,7 +812,7 @@
|
|||
;[sccp-mgm]
|
||||
|
||||
; type: keyword: identifies the component as a SS7 SCCP Management
|
||||
; Values : ss7-sccp-itu-mgm
|
||||
; Values : ss7-sccp-itu-mgm
|
||||
; Must correspond with the pointcode type of the sccp
|
||||
;type=
|
||||
|
||||
|
@ -843,7 +843,7 @@
|
|||
; pc : integer: Remote sccp pointcode
|
||||
; ssn1 - ssnn: integer; List of local subsystems witch are of interest for the
|
||||
; remote sccp
|
||||
; Note! Ssn list may be empty if the remote sccp is concerned only if local
|
||||
; Note! Ssn list may be empty if the remote sccp is concerned only if local
|
||||
; sccp is available or not
|
||||
;concerned=2057:1,2,3,4
|
||||
|
||||
|
@ -852,8 +852,8 @@
|
|||
;local-subsystems=1,2,3,4,5,..
|
||||
|
||||
; auto-monitor: boolean: True to auto monitor remote sccp's.
|
||||
; This flag enables remote sccp auto monitoring. When a message failed to be
|
||||
; send to a remote sccp, the sccp management will automaticaly append the
|
||||
; This flag enables remote sccp auto monitoring. When a message failed to be
|
||||
; send to a remote sccp, the sccp management will automaticaly append the
|
||||
; destination to the monitored remote sccp destinations
|
||||
; to prevent sccp routing failure.
|
||||
; NOTE! Do not use this option if your GTT (Global Title Translator)
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
|
||||
; floodprotection: bool: Activate the drop mechanism for INVITE/REGISTER/SUBSCRIBE/OPTIONS messages when
|
||||
; the number of SIP events retrieved in a row exceeds the number set for floodevents setting.
|
||||
; Other messages, as well as reINVITEs, will be allowed.
|
||||
; Other messages, as well as reINVITEs, will be allowed.
|
||||
; NOTE! This mechanism is activated by default, to disable it configure this parameter to false.
|
||||
;floodprotection=on
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ engine_info=
|
|||
|
||||
; list traps to disable. Must be separated by ','.
|
||||
; An entire substree of traps can be disabled by ending the name of the trap with ".*"
|
||||
; (e.g. disable the whole database status traps by adding database.*)
|
||||
; (e.g. disable the whole database status traps by adding database.*)
|
||||
disable_traps=
|
||||
|
||||
; IP address to which the traps are sent. Defaults to localhost.
|
||||
|
@ -79,7 +79,7 @@ community=
|
|||
|
||||
;[userV3]
|
||||
; Configure a section for a SNMPv3 user. The name of the user is the name of the section.
|
||||
; To allow SNMPv3 interrogation, at least one SNMPv3 user must be configured
|
||||
; To allow SNMPv3 interrogation, at least one SNMPv3 user must be configured
|
||||
|
||||
; authentication pass phrase. If it is not set, authentication will not be required
|
||||
;auth_password=
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -36,7 +36,7 @@ Array::Array(int columns, int rows)
|
|||
column = column->append(a,false);
|
||||
// and add some empty holders for each item
|
||||
for (int k=1; k<rows; k++)
|
||||
a = a->append(0,false);
|
||||
a = a->append(0,false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Base64 data encoding and decoding
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -21,7 +21,7 @@
|
|||
|
||||
using namespace TelEngine;
|
||||
|
||||
const TokenDict Cipher::s_directions[] =
|
||||
const TokenDict Cipher::s_directions[] =
|
||||
{
|
||||
{ "bidir", Cipher::Bidir },
|
||||
{ "encrypt", Cipher::Encrypt },
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -1012,7 +1012,7 @@ void Client::cleanup()
|
|||
Engine::dispatch(m);
|
||||
TelEngine::destruct(m_defaultLogic);
|
||||
exitClient();
|
||||
|
||||
|
||||
for (ObjList* o = m_relays.skipNull(); o; o = o->skipNext())
|
||||
Engine::uninstall(static_cast<MessageRelay*>(o->get()));
|
||||
m_relays.clear();
|
||||
|
@ -6233,7 +6233,7 @@ ClientFileItem* ClientDir::findChild(const String& path, const char* sep)
|
|||
// NamedInt
|
||||
//
|
||||
// Add an item to a list. Replace existing item with the same name
|
||||
void NamedInt::addToListUniqueName(ObjList& list, NamedInt* obj)
|
||||
void NamedInt::addToListUniqueName(ObjList& list, NamedInt* obj)
|
||||
{
|
||||
if (!obj)
|
||||
return;
|
||||
|
@ -6250,7 +6250,7 @@ void NamedInt::addToListUniqueName(ObjList& list, NamedInt* obj)
|
|||
}
|
||||
|
||||
// Clear all items with a given value
|
||||
void NamedInt::clearValue(ObjList& list, int val)
|
||||
void NamedInt::clearValue(ObjList& list, int val)
|
||||
{
|
||||
for (ObjList* o = list.skipNull(); o;) {
|
||||
NamedInt* ni = static_cast<NamedInt*>(o->get());
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Default client logic
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -519,7 +519,7 @@ public:
|
|||
unlock();
|
||||
return cancelJob(job,false);
|
||||
}
|
||||
// Set contact/instance online
|
||||
// Set contact/instance online
|
||||
virtual bool setOnline(bool online);
|
||||
// Cancel all running jobs, clear data
|
||||
virtual void cancel();
|
||||
|
@ -4020,7 +4020,7 @@ static bool addTrayIcon(const String& type)
|
|||
prio = Client::TrayIconNotification;
|
||||
iconParams->addParam("icon",Client::s_skinPath + "tray_notification.png");
|
||||
triggerAction = s_actionShowNotification;
|
||||
}
|
||||
}
|
||||
else {
|
||||
prio = Client::TrayIconInfo;
|
||||
iconParams->addParam("icon",Client::s_skinPath + "tray_info.png");
|
||||
|
@ -5190,7 +5190,7 @@ void AccountStatus::init()
|
|||
setCurrent(lookup(ClientResource::Online,ClientResource::s_statusName));
|
||||
}
|
||||
|
||||
// Update
|
||||
// Update
|
||||
void AccountStatus::updateUi()
|
||||
{
|
||||
if (!(s_current && Client::self()))
|
||||
|
@ -5501,7 +5501,7 @@ FtItem::FtItem(FtManager* owner, const String& itemId, const String& acc,
|
|||
m_contactName << "/" << inst;
|
||||
}
|
||||
|
||||
// Set contact/instance online
|
||||
// Set contact/instance online
|
||||
bool FtItem::setOnline(bool online)
|
||||
{
|
||||
if (m_online == online)
|
||||
|
@ -5592,7 +5592,7 @@ void DownloadBatch::addItem(ClientFileItem& item, const String& path,
|
|||
else
|
||||
cancel();
|
||||
}
|
||||
|
||||
|
||||
// Timer tick handler
|
||||
bool DownloadBatch::timerTick(const Time& time)
|
||||
{
|
||||
|
@ -5765,7 +5765,7 @@ bool DownloadBatch::handleFileInfoRsp(const String& oper, NamedList& msg)
|
|||
return true;
|
||||
}
|
||||
|
||||
// Set contact/instance online
|
||||
// Set contact/instance online
|
||||
bool DownloadBatch::setOnline(bool online)
|
||||
{
|
||||
Lock lck(this);
|
||||
|
@ -5902,7 +5902,7 @@ void DownloadBatch::addItemName(ClientFileItem& item, const String& path,
|
|||
else
|
||||
addFileUnsafe(p,ip,file->params());
|
||||
}
|
||||
|
||||
|
||||
// Add a shared file
|
||||
void DownloadBatch::addFileUnsafe(const String& localPath, const String& downloadPath,
|
||||
const NamedList& params)
|
||||
|
@ -6429,7 +6429,7 @@ FTManagerTimer::FTManagerTimer(FtManager* owner)
|
|||
m_owner(owner)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
FTManagerTimer::~FTManagerTimer()
|
||||
{
|
||||
notify();
|
||||
|
@ -7050,9 +7050,9 @@ bool DefaultLogic::action(Window* wnd, const String& name, NamedList* params)
|
|||
bool showMsgs = (name == YSTRING("messages_show") || name == s_actionShowNotification ||
|
||||
name == s_actionShowInfo);
|
||||
if (showMsgs || name == YSTRING("messages_close")) {
|
||||
bool notif = (name == s_actionShowNotification);
|
||||
bool notif = (name == s_actionShowNotification);
|
||||
if (notif || name == s_actionShowInfo) {
|
||||
removeTrayIcon(notif ? YSTRING("notification") : YSTRING("info"));
|
||||
removeTrayIcon(notif ? YSTRING("notification") : YSTRING("info"));
|
||||
if (wnd && Client::valid())
|
||||
Client::self()->setVisible(wnd->id(),true,true);
|
||||
}
|
||||
|
@ -7729,7 +7729,7 @@ bool DefaultLogic::validateCall(NamedList& params, Window* wnd)
|
|||
bool DefaultLogic::callStart(NamedList& params, Window* wnd, const String& cmd)
|
||||
{
|
||||
if (!(Client::self() && fillCallStart(params,wnd)))
|
||||
return false;
|
||||
return false;
|
||||
if (!validateCall(params,wnd))
|
||||
return false;
|
||||
String target;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -524,7 +524,7 @@ bool DataConsumer::synchronize(DataSource* source)
|
|||
bool DataSource::valid() const
|
||||
{
|
||||
Lock mylock(const_cast<DataSource*>(this));
|
||||
if (!m_translator)
|
||||
if (!m_translator)
|
||||
return true;
|
||||
// this is a translator's source - check if we have at least one valid consumer
|
||||
for (ObjList* l = m_consumers.skipNull(); l; l=l->skipNext()) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* Idea and initial implementation (as HashTable) by Maciek Kaminski
|
||||
*
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2013 Null Team
|
||||
* Copyright (C) 2013-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/**
|
||||
* Mime.cpp
|
||||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -335,7 +335,7 @@ bool MutexPrivate::unlock()
|
|||
thr->m_locks--;
|
||||
if (!--m_locked) {
|
||||
const char* tname = thr ? thr->name() : 0;
|
||||
if (tname != m_owner)
|
||||
if (tname != m_owner)
|
||||
Debug(DebugFail,"MutexPrivate '%s' unlocked by '%s' but owned by '%s' [%p]",
|
||||
m_name,tname,m_owner,this);
|
||||
m_owner = 0;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -609,7 +609,7 @@ void SocketAddr::split(const String& buf, String& addr, int& port, bool portPres
|
|||
port = buf.substr(p2 + 1).toInteger();
|
||||
addr.assign(buf.c_str(),p2);
|
||||
}
|
||||
else
|
||||
else
|
||||
addr = buf;
|
||||
}
|
||||
else
|
||||
|
@ -1161,7 +1161,7 @@ int File::readData(void* buffer, int length)
|
|||
else if (::GetLastError() == ERROR_HANDLE_EOF) {
|
||||
clearError();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
copyError();
|
||||
return -1;
|
||||
#else
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/**
|
||||
* URI.cpp
|
||||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Adapted for YATE by Paul Chitescu
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -32,7 +32,7 @@ typedef struct MD5Context {
|
|||
u_int32_t bits[2];
|
||||
unsigned char in[64];
|
||||
} MD5_CTX;
|
||||
|
||||
|
||||
|
||||
#if !(defined(WORDS_BIGENDIAN) || defined(BIGENDIAN))
|
||||
#define byteReverse(buf, len) /* Nothing */
|
||||
|
@ -217,7 +217,7 @@ static void MD5_Update(MD5_CTX *ctx, unsigned char const *buf, unsigned len)
|
|||
}
|
||||
|
||||
/*
|
||||
* Final wrapup - pad to 64-byte boundary with the bit pattern
|
||||
* Final wrapup - pad to 64-byte boundary with the bit pattern
|
||||
* 1 0* (64-bit count of bits processed, MSB-first)
|
||||
*/
|
||||
static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx)
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
* Adapted for YATE by Paul Chitescu
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2004-2013 Null Team
|
||||
* Copyright (C) 2004-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -174,7 +174,7 @@ static void sha1_final(sha1_ctx *sctx, u_int8_t *out)
|
|||
sha1_update(sctx, padding, padlen);
|
||||
|
||||
/* Append length */
|
||||
sha1_update(sctx, bits, sizeof bits);
|
||||
sha1_update(sctx, bits, sizeof bits);
|
||||
|
||||
/* Store state in digest */
|
||||
for (i = j = 0; i < 5; i++, j += 4) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* Adapted for YATE by Paul Chitescu
|
||||
*
|
||||
* Yet Another Telephony Engine - a fully featured software PBX and IVR
|
||||
* Copyright (C) 2013 Null Team
|
||||
* Copyright (C) 2013-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|