[Asterisk-cvs] asterisk/apps app_dial.c,1.67,1.68
markster at lists.digium.com
markster at lists.digium.com
Wed May 19 20:16:36 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv27155/apps
Modified Files:
app_dial.c
Log Message:
Merge Mike's announcement enhancements
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- app_dial.c 18 May 2004 18:27:55 -0000 1.67
+++ app_dial.c 20 May 2004 00:29:09 -0000 1.68
@@ -418,6 +418,7 @@
char *stack,*var;
int play_to_caller=0,play_to_callee=0;
int playargs=0;
+ int digit = 0;
if (!data) {
ast_log(LOG_WARNING, "Dial requires an argument (technology1/number1&technology2/number2...|optional timeout|options)\n");
@@ -837,11 +838,16 @@
// Now Stream the File
if (!res)
res = ast_streamfile(peer,announcemsg,peer->language);
- if (!res)
- res = ast_waitstream(peer,"");
-
+ if (!res) {
+ digit = ast_waitstream(peer, AST_DIGIT_ANY);
+ }
// Ok, done. stop autoservice
res = ast_autoservice_stop(chan);
+ if (digit > 0 && !res)
+ res = ast_senddigit(chan, digit);
+ else
+ res = digit;
+
} else
res = 0;
More information about the svn-commits
mailing list