diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-29 19:04:52 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-29 19:04:52 +0000 |
commit | 5278f01b463a57ce494781a44ade49d26a02cc87 (patch) | |
tree | 6662f983e5fb8a77ff82e9d41fdad5f234f524aa | |
parent | 789522faebb52c58c785c206f5a46cced306786a (diff) |
- Fix a typo in the argument to Playtones
- use ast_safe_sleep() instead of calling the wait application
(thanks to tilghman for pointing these out!)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@119012 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | apps/app_milliwatt.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/apps/app_milliwatt.c b/apps/app_milliwatt.c index 64dc3857c..b63771c38 100644 --- a/apps/app_milliwatt.c +++ b/apps/app_milliwatt.c @@ -145,7 +145,7 @@ static int old_milliwatt_exec(struct ast_channel *chan) static int milliwatt_exec(struct ast_channel *chan, void *data) { const char *options = data; - struct ast_app *playtones_app, *wait_app; + struct ast_app *playtones_app; struct ast_module_user *u; int res = -1; @@ -161,15 +161,10 @@ static int milliwatt_exec(struct ast_channel *chan, void *data) goto exit_app; } - if (!(wait_app = pbx_findapp("Wait"))) { - ast_log(LOG_ERROR, "The Wait application is required to run Milliwatt()\n"); - goto exit_app; - } - - res = pbx_exec(chan, playtones_app, "1004,1000"); + res = pbx_exec(chan, playtones_app, "1004/1000"); while (!res) { - res = pbx_exec(chan, wait_app, "3600"); + res = ast_safe_sleep(chan, 10000); } res = 0; |