Displaying 1 result from an estimated 1 matches for "ast_option_audio_mod".
Did you mean:
ast_option_audio_mode
2003 Oct 07
1
[PATCH] allow announcements in app_dial
...rncpy(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 = ast_bridge_call(chan, peer...