diff options
author | Mark Michelson <mmichelson@digium.com> | 2015-07-29 12:23:43 -0500 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2015-07-29 12:27:18 -0500 |
commit | 8fb8988fd4f879af776615388fefa313e834f8ff (patch) | |
tree | bc51212715b2b46b85957df53cb1d2315da9c1c4 /main/channel.c | |
parent | 687597ca8c2412f79b79f9b13e17f3ec0ff0ce0c (diff) |
Add a test event for inband ringing.
This event is necessary for the bridge_wait_e_options test to be able to
confirm that ringing is being played on the local channel that runs the
BridgeWait() application with the e(r) option.
ASTERISK-25292 #close
Reported by Kevin Harwell
Change-Id: Ifd3d3d2bebc73344d4b5310d0d55c7675359d72e
Diffstat (limited to 'main/channel.c')
-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 268f4cd51..25badf38d 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); } |