search for: ast_channel_setopt

Displaying 1 result from an estimated 1 matches for "ast_channel_setopt".

2003 Oct 07
1
[PATCH] allow announcements in app_dial
...{ + announce = 1; + strncpy(announcemsg, ann + 2, sizeof(announcemsg) - 1); + cnt=0; + while(announcemsg[cnt] != ')') { + cnt++; + } + announcemsg[cnt]='\0'; + } } if (resetcdr && chan->cdr) ast_cdr_reset(chan->cdr, 0); @@ -670,6 +683,11 @@ ast_channel_setoption(chan,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0); ast_channel_setoption(peer,AST_OPTION_AUDIO_MODE,&x,sizeof(char),0); } + if (announce && announcemsg) + { + res = ast_streamfile(peer,announcemsg,peer->language); + res = ast_waitstream(peer,""); + } res...