diff options
author | Joshua Colp <jcolp@digium.com> | 2015-07-30 16:56:00 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-07-30 16:56:00 -0500 |
commit | 9be856e3c669b65db095dd2cdd618983508de296 (patch) | |
tree | 8a6c07542e5c67e5413d252cd396ae662442c37e | |
parent | 48698a5e21d7307f61b5fb2bd39fd593bc1423ca (diff) | |
parent | 10ba72a9279c591e800ad2656d367b881f73203d (diff) |
Merge "Add a test event for inband ringing." into 13
-rw-r--r-- | main/channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c index 3f6e0eef2..8c1a26eb7 100644 --- a/main/channel.c +++ b/main/channel.c @@ -4656,6 +4656,11 @@ int ast_indicate_data(struct ast_channel *chan, int _condition, /* We have a tone to play, yay. */ ast_debug(1, "Driver for channel '%s' does not support indication %u, emulating it\n", ast_channel_name(chan), condition); res = ast_playtones_start(chan, 0, ts->data, 1); + if (!res) { + ast_test_suite_event_notify("RINGING_INBAND", + "Channel: %s\r\n", + ast_channel_name(chan)); + } ts = ast_tone_zone_sound_unref(ts); } |