More PRI/SIP gateway stuff

**ATTENTION** you will need to libs/jrtplib/.complete ; make installall 
to get it to compile on existing builds as the jrtplib required changes.

Added teletone DTMF to mod_wanpipe and rfc2933 DTMF to mod_exosip
Added temporary poor man's daemon
freeswitch -nc > /var/log/freeswitch.log

then it will await a HUP




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@659 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2006-02-23 22:41:08 +00:00
parent 4c9d54d474
commit 01fd1c3af4
8 changed files with 213 additions and 42 deletions
+2
View File
@@ -44,6 +44,8 @@ extern "C" {
#define SWITCH_RECCOMMENDED_BUFFER_SIZE 131072
#define SWITCH_MAX_CODECS 30
#define SWITCH_MAX_STATE_HANDLERS 30
#define SWITCH_TRUE 1
#define SWITCH_FALSE 0
/*!
\enum switch_ivr_option_t
+30
View File
@@ -44,6 +44,8 @@ extern "C" {
#include <switch.h>
#ifndef snprintf
#define snprintf apr_snprintf
#endif
@@ -51,6 +53,34 @@ extern "C" {
#define vsnprintf apr_vsnprintf
#endif
/*!
\brief Evaluate the truthfullness of a string expression
\param expr a string expression
\return true or false
*/
#define switch_true(expr)\
(expr && ( !strcasecmp(expr, "yes") ||\
!strcasecmp(expr, "on") ||\
!strcasecmp(expr, "true") ||\
atoi(expr))) ? SWITCH_TRUE : SWITCH_FALSE
/*!
\brief Return the RFC2833 character based on an event id
\param event the event id to convert
\return the character represented by the event or null for an invalid event
*/
SWITCH_DECLARE(char) switch_rfc2833_to_char(int event);
/*!
\brief Return the RFC2833 event based on an key character
\param the charecter to encode
\return the event id for the specified character or -1 on an invalid input
*/
SWITCH_DECLARE(int) switch_char_to_rfc2833(char key);
/*!
\brief Duplicate a string
*/