diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-07 19:13:00 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-07 19:13:00 +0000 |
commit | a21860310e9d59b024eaa4cd22e6d85dd8845941 (patch) | |
tree | 09d54e0b28af50c87bac02b87c93c36feb721cf9 /apps/app_playback.c | |
parent | ceace6fb1143f67f0b266c66e63f391840e0e89d (diff) |
convert a bunch of apps to use ast_goto_if_exists() (issue #5138)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6533 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_playback.c')
-rwxr-xr-x | apps/app_playback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/app_playback.c b/apps/app_playback.c index 7e7cabe5b..ce2ff4a34 100755 --- a/apps/app_playback.c +++ b/apps/app_playback.c @@ -93,8 +93,7 @@ static int playback_exec(struct ast_channel *chan, void *data) ast_stopstream(chan); } else { ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", chan->name, (char *)data); - if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->cid.cid_num)) - chan->priority+=100; + ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101); res = 0; } front = back; |