You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/dsm/mods/mod_utils/ModUtils.h

80 lines
2.4 KiB

/*
* Copyright (C) 2009 Teltech Systems Inc.
*
* This file is part of SEMS, a free SIP media server.
*
* SEMS is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. This program is released under
* the GPL with the additional exemption that compiling, linking,
* and/or using OpenSSL is allowed.
*
* For a license to use the SEMS software under conditions
* other than those described here, or to purchase support for this
* software, please contact iptel.org by e-mail at the following addresses:
* info@iptel.org
*
* SEMS 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. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _MOD_UTILS_H
#define _MOD_UTILS_H
#include "DSMModule.h"
#include "AmRingTone.h"
#include "DSMSession.h"
#include <string>
#define MOD_CLS_NAME SCUtilsModule
#define DEC_BUF_LEN 512
#define AES_KEY_SIZE 16
DECLARE_MODULE(MOD_CLS_NAME);
DEF_CONDITION_2P(IsInListCondition);
DEF_ACTION_2P(SCUPlayCountRightAction);
DEF_ACTION_2P(SCUPlayCountLeftAction);
DEF_ACTION_2P(SCUGetCountRightAction);
DEF_ACTION_2P(SCUGetCountLeftAction);
DEF_ACTION_2P(SCUGetCountRightNoSuffixAction);
DEF_ACTION_2P(SCUGetCountLeftNoSuffixAction);
DEF_ACTION_3P(SCUGetStringToCharAction);
DEF_ACTION_1P(SCGetNewIdAction);
DEF_ACTION_2P(SCUSpellAction);
DEF_ACTION_2P(SCURandomAction);
DEF_ACTION_1P(SCUSRandomAction);
DEF_ACTION_2P(SCUSAddAction);
DEF_ACTION_2P(SCUSSubAction);
DEF_ACTION_2P(SCUIntAction);
DEF_ACTION_2P(SCUSplitStringAction);
DEF_ACTION_1P(SCUEscapeCRLFAction);
DEF_ACTION_1P(SCUUnescapeCRLFAction);
DEF_ACTION_2P(SCUPlayRingToneAction);
DEF_ACTION_2P(SCEncryptCodeAes128CBC);
DEF_ACTION_2P(SCDecryptCodeAes128CBC);
class DSMRingTone
: public AmRingTone,
public DSMDisposable
{
public:
DSMRingTone(int length, int on, int off, int f, int f2=0)
: AmRingTone(length, on, off, f, f2) { }
~DSMRingTone() { }
};
#endif