static int fs_config_add_match_dstype (int *dstype_ret, oconfig_item_t *ci)
{
- DEBUG ("freeswitch plugin: in fs_config_add_match_dstype");
-
int dstype;
if ((ci->values_num != 1) || (ci->values[0].type != OCONFIG_TYPE_STRING))
static int fs_config_add_match (fs_command_t *fs_command, oconfig_item_t *ci)
{
- DEBUG ("freeswitch plugin: in fs_config_add_match");
-
fs_match_t *fs_match;
int status;
int i;
static int fs_config_add_command (oconfig_item_t *ci)
{
- DEBUG ("freeswitch plugin: in fs_config_add_command");
-
fs_command_t *command;
int status;
int i;
int status;
int i;
- DEBUG ("freeswitch plugin: reading config");
-
success = 0;
errors = 0;
static int fs_read_command (fs_command_t *fc)
{
- DEBUG ("freeswitch plugin: in fs_read_command");
-
fs_match_t *fm;
int status;
/* can't the following be done nicer ? */
char *line;
- line = (char *) malloc (strlen(fc->line)+2);
- snprintf(line, strlen(fc->line)+2, "%s\n\n", fc->line);
+ line = (char *) malloc (strlen(fc->line)+3);
+ snprintf(line, strlen(fc->line)+3, "%s\n\n", fc->line);
esl_send_recv(&esl_handle, line);
fc->buffer_fill = 0;
{
fs_command_t *fc;
- DEBUG ("freeswitch plugin: read poll");
-
for (fc = fs_commands_g; fc != NULL; fc = fc->next)
fs_read_command (fc);