mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user