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-e72c3f656dc1
This commit is contained in:
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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Classes for interfacing with Mac OS X API
|
||||
*
|
||||
* 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
|
||||
|
@ -84,7 +84,7 @@ public:
|
|||
* @param path String into which the determined path will go
|
||||
* @param dirPath The type of directory path to be sought
|
||||
* @param domain Mask containing the domains where the type of directory is to be sought
|
||||
* @param append Name of directory to create in the searched directory
|
||||
* @param append Name of directory to create in the searched directory
|
||||
* @param append True if the directory is to be created if it not exists
|
||||
*/
|
||||
static void getPath(String& path, DirectoryPath dirPath, Domain domain, const char* append = 0, bool createDir = true);
|
||||
|
|
|
@ -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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -46,7 +46,7 @@ typedef unsigned reg_syntax_t;
|
|||
#define RE_BACKSLASH_ESCAPE_IN_LISTS (1)
|
||||
|
||||
/* If this bit is not set, then + and ? are operators, and \+ and \? are
|
||||
literals.
|
||||
literals.
|
||||
If set, then \+ and \? are operators and + and ? are literals. */
|
||||
#define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
|
||||
|
||||
|
@ -62,7 +62,7 @@ typedef unsigned reg_syntax_t;
|
|||
^ is an anchor if it is at the beginning of a regular
|
||||
expression or after an open-group or an alternation operator;
|
||||
$ is an anchor if it is at the end of a regular expression, or
|
||||
before a close-group or an alternation operator.
|
||||
before a close-group or an alternation operator.
|
||||
|
||||
This bit could be (re)combined with RE_CONTEXT_INDEP_OPS, because
|
||||
POSIX draft 11.2 says that * etc. in leading positions is undefined.
|
||||
|
@ -73,7 +73,7 @@ typedef unsigned reg_syntax_t;
|
|||
/* If this bit is set, then special characters are always special
|
||||
regardless of where they are in the pattern.
|
||||
If this bit is not set, then special characters are special only in
|
||||
some contexts; otherwise they are ordinary. Specifically,
|
||||
some contexts; otherwise they are ordinary. Specifically,
|
||||
* + ? and intervals are only special when not after the beginning,
|
||||
open-group, or alternation operator. */
|
||||
#define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS << 1)
|
||||
|
@ -95,7 +95,7 @@ typedef unsigned reg_syntax_t;
|
|||
#define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL << 1)
|
||||
|
||||
/* If this bit is set, either \{...\} or {...} defines an
|
||||
interval, depending on RE_NO_BK_BRACES.
|
||||
interval, depending on RE_NO_BK_BRACES.
|
||||
If not set, \{, \}, {, and } are literals. */
|
||||
#define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE << 1)
|
||||
|
||||
|
@ -120,7 +120,7 @@ typedef unsigned reg_syntax_t;
|
|||
If not set, then \<digit> is a back-reference. */
|
||||
#define RE_NO_BK_REFS (RE_NO_BK_PARENS << 1)
|
||||
|
||||
/* If this bit is set, then | is an alternation operator, and \| is literal.
|
||||
/* If this bit is set, then | is an alternation operator, and \| is literal.
|
||||
If not set, then \| is an alternation operator, and | is literal. */
|
||||
#define RE_NO_BK_VBAR (RE_NO_BK_REFS << 1)
|
||||
|
||||
|
@ -142,7 +142,7 @@ extern reg_syntax_t re_syntax_options;
|
|||
|
||||
/* Define combinations of the above bits for the standard possibilities.
|
||||
(The [[[ comments delimit what gets put into the Texinfo file, so
|
||||
don't delete them!) */
|
||||
don't delete them!) */
|
||||
/* [[[begin syntaxes]]] */
|
||||
#define RE_SYNTAX_EMACS 0
|
||||
|
||||
|
@ -209,7 +209,7 @@ extern reg_syntax_t re_syntax_options;
|
|||
#ifdef RE_DUP_MAX
|
||||
#undef RE_DUP_MAX
|
||||
#endif
|
||||
#define RE_DUP_MAX ((1 << 15) - 1)
|
||||
#define RE_DUP_MAX ((1 << 15) - 1)
|
||||
|
||||
|
||||
/* POSIX `cflags' bits (i.e., information for `regcomp'). */
|
||||
|
@ -221,7 +221,7 @@ extern reg_syntax_t re_syntax_options;
|
|||
/* If this bit is set, then ignore case when matching.
|
||||
If not set, then case is significant. */
|
||||
#define REG_ICASE (REG_EXTENDED << 1)
|
||||
|
||||
|
||||
/* If this bit is set, then anchors do not match at newline
|
||||
characters in the string.
|
||||
If not set, then anchors do match at newlines. */
|
||||
|
@ -260,7 +260,7 @@ typedef enum
|
|||
REG_EESCAPE, /* Trailing backslash. */
|
||||
REG_ESUBREG, /* Invalid back reference. */
|
||||
REG_EBRACK, /* Unmatched left bracket. */
|
||||
REG_EPAREN, /* Parenthesis imbalance. */
|
||||
REG_EPAREN, /* Parenthesis imbalance. */
|
||||
REG_EBRACE, /* Unmatched \{. */
|
||||
REG_BADBR, /* Invalid contents of \{\}. */
|
||||
REG_ERANGE, /* Invalid range end. */
|
||||
|
@ -291,7 +291,7 @@ struct re_pattern_buffer
|
|||
unsigned long allocated;
|
||||
|
||||
/* Number of bytes actually used in `buffer'. */
|
||||
unsigned long used;
|
||||
unsigned long used;
|
||||
|
||||
/* Syntax setting with which the pattern was compiled. */
|
||||
reg_syntax_t syntax;
|
||||
|
@ -335,7 +335,7 @@ struct re_pattern_buffer
|
|||
unsigned no_sub : 1;
|
||||
|
||||
/* If set, a beginning-of-line anchor doesn't match at the
|
||||
beginning of the string. */
|
||||
beginning of the string. */
|
||||
unsigned not_bol : 1;
|
||||
|
||||
/* Similarly for an end-of-line anchor. */
|
||||
|
@ -447,7 +447,7 @@ extern int re_match
|
|||
|
||||
|
||||
/* Relates to `re_match' as `re_search_2' relates to `re_search'. */
|
||||
extern int re_match_2
|
||||
extern int re_match_2
|
||||
_RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1,
|
||||
int length1, const char *string2, int length2,
|
||||
int start, struct re_registers *regs, int stop));
|
||||
|
|
|
@ -32,7 +32,7 @@ done
|
|||
)<<EOF
|
||||
common_types.h
|
||||
typedefs.h
|
||||
modules/interface/
|
||||
modules/interface/
|
||||
module.h
|
||||
module_common_types.h
|
||||
common_audio/resampler/ audio/common/resampler/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* ASN.1 Library
|
||||
*
|
||||
* 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
|
||||
|
@ -694,7 +694,7 @@ int ASNLib::decodeGenTime(DataBlock& data, unsigned int* time, unsigned int* fra
|
|||
for (int i = 0; i < length; i++)
|
||||
date += (char) (data[i]);
|
||||
data.cut(-length);
|
||||
|
||||
|
||||
if (!(utc && fractions && time)) {
|
||||
DDebug(s_libName.c_str(),DebugAll,"::decodeGenTime() - Invalid buffer for return data");
|
||||
return InvalidContentsError;
|
||||
|
@ -702,7 +702,7 @@ int ASNLib::decodeGenTime(DataBlock& data, unsigned int* time, unsigned int* fra
|
|||
|
||||
unsigned int year, month, day, hours, minutes, seconds;
|
||||
int timeDiff = 0;
|
||||
|
||||
|
||||
*utc = false;
|
||||
*fractions = 0;
|
||||
|
||||
|
@ -790,7 +790,7 @@ int ASNLib::decodeUTCTime(DataBlock& data, unsigned int* time, bool tagCheck)
|
|||
for (int i = 0; i < length; i++)
|
||||
date += (char) (data[i]);
|
||||
data.cut(-length);
|
||||
|
||||
|
||||
if (!time) {
|
||||
DDebug(s_libName.c_str(),DebugAll,"::decodeUTCTime() - Invalid buffer for return data");
|
||||
return InvalidContentsError;
|
||||
|
@ -1448,6 +1448,4 @@ int AsnMib::compareTo(AsnMib* mib)
|
|||
return retValue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* vi: set ts=8 sw=4 sts=4 noet: */
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* ASN.1 Library
|
||||
*
|
||||
* 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
|
||||
|
@ -223,11 +223,11 @@ public:
|
|||
* Assign operator
|
||||
*/
|
||||
inline AsnValue& operator=( AsnValue* val)
|
||||
{
|
||||
if (!val)
|
||||
{
|
||||
if (!val)
|
||||
return *this;
|
||||
m_data = val->getValue();
|
||||
m_type = val->type();
|
||||
m_type = val->type();
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -1047,7 +1047,7 @@ public:
|
|||
static int matchEOC(DataBlock& data);
|
||||
|
||||
/**
|
||||
* Extract length until a End Of Contents is found.
|
||||
* Extract length until a End Of Contents is found.
|
||||
* @param data Input block for which to determine the length to End Of Contents
|
||||
* @param length Length to which to add determined length
|
||||
* @return Length until End Of Contents
|
||||
|
|
|
@ -376,7 +376,7 @@ static inline unsigned int getMCCMNC(const uint8_t*& in, unsigned int& len, XmlE
|
|||
return GSML3Codec::NoError;
|
||||
}
|
||||
|
||||
static inline unsigned int setMCCMNC(XmlElement* in, uint8_t*& out, unsigned int& len, bool advance = true,
|
||||
static inline unsigned int setMCCMNC(XmlElement* in, uint8_t*& out, unsigned int& len, bool advance = true,
|
||||
bool findChild = true)
|
||||
{
|
||||
if (!(in && out && len >= 3))
|
||||
|
@ -2007,7 +2007,7 @@ static const TokenDict s_causeCCITT_dict[] = {
|
|||
{"unknown-group", 0x5a}, // Non-existent CUG
|
||||
{"invalid-transit-net", 0x5b}, // Invalid transit network selection
|
||||
{"invalid-message", 0x5f}, // Invalid message, unspecified
|
||||
// protocol-error class
|
||||
// protocol-error class
|
||||
{"missing-mandatory-ie", 0x60}, // Mandatory information element is missing
|
||||
{"unknown-message", 0x61}, // Message type non-existent or not implemented
|
||||
{"wrong-message", 0x62}, // Message not compatible with call state, non-existent or not implemented
|
||||
|
@ -3827,7 +3827,7 @@ static unsigned int decodeSecHeader(const GSML3Codec* codec, uint8_t proto, con
|
|||
}
|
||||
default:
|
||||
if (secVal >= GSML3Codec::ServiceRequestHeader) {
|
||||
//TODO
|
||||
//TODO
|
||||
DDebug(codec->dbg(),DebugStub,"decodeSecHeader() for ServiceRequestHeader not implemented [%p]",codec->ptr());
|
||||
}
|
||||
break;
|
||||
|
@ -3887,7 +3887,7 @@ static unsigned int encodeSecHeader(const GSML3Codec* codec, uint8_t proto, con
|
|||
}
|
||||
default:
|
||||
if (secVal >= GSML3Codec::ServiceRequestHeader) {
|
||||
//TODO
|
||||
//TODO
|
||||
DDebug(codec->dbg(),DebugStub,"encodeSecHeader() for ServiceRequestHeader not implemented [%p]",codec->ptr());
|
||||
}
|
||||
break;
|
||||
|
@ -4140,7 +4140,7 @@ static unsigned int encodeHexParam(const GSML3Codec* codec, uint8_t proto, XmlEl
|
|||
return CONDITIONAL_ERROR(param,NoError,MissingMandatoryIE);
|
||||
if (param->length == 4) {
|
||||
uint8_t val = d[0];
|
||||
if (!param->lowerBits)
|
||||
if (!param->lowerBits)
|
||||
val = val >> 4;
|
||||
setUINT8(val,out,param);
|
||||
d.clear();
|
||||
|
@ -4551,7 +4551,7 @@ static unsigned int encodeTV(const GSML3Codec* codec, uint8_t proto, XmlElement*
|
|||
return CONDITIONAL_ERROR(param,NoError,MissingMandatoryIE);
|
||||
if (!(param->name && param->length <= 8))
|
||||
return encodeHexParam(codec,proto,xml,out,param);
|
||||
|
||||
|
||||
const TokenDict* dict = static_cast<const TokenDict*>(param->ieType.data);
|
||||
uint8_t val = param->iei;
|
||||
if (!dict)
|
||||
|
@ -4661,7 +4661,7 @@ static unsigned int encodeTLV_TLVE(const GSML3Codec* codec, uint8_t proto, XmlEl
|
|||
return GSML3Codec::NoError;
|
||||
}
|
||||
|
||||
static unsigned int decodeParams(const GSML3Codec* codec, uint8_t proto, const uint8_t*& in, unsigned int& len, XmlElement*& out,
|
||||
static unsigned int decodeParams(const GSML3Codec* codec, uint8_t proto, const uint8_t*& in, unsigned int& len, XmlElement*& out,
|
||||
const IEParam* param, const NamedList& params)
|
||||
{
|
||||
if (!(codec && in && len && param))
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
/**
|
||||
* yategsm.h
|
||||
* GSM Radio Layer 3 library
|
||||
* 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) 2011-2013 Null Team
|
||||
* Copyright (C) 2011-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -82,7 +82,7 @@ public:
|
|||
GTTP = 0x04, // GPRS Transparent Transport Protocol (GTTP)
|
||||
MM = 0x05, // Mobility Management
|
||||
RRM = 0x06, // Radio Resources Management
|
||||
EPS_MM = 0x07, // EPS Mobility Management
|
||||
EPS_MM = 0x07, // EPS Mobility Management
|
||||
GPRS_MM = 0x08, // GPRS Mobility Management
|
||||
SMS = 0x09, // SMS
|
||||
GPRS_SM = 0x0a, // GPRS Session Management
|
||||
|
@ -132,7 +132,7 @@ public:
|
|||
* Constructor
|
||||
*/
|
||||
GSML3Codec(DebugEnabler* dbg = 0);
|
||||
|
||||
|
||||
/**
|
||||
* Decode layer 3 message payload
|
||||
* @param in Input buffer containing the data to be decoded
|
||||
|
@ -144,7 +144,7 @@ public:
|
|||
unsigned int decode(const uint8_t* in, unsigned int len, XmlElement*& out, const NamedList& params = NamedList::empty());
|
||||
|
||||
/**
|
||||
* Encode a layer 3 message
|
||||
* Encode a layer 3 message
|
||||
* @param in Layer 3 message in XML form
|
||||
* @param out Output buffer into which to put encoded data
|
||||
* @param params Encoder parameters
|
||||
|
@ -161,7 +161,7 @@ public:
|
|||
unsigned int decode(XmlElement* xml, const NamedList& params = NamedList::empty());
|
||||
|
||||
/**
|
||||
* Encode a layer 3 message from an existing XML
|
||||
* Encode a layer 3 message from an existing XML
|
||||
* @param in XML which contains a layer 3 message in XML form. The message will be replaced with its encoded buffer
|
||||
* @param params Encoder parameters
|
||||
* @return Parsing result: 0 (NoError) if succeeded, error status otherwise
|
||||
|
@ -188,7 +188,7 @@ public:
|
|||
* @param reset Reset flags before setting these ones
|
||||
*/
|
||||
inline void setFlags(uint8_t flgs, bool reset = false)
|
||||
{
|
||||
{
|
||||
if (reset)
|
||||
resetFlags();
|
||||
m_flags |= flgs;
|
||||
|
|
|
@ -4,7 +4,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
|
||||
* Author: Marian Podgoreanu
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
|
|
|
@ -4,7 +4,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
|
||||
* Author: Marian Podgoreanu
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
|
@ -1102,7 +1102,7 @@ IAXFrame* IAXFrame::parse(const unsigned char* buf, unsigned int len, IAXEngine*
|
|||
continue;
|
||||
tr->processMiniNoTs(ts,t->m_blocks,now);
|
||||
TelEngine::destruct(tr);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -4,7 +4,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
|
||||
* Author: Marian Podgoreanu
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
|
@ -73,7 +73,7 @@ void IAXMediaData::print(String& buf)
|
|||
}
|
||||
|
||||
|
||||
IAXTransaction::IAXTransaction(IAXEngine* engine, IAXFullFrame* frame, u_int16_t lcallno,
|
||||
IAXTransaction::IAXTransaction(IAXEngine* engine, IAXFullFrame* frame, u_int16_t lcallno,
|
||||
const SocketAddr& addr, void* data)
|
||||
: Mutex(true,"IAXTransaction"),
|
||||
m_localInitTrans(false),
|
||||
|
@ -261,7 +261,7 @@ IAXTransaction::~IAXTransaction()
|
|||
localCallNo(),remoteCallNo(),this);
|
||||
}
|
||||
|
||||
IAXTransaction* IAXTransaction::factoryIn(IAXEngine* engine, IAXFullFrame* frame, u_int16_t lcallno,
|
||||
IAXTransaction* IAXTransaction::factoryIn(IAXEngine* engine, IAXFullFrame* frame, u_int16_t lcallno,
|
||||
const SocketAddr& addr, void* data)
|
||||
{
|
||||
IAXTransaction* tr = new IAXTransaction(engine,frame,lcallno,addr,data);
|
||||
|
@ -334,7 +334,7 @@ IAXTransaction* IAXTransaction::processFrame(IAXFrame* frame)
|
|||
// Frame is VNAK ?
|
||||
if (frame->type() == IAXFrame::IAX && full->subclass() == IAXControl::VNAK)
|
||||
return retransmitOnVNAK(full->iSeqNo());
|
||||
bool fAck = frame->type() == IAXFrame::IAX &&
|
||||
bool fAck = frame->type() == IAXFrame::IAX &&
|
||||
(full->subclass() == IAXControl::Ack || full->subclass() == IAXControl::Inval);
|
||||
if (!fAck && !isFrameAcceptable(full))
|
||||
return 0;
|
||||
|
@ -1281,7 +1281,7 @@ bool IAXTransaction::isFrameAcceptable(const IAXFullFrame* frame)
|
|||
"Transaction(%u,%u). Received late Frame(%u,%u) with oseq=%u expecting %u [%p]",
|
||||
localCallNo(),remoteCallNo(),frame->type(),frame->subclass(),frame->oSeqNo(),
|
||||
m_iSeqNo,this);
|
||||
sendAck(frame);
|
||||
sendAck(frame);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1463,7 +1463,7 @@ IAXEvent* IAXTransaction::getEventResponse(IAXFrameOut* frame, bool& delFrame)
|
|||
return 0;
|
||||
}
|
||||
// Frame only need ACK. Didn't found it. Return
|
||||
if (frame->ackOnly())
|
||||
if (frame->ackOnly())
|
||||
return 0;
|
||||
delFrame = true;
|
||||
switch (type()) {
|
||||
|
@ -1499,7 +1499,7 @@ IAXEvent* IAXTransaction::getEventResponse_New(IAXFrameOut* frame, bool& delFram
|
|||
// Frame is NEW: AUTHREQ, ACCEPT, REJECT, HANGUP ?
|
||||
if (0 != (ev = createResponse(frame,IAXFrame::IAX,IAXControl::AuthReq,IAXEvent::AuthReq,false,NewLocalInvite_AuthRecv)))
|
||||
return processAuthReq(ev);
|
||||
if (0 != (ev = createResponse(frame,IAXFrame::IAX,IAXControl::Accept,IAXEvent::Accept,false,Connected)))
|
||||
if (0 != (ev = createResponse(frame,IAXFrame::IAX,IAXControl::Accept,IAXEvent::Accept,false,Connected)))
|
||||
return processAccept(ev);
|
||||
if (0 != (ev = createResponse(frame,IAXFrame::IAX,IAXControl::Reject,IAXEvent::Reject,false,Terminating)))
|
||||
return ev;
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -507,7 +507,7 @@ bool JBStream::readSocket(char* buf, unsigned int len)
|
|||
else if (read) {
|
||||
String tmp;
|
||||
Thread::errorString(tmp,m_socket->error());
|
||||
reason << "Socket read error: " << tmp << " (" << m_socket->error() << ")";
|
||||
reason << "Socket read error: " << tmp << " (" << m_socket->error() << ")";
|
||||
Debug(this,DebugWarn,"%s [%p]",reason.c_str(),this);
|
||||
}
|
||||
else {
|
||||
|
@ -1939,7 +1939,7 @@ bool JBStream::writeSocket(const void* data, unsigned int& len)
|
|||
String tmp;
|
||||
Thread::errorString(tmp,m_socket->error());
|
||||
String reason;
|
||||
reason << "Socket send error: " << tmp << " (" << m_socket->error() << ")";
|
||||
reason << "Socket send error: " << tmp << " (" << m_socket->error() << ")";
|
||||
Debug(this,DebugWarn,"%s [%p]",reason.c_str(),this);
|
||||
lck.drop();
|
||||
postponeTerminate(0,m_incoming,XMPPError::SocketError,reason);
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -266,7 +266,7 @@ bool JGEngine::acceptIq(XMPPUtils::IqType type, const JabberID& from, const Jabb
|
|||
// Default event processor
|
||||
void JGEngine::defProcessEvent(JGEvent* event)
|
||||
{
|
||||
if (!event)
|
||||
if (!event)
|
||||
return;
|
||||
DDebug(this,DebugAll,"JGEngine::defprocessEvent. Deleting event (%p,%u)",
|
||||
event,event->type());
|
||||
|
@ -286,7 +286,7 @@ int JGEngine::decodeFlags(const String& list, const TokenDict* dict)
|
|||
if (!(list && dict))
|
||||
return 0;
|
||||
int ret = 0;
|
||||
ObjList* l = list.split(',',false);
|
||||
ObjList* l = list.split(',',false);
|
||||
for (; dict->token; dict++)
|
||||
if (l->find(dict->token))
|
||||
ret += dict->value;
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -667,7 +667,7 @@ void JGRtpCandidateP2P::fromXml(XmlElement* xml, const JGRtpCandidates& containe
|
|||
/*
|
||||
* JGRtpCandidates
|
||||
*/
|
||||
// Create a 'transport' element from this object. Add
|
||||
// Create a 'transport' element from this object. Add
|
||||
XmlElement* JGRtpCandidates::toXml(bool addCandidates, bool addAuth) const
|
||||
{
|
||||
XMPPNamespace::Type ns;
|
||||
|
@ -1692,7 +1692,7 @@ JGSession0::JGSession0(JGEngine* engine, const JabberID& caller, const JabberID&
|
|||
m_candidatesAction(ActCount)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// Create an incoming session
|
||||
JGSession0::JGSession0(JGEngine* engine, const JabberID& caller, const JabberID& called,
|
||||
XmlElement* xml, const String& id)
|
||||
|
@ -1838,7 +1838,7 @@ JGEvent* JGSession0::decodeJingle(XmlElement*& xml, XmlElement* child)
|
|||
unhandledAction(this,xml,act);
|
||||
return ev;
|
||||
}
|
||||
|
||||
|
||||
// *** ActInfo
|
||||
if (act == ActInfo) {
|
||||
// Return ActInfo event to signal ping (XEP-0166 6.8)
|
||||
|
@ -1867,7 +1867,7 @@ JGEvent* JGSession0::decodeJingle(XmlElement*& xml, XmlElement* child)
|
|||
unhandledAction(this,xml,act,ch);
|
||||
return ev;
|
||||
}
|
||||
|
||||
|
||||
if (act == ActTransportAccept) {
|
||||
confirmResult(xml);
|
||||
TelEngine::destruct(xml);
|
||||
|
@ -1999,7 +1999,7 @@ JGSession1::JGSession1(JGEngine* engine, const JabberID& caller, const JabberID&
|
|||
: JGSession(Version1,engine,caller,called)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// Create an incoming session
|
||||
JGSession1::JGSession1(JGEngine* engine, const JabberID& caller, const JabberID& called,
|
||||
XmlElement* xml, const String& id)
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/**
|
||||
* utils.cpp
|
||||
* xmpputils.cpp
|
||||
* Yet Another Jabber Component Protocol Stack
|
||||
* 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
|
||||
|
@ -1449,7 +1449,7 @@ int XMPPUtils::decodeFlags(const String& src, const TokenDict* dict)
|
|||
return mask;
|
||||
}
|
||||
|
||||
// Encode a mask of flags to a comma separated list.
|
||||
// Encode a mask of flags to a comma separated list.
|
||||
void XMPPUtils::buildFlags(String& dest, int src, const TokenDict* dict)
|
||||
{
|
||||
if (!dict)
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -321,13 +321,13 @@ public:
|
|||
Register, // register
|
||||
Starttls, // starttls
|
||||
Auth, // auth
|
||||
Challenge, // challenge
|
||||
Challenge, // challenge
|
||||
Abort, // abort
|
||||
Aborted, // aborted
|
||||
Response, // response
|
||||
Proceed, // proceed
|
||||
Success, // success
|
||||
Failure, // failure
|
||||
Failure, // failure
|
||||
Mechanisms, // mechanisms
|
||||
Mechanism, // mechanism
|
||||
Session, // session
|
||||
|
@ -636,7 +636,7 @@ public:
|
|||
static Regexp s_regExpValid;
|
||||
|
||||
private:
|
||||
void parse(); // Parse the string. Set the data
|
||||
void parse(); // Parse the string. Set the data
|
||||
void normalize(); // Lowercase node and domain. Set bare jid and jid
|
||||
|
||||
String m_node; // The node part
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -1015,7 +1015,7 @@ protected:
|
|||
|
||||
/**
|
||||
* Build a ping iq stanza
|
||||
* @param stanzaId Stanza id
|
||||
* @param stanzaId Stanza id
|
||||
* @return 0
|
||||
*/
|
||||
virtual XmlElement* buildPing(const String& stanzaId);
|
||||
|
@ -1447,7 +1447,7 @@ public:
|
|||
|
||||
/**
|
||||
* Build a ping iq stanza
|
||||
* @param stanzaId Stanza id
|
||||
* @param stanzaId Stanza id
|
||||
* @return Valid XmlElement pointer
|
||||
*/
|
||||
virtual XmlElement* buildPing(const String& stanzaId);
|
||||
|
@ -2648,7 +2648,7 @@ protected:
|
|||
|
||||
/**
|
||||
* This class holds a list of stream sets.
|
||||
* The purpose is to create a list of threads
|
||||
* The purpose is to create a list of threads
|
||||
* @short A list of stream sets
|
||||
*/
|
||||
class YJABBER_API JBStreamSetList : public RefObject, public Mutex
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -275,7 +275,7 @@ public:
|
|||
*/
|
||||
inline Media media() const
|
||||
{ return m_media; }
|
||||
|
||||
|
||||
/**
|
||||
* Append a new data payload
|
||||
* @param id The 'id' attribute
|
||||
|
@ -619,7 +619,7 @@ public:
|
|||
UnknownFileTransfer = -2, // Unknown (unsupported) file transfer content
|
||||
RtpIceUdp = 1, // Audio: RTP ICE-UDP transport
|
||||
RtpRawUdp, // Audio: RTP RAW-UDP transport
|
||||
RtpP2P, //
|
||||
RtpP2P, //
|
||||
RtpGoogleRawUdp, //
|
||||
FileBSBOffer, // File offer: byte stream (SOCKS) transport
|
||||
FileBSBRequest, // File request: byte stream (SOCKS) transport
|
||||
|
@ -901,7 +901,7 @@ public:
|
|||
* Session state enumeration
|
||||
*/
|
||||
enum State {
|
||||
Idle = 0, // Outgoing stream is waiting for
|
||||
Idle = 0, // Outgoing stream is waiting for
|
||||
Pending = 1, // Session is pending, session-initiate sent/received
|
||||
Active = 2, // Session is active, session-accept sent/received
|
||||
Ending = 3, // Session terminated: Wait for write result
|
||||
|
@ -1942,7 +1942,7 @@ private:
|
|||
// Event specific
|
||||
JGSession::Action m_action; // The action if type is Jingle
|
||||
String m_id; // The element's id attribute
|
||||
String m_reason; // The reason if type is Error or Terminated
|
||||
String m_reason; // The reason if type is Error or Terminated
|
||||
String m_text; // Dtmf text
|
||||
};
|
||||
|
||||
|
@ -2002,7 +2002,7 @@ public:
|
|||
|
||||
/**
|
||||
* Send a session's stanza.
|
||||
* This method should be re-implemented
|
||||
* This method should be re-implemented
|
||||
* @param session The session requesting the operation
|
||||
* @param stanza The stanza to send. Will be consumed and zeroed
|
||||
* @return True on success
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/**
|
||||
* endpoint.cpp
|
||||
* Yet Another MGCP Stack
|
||||
* 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
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/**
|
||||
* engine.cpp
|
||||
* Yet Another MGCP Stack
|
||||
* 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
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/**
|
||||
* message.cpp
|
||||
* Yet Another MGCP Stack
|
||||
* 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
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/**
|
||||
* transaction.cpp
|
||||
* Yet Another MGCP Stack
|
||||
* 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
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -40,7 +40,7 @@
|
|||
#define YMGCP_API
|
||||
#endif
|
||||
|
||||
/**
|
||||
/**
|
||||
* Holds all Telephony Engine related classes.
|
||||
*/
|
||||
namespace TelEngine {
|
||||
|
@ -54,7 +54,7 @@ class MGCPEngine;
|
|||
|
||||
/**
|
||||
* This class holds an MGCP message, either command or response, along with
|
||||
* its parameters. The
|
||||
* its parameters. The
|
||||
* @short An MGCP command or response
|
||||
*/
|
||||
class YMGCP_API MGCPMessage : public RefObject
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Yet Another Modem
|
||||
*
|
||||
* 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
|
||||
|
@ -224,7 +224,7 @@ FilterConst::FilterConst(FSKModem::Type type)
|
|||
-2.9928879142e+00, 2.5990173742e+00, 0.0000000000e+00};
|
||||
static float s[7] = {-5.6297236492e-02, -1.1421579050e-01, -4.8122536483e-01, -4.0121072432e-01,
|
||||
-7.4834487567e-01, -6.9170822332e-01, 0.0000000000e+00};
|
||||
static float l[7] = {-7.8390522307e-03, 8.5209627801e-02, -4.0804129163e-01, 1.1157139955e+00,
|
||||
static float l[7] = {-7.8390522307e-03, 8.5209627801e-02, -4.0804129163e-01, 1.1157139955e+00,
|
||||
-1.8767603680e+00, 1.8916395224e+00, 0.0000000000e+00};
|
||||
|
||||
switch (type) {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Yet Another Modem
|
||||
*
|
||||
* 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,11 +1,11 @@
|
|||
/*
|
||||
/**
|
||||
* yatemodem.h
|
||||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Yet Another Modem
|
||||
*
|
||||
* 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
|
||||
|
@ -41,7 +41,7 @@
|
|||
#endif
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* Holds all Telephony Engine related classes.
|
||||
*/
|
||||
namespace TelEngine {
|
||||
|
@ -382,7 +382,7 @@ protected:
|
|||
*/
|
||||
bool error(Error e);
|
||||
|
||||
private:
|
||||
private:
|
||||
// Change this UART's state
|
||||
void changeState(State newState);
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Common C++ base classes for PBX related plugins
|
||||
*
|
||||
* 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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Multiple routing implementation
|
||||
*
|
||||
* 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,11 +1,11 @@
|
|||
/*
|
||||
/**
|
||||
* yatepbx.h
|
||||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* Common C++ base classes for PBX related plugins
|
||||
*
|
||||
* 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
|
||||
|
@ -316,4 +316,5 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
/* vi: set ts=8 sw=4 sts=4 noet: */
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -987,7 +987,7 @@ void RTPSession::sendRtcpBye()
|
|||
static_cast<RTPProcessor*>(m_transport)->rtcpData(buf,8);
|
||||
}
|
||||
|
||||
void RTPSession::incWrongSrc()
|
||||
void RTPSession::incWrongSrc()
|
||||
{
|
||||
XDebug(DebugAll,"RTPSession::incWrongSrc() [%p]",this);
|
||||
m_wrongSrc++;
|
||||
|
|
|
@ -4,7 +4,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
|
||||
|
@ -138,7 +138,7 @@ void RTPGroup::setMinSleep(int msec)
|
|||
|
||||
|
||||
RTPProcessor::RTPProcessor()
|
||||
: m_wrongSrc(0), m_group(0)
|
||||
: m_wrongSrc(0), m_group(0)
|
||||
{
|
||||
DDebug(DebugAll,"RTPProcessor::RTPProcessor() [%p]",this);
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
/**
|
||||
* yatertp.h
|
||||
* Yet Another RTP Stack
|
||||
* 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
|
||||
|
@ -1286,7 +1286,7 @@ public:
|
|||
void setReports(int interval);
|
||||
|
||||
/**
|
||||
* Put the collected statistical data
|
||||
* Put the collected statistical data
|
||||
* @param stats NamedList to populate with the data
|
||||
*/
|
||||
virtual void getStats(NamedList& stats) const;
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
/**
|
||||
* Evaluator.cpp
|
||||
* evaluator.cpp
|
||||
* Yet Another (Java)script library
|
||||
* 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
|
||||
|
@ -1463,7 +1464,7 @@ void ExpEvaluator::dump(const ExpOperation& oper, String& res) const
|
|||
const char* name = getOperator(oper.opcode());
|
||||
if (name)
|
||||
res << name;
|
||||
else
|
||||
else
|
||||
res << "[" << oper.opcode() << "]";
|
||||
}
|
||||
if (oper.number() && oper.isInteger())
|
||||
|
|
|
@ -4,7 +4,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) 2011-2013 Null Team
|
||||
* Copyright (C) 2011-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -784,7 +784,7 @@ bool JsContext::runStringFunction(GenObject* obj, const String& name, ObjList& s
|
|||
pos = tmp->toInteger(0); \
|
||||
} \
|
||||
} \
|
||||
String s(*str);
|
||||
String s(*str);
|
||||
|
||||
if (name == YSTRING("startsWith")) {
|
||||
MAKE_WITH_METHOD;
|
||||
|
@ -798,7 +798,7 @@ bool JsContext::runStringFunction(GenObject* obj, const String& name, ObjList& s
|
|||
if (pos > 0)
|
||||
s = s.substr(0,pos);
|
||||
ExpEvaluator::pushOne(stack,new ExpOperation(s.endsWith(what)));
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
#undef MAKE_WITH_METHOD
|
||||
#define SPLIT_EMPTY() do { \
|
||||
|
|
|
@ -4,7 +4,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) 2011-2013 Null Team
|
||||
* Copyright (C) 2011-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
@ -583,15 +583,15 @@ bool JsArray::runNative(ObjList& stack, const ExpOperation& oper, GenObject* con
|
|||
}
|
||||
else if (oper.name() == YSTRING("concat")) {
|
||||
// Returns a new array comprised of this array joined with other array(s) and/or value(s).
|
||||
// var num1 = [1, 2, 3];
|
||||
// var num2 = [4, 5, 6];
|
||||
// var num3 = [7, 8, 9];
|
||||
// var num1 = [1, 2, 3];
|
||||
// var num2 = [4, 5, 6];
|
||||
// var num3 = [7, 8, 9];
|
||||
//
|
||||
// creates array [1, 2, 3, 4, 5, 6, 7, 8, 9]; num1, num2, num3 are unchanged
|
||||
// var nums = num1.concat(num2, num3);
|
||||
// creates array [1, 2, 3, 4, 5, 6, 7, 8, 9]; num1, num2, num3 are unchanged
|
||||
// var nums = num1.concat(num2, num3);
|
||||
|
||||
// var alpha = ['a', 'b', 'c'];
|
||||
// creates array ["a", "b", "c", 1, 2, 3], leaving alpha unchanged
|
||||
// var alpha = ['a', 'b', 'c'];
|
||||
// creates array ["a", "b", "c", 1, 2, 3], leaving alpha unchanged
|
||||
// var alphaNumeric = alpha.concat(1, [2, 3]);
|
||||
if (!oper.number())
|
||||
return false;
|
||||
|
@ -771,14 +771,14 @@ bool JsArray::runNative(ObjList& stack, const ExpOperation& oper, GenObject* con
|
|||
bool JsArray::runNativeSlice(ObjList& stack, const ExpOperation& oper, GenObject* context)
|
||||
{
|
||||
// Extracts a section of an array and returns a new array.
|
||||
// var myHonda = { color: "red", wheels: 4, engine: { cylinders: 4, size: 2.2 } };
|
||||
// var myCar = [myHonda, 2, "cherry condition", "purchased 1997"];
|
||||
// var newCar = myCar.slice(0, 2);
|
||||
// var myHonda = { color: "red", wheels: 4, engine: { cylinders: 4, size: 2.2 } };
|
||||
// var myCar = [myHonda, 2, "cherry condition", "purchased 1997"];
|
||||
// var newCar = myCar.slice(0, 2);
|
||||
if (!oper.number())
|
||||
return false;
|
||||
// begin | end > 0 offset from the start of the array
|
||||
// < 0 offset from the end of the array
|
||||
// end missing -> go to end of array
|
||||
// end missing -> go to end of array
|
||||
int begin = length(), end = length();
|
||||
for (int i = (int)oper.number(); i; i--) {
|
||||
ExpOperation* op = popValue(stack,context);
|
||||
|
@ -804,7 +804,7 @@ bool JsArray::runNativeSlice(ObjList& stack, const ExpOperation& oper, GenObject
|
|||
|
||||
bool JsArray::runNativeSplice(ObjList& stack, const ExpOperation& oper, GenObject* context)
|
||||
{
|
||||
// Changes the content of an array, adding new elements while removing old elements.
|
||||
// Changes the content of an array, adding new elements while removing old elements.
|
||||
// Returns an array containing the removed elements
|
||||
// array.splice(index , howMany[, element1[, ...[, elementN]]])
|
||||
// array.splice(index ,[ howMany[, element1[, ...[, elementN]]]])
|
||||
|
@ -848,7 +848,7 @@ bool JsArray::runNativeSplice(ObjList& stack, const ExpOperation& oper, GenObjec
|
|||
for (int i = shiftIdx; i < length(); i++)
|
||||
params().setParam(String(i + shiftWith),params().getValue(String(i)));
|
||||
}
|
||||
// insert the new ones
|
||||
// insert the new ones
|
||||
for (int i = begin;(arguments.count() > 2) && (i < length()); i++) {
|
||||
GenObject* obj = arguments[2 + i - begin];
|
||||
params().setParam(new NamedPointer(String(i),obj));
|
||||
|
|
|
@ -4,7 +4,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) 2011-2013 Null Team
|
||||
* Copyright (C) 2011-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
/*
|
||||
/**
|
||||
* yatescript.h
|
||||
* Yet Another (Java)script library
|
||||
* 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) 2011-2013 Null Team
|
||||
* Copyright (C) 2011-2014 Null Team
|
||||
*
|
||||
* This software is distributed under multiple licenses;
|
||||
* see the COPYING file in the main directory for licensing
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* SDP media handling
|
||||
*
|
||||
* 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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* SDP media handling
|
||||
*
|
||||
* 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
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* SDP media handling
|
||||
*
|
||||
* 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
|
||||
|
@ -918,7 +918,7 @@ void SDPSession::dispatchingRtp(Message*& msg, SDPMedia* media)
|
|||
XDebug(m_enabler,DebugAll,"SDPSession::dispatchingRtp(%p,%p) [%p]",msg,media,m_ptr);
|
||||
}
|
||||
|
||||
// Set data used in debug
|
||||
// Set data used in debug
|
||||
void SDPSession::setSdpDebug(DebugEnabler* enabler, void* ptr)
|
||||
{
|
||||
m_enabler = enabler ? enabler : static_cast<DebugEnabler*>(m_parser);
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
/**
|
||||
* yatesdp.h
|
||||
* This file is part of the YATE Project http://YATE.null.ro
|
||||
*
|
||||
* SDP media handling
|
||||
*
|
||||
* 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
|
||||
|
@ -45,7 +45,7 @@
|
|||
#define YSDP_API
|
||||
#endif
|
||||
|
||||
/**
|
||||
/**
|
||||
* Holds all Telephony Engine related classes.
|
||||
*/
|
||||
namespace TelEngine {
|
||||
|
@ -616,7 +616,7 @@ protected:
|
|||
virtual void dispatchingRtp(Message*& msg, SDPMedia* media);
|
||||
|
||||
/**
|
||||
* Set data used in debug
|
||||
* Set data used in debug
|
||||
* @param enabler The DebugEnabler to use (0 to to use the parser)
|
||||
* @param ptr Pointer to print, 0 to use the session pointer
|
||||
*/
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* address.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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,11 +1,11 @@
|
|||
/**
|
||||
* dumper.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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,11 +1,11 @@
|
|||
/**
|
||||
* engine.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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
|
||||
|
@ -675,7 +675,7 @@ static const TokenDict s_dict_causeCCITT[] = {
|
|||
{"unknown-group", 0x5a}, // Non-existent CUG
|
||||
{"invalid-transit-net", 0x5b}, // Invalid transit network selection
|
||||
{"invalid-message", 0x5f}, // Invalid message, unspecified
|
||||
// protocol-error class
|
||||
// protocol-error class
|
||||
{"missing-mandatory-ie", 0x60}, // Mandatory information element is missing
|
||||
{"unknown-message", 0x61}, // Message type non-existent or not implemented
|
||||
{"wrong-message", 0x62}, // Message not compatible with call state, non-existent or not implemented
|
||||
|
@ -729,7 +729,7 @@ static const TokenDict s_dict_transferRateCCITT[] = {
|
|||
static const TokenDict s_dict_formatCCITT[] = {
|
||||
{"v110", 0x01}, // Recomendation V.110 and X.30
|
||||
{"mulaw", 0x02}, // Recomendation G.711 mu-law
|
||||
{"alaw", 0x03}, // Recomendation G.711 A-law
|
||||
{"alaw", 0x03}, // Recomendation G.711 A-law
|
||||
{"g721", 0x04}, // Recomendation G.721 32kbit/s ADPCM and I.460
|
||||
{"h221", 0x05}, // Recomendation H.221 and H.242
|
||||
{"h223", 0x06}, // Recomendation H.223 and H.245 videoconference
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* interface.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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
|
||||
|
@ -161,5 +161,4 @@ bool SignallingReceiver::transmitPacket(const DataBlock& packet, bool repeat,
|
|||
return tmp && tmp->transmitPacket(packet,repeat,type);
|
||||
}
|
||||
|
||||
|
||||
/* vi: set ts=8 sw=4 sts=4 noet: */
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* isup.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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
|
||||
|
@ -3914,7 +3914,7 @@ void SS7ISUP::timerTick(const Time& when)
|
|||
if (ok) {
|
||||
unsigned int nCics = 0;
|
||||
int flg = 0;
|
||||
int flgReset = 0;
|
||||
int flgReset = 0;
|
||||
if ((msg->params()[YSTRING("GroupSupervisionTypeIndicator")] == YSTRING("hw-failure"))) {
|
||||
flg = SignallingCircuit::LockLocalHWFail;
|
||||
flgReset = SignallingCircuit::LockingHWFail;
|
||||
|
@ -4772,7 +4772,7 @@ bool SS7ISUP::processMSU(SS7MsgISUP::Type type, unsigned int cic,
|
|||
// TODO: check parameters-unsupported vs. ParameterCompatInformation
|
||||
|
||||
// Check if we expected some response to UPT
|
||||
// Ignore
|
||||
// Ignore
|
||||
if (!m_userPartAvail && m_uptTimer.started()) {
|
||||
m_uptTimer.stop();
|
||||
const char* oldStat = statusName();
|
||||
|
@ -6105,7 +6105,7 @@ bool SS7ISUP::handleCicEventCommand(const NamedList& p)
|
|||
return true;
|
||||
}
|
||||
|
||||
// Try to start single circuit (un)blocking. Set a pending operation on success
|
||||
// Try to start single circuit (un)blocking. Set a pending operation on success
|
||||
// @param force True to ignore resetting/(un)blocking flags of the circuit
|
||||
// Return built message to be sent on success
|
||||
SS7MsgISUP* SS7ISUP::buildCicBlock(SignallingCircuit* cic, bool block, bool force)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* layer2.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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,11 +1,11 @@
|
|||
/**
|
||||
* layer3.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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
|
||||
|
@ -490,7 +490,7 @@ void SS7Layer3::printRoutes()
|
|||
}
|
||||
if (route->shift())
|
||||
tmp << " >> " << route->shift();
|
||||
tmp << "\r\n";
|
||||
tmp << "\r\n";
|
||||
}
|
||||
s << tmp;
|
||||
}
|
||||
|
@ -498,7 +498,7 @@ void SS7Layer3::printRoutes()
|
|||
s = s.substr(0,s.length() - 2);
|
||||
Output("%s of '%s': [%p]\r\n%s",router?"Routing table":"Destinations",debugName(),this,s.c_str());
|
||||
}
|
||||
else
|
||||
else
|
||||
Output("No %s in '%s' [%p]",router?"routes":"destinations",debugName(),this);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* layer4.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 Signalling Stack - implements the support for SS7, ISDN and PSTN
|
||||
*
|
||||
* 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
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue