提交 5ab40e20 authored 作者: Tristan Mahé's avatar Tristan Mahé

woops

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@15081 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 f182c268
...@@ -492,7 +492,6 @@ static int handle_set_variable(esl_handle_t *eslC,int fd,int *argc, char *argv[] ...@@ -492,7 +492,6 @@ static int handle_set_variable(esl_handle_t *eslC,int fd,int *argc, char *argv[]
return res; return res;
} }
/* /*
* STREAM FILE agi cmd * STREAM FILE agi cmd
* TODO: rewrites with good string handling :) * TODO: rewrites with good string handling :)
...@@ -508,7 +507,7 @@ static int handle_streamfile(esl_handle_t *eslC,int fd,int *argc, char *argv[]) ...@@ -508,7 +507,7 @@ static int handle_streamfile(esl_handle_t *eslC,int fd,int *argc, char *argv[])
if (*argc < 3 || *argc > 5) if (*argc < 3 || *argc > 5)
return -1; return -1;
if (argv[3]) { if (argv[3] && strncasecmp("\"\"",argv[3],2) ) {
/* We should set playback_terminators var there */ /* We should set playback_terminators var there */
buf = malloc(strlen(argv[3])+22); buf = malloc(strlen(argv[3])+22);
memset(buf,0,strlen(argv[3])+22); memset(buf,0,strlen(argv[3])+22);
...@@ -540,7 +539,7 @@ static int handle_streamfile(esl_handle_t *eslC,int fd,int *argc, char *argv[]) ...@@ -540,7 +539,7 @@ static int handle_streamfile(esl_handle_t *eslC,int fd,int *argc, char *argv[])
free(buf); free(buf);
buf=NULL; buf=NULL;
if (reply) { if (reply) {
res = fill_buffer_from_header(eslC->info_event,&buf,"variable_playback_samples","%d"); res = fill_buffer_from_header(reply,&buf,"variable_playback_samples","%s");
if ( res <= 0 ) if ( res <= 0 )
offset = 0; offset = 0;
else else
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论