David Vossel
979eb709ae
app_read does not break from prompt loop with user terminated empty string
...
In app.c, ast_app_getdata is called to stream the prompts and receive DTMF input. If ast_app_getdata() receives an empty string caused by the user inputing the end of string character, in this case '#', it should break from the prompt loop and return to app_read, but instead it cycles through all the prompts. I've added a return value for this special case in ast_readstring() which uses an enum I've delcared in apps.h. This enum is now used as a return value for ast_app_getdata().
(closes issue #14279 )
Reported by: Marquis
Patches:
fix_app_read.patch uploaded by Marquis (license 32)
read-ampersanmd.patch2 uploaded by dvossel (license 671)
Tested by: Marquis, dvossel
Review: http://reviewboard.digium.com/r/177/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@180032 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-03-03 23:21:18 +00:00
..
2008-11-20 00:08:12 +00:00
2009-03-02 20:16:51 +00:00
2009-02-25 19:49:46 +00:00
2009-01-22 21:25:46 +00:00
2008-08-10 19:35:50 +00:00
2007-11-21 23:09:02 +00:00
2007-05-24 22:07:50 +00:00
2007-05-24 22:07:50 +00:00
2006-08-21 02:11:39 +00:00
2007-05-24 22:07:50 +00:00
2008-03-04 23:04:29 +00:00
2009-03-03 23:21:18 +00:00
2009-03-03 22:12:02 +00:00
2009-03-03 22:12:02 +00:00
2009-03-03 22:12:02 +00:00
2009-03-03 22:12:02 +00:00
2009-03-03 22:12:02 +00:00
2009-02-25 12:45:30 +00:00
2008-12-05 10:31:25 +00:00
2009-02-12 16:28:06 +00:00
2009-03-02 14:13:45 +00:00
2008-12-12 13:55:30 +00:00
2008-10-30 16:49:02 +00:00
2008-12-04 16:45:06 +00:00
2008-12-13 08:36:35 +00:00
2009-03-03 23:21:18 +00:00
2008-10-14 22:38:06 +00:00
2009-01-29 23:15:20 +00:00
2009-02-17 15:18:55 +00:00
2008-10-10 00:42:13 +00:00
2007-12-11 22:20:22 +00:00
2008-08-05 16:56:11 +00:00
2009-01-06 21:36:44 +00:00
2008-11-04 18:47:20 +00:00
2008-10-31 20:05:46 +00:00
2008-11-29 17:57:39 +00:00
2008-12-22 16:08:13 +00:00
2008-11-25 22:45:59 +00:00
2006-08-21 02:11:39 +00:00
2008-09-12 23:30:03 +00:00
2008-11-29 17:57:39 +00:00
2009-03-03 18:28:46 +00:00
2009-02-26 16:42:36 +00:00
2007-11-16 20:04:58 +00:00
2008-08-06 00:30:53 +00:00
2009-02-18 23:09:58 +00:00
2008-07-21 20:59:03 +00:00
2008-07-21 20:59:03 +00:00
2008-07-21 21:00:47 +00:00
2009-01-30 21:29:12 +00:00
2009-02-21 14:16:44 +00:00
2009-02-17 20:51:10 +00:00
2009-01-17 01:56:36 +00:00
2008-03-04 23:04:29 +00:00
2009-02-26 15:40:10 +00:00
2007-12-27 20:11:20 +00:00
2009-02-10 18:16:31 +00:00
2009-02-17 20:41:24 +00:00
2009-02-16 18:25:57 +00:00
2009-02-19 23:56:50 +00:00
2009-02-10 21:45:14 +00:00
2007-11-16 20:04:58 +00:00
2008-06-19 20:25:37 +00:00
2009-02-20 23:02:35 +00:00
2007-11-16 20:04:58 +00:00
2008-09-03 13:26:43 +00:00
2007-11-21 23:09:02 +00:00
2009-02-24 20:39:57 +00:00
2009-01-21 22:10:02 +00:00
2009-02-23 17:29:16 +00:00
2007-11-21 00:23:49 +00:00
2009-02-10 19:38:26 +00:00
2009-01-12 23:12:30 +00:00
2008-03-04 23:04:29 +00:00
2009-02-18 23:51:35 +00:00
2009-01-13 16:02:13 +00:00
2009-02-04 18:48:06 +00:00
2008-10-10 00:42:13 +00:00
2008-11-01 21:10:07 +00:00
2008-12-16 17:14:01 +00:00
2009-02-17 21:22:40 +00:00
2008-12-13 08:36:35 +00:00
2009-02-12 21:25:14 +00:00
2007-11-19 19:09:03 +00:00
2009-02-18 17:24:07 +00:00
2009-02-03 00:29:49 +00:00
2008-12-31 22:53:55 +00:00