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
+19
View File
@@ -31,6 +31,25 @@
*/
#include <switch_utils.h>
static char RFC2833_CHARS[] = "0123456789*#ABCDF";
SWITCH_DECLARE(char) switch_rfc2833_to_char(int event)
{
return (event > -1 && event < sizeof(RFC2833_CHARS)) ? RFC2833_CHARS[event] : '\0';
}
SWITCH_DECLARE(int) switch_char_to_rfc2833(char key)
{
char *c;
for (c = RFC2833_CHARS; *c ; c++) {
if (*c == key) {
return (c - RFC2833_CHARS);
}
}
return -1;
}
SWITCH_DECLARE(unsigned int) switch_separate_string(char *buf, char delim, char **array, int arraylen)
{
int argc;