aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-15 22:39:01 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-15 22:39:01 +0000
commita03b20a405bfe3d0e78b3276b3133f4968774d12 (patch)
tree40b68ab88670f5987b8f8fd8f10fbc8311e7c50b /channel.c
parente74e5f7785c5d3482ed0b453a9abaac29de3efc8 (diff)
Handle progress in chan_sip properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1025 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channel.c b/channel.c
index 3dcd13cc4..fd684d489 100755
--- a/channel.c
+++ b/channel.c
@@ -1148,8 +1148,9 @@ int ast_indicate(struct ast_channel *chan, int condition)
if (ts && ts->data[0]) {
ast_log(LOG_DEBUG, "Driver for channel '%s' does not support indication %d, emulating it\n", chan->name, condition);
ast_playtones_start(chan,0,ts->data, 1);
- }
- else {
+ } else if (condition == AST_CONTROL_PROGRESS) {
+ /* ast_playtones_stop(chan); */
+ } else {
/* not handled */
ast_log(LOG_WARNING, "Unable to handle indication %d for '%s'\n", condition, chan->name);
return -1;