1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-23 03:33:48 +00:00

add queued arg to ring_ready app to send 182

This commit is contained in:
Anthony Minessale 2010-06-15 16:14:39 -05:00
parent 3c688a95f8
commit f4324eb3d4

@ -502,6 +502,13 @@ SWITCH_STANDARD_APP(set_mute_function)
SWITCH_STANDARD_APP(ring_ready_function) SWITCH_STANDARD_APP(ring_ready_function)
{ {
if (!zstr(data)) {
if (!strcasecmp(data, "queued")) {
switch_channel_ring_ready_value(switch_core_session_get_channel(session), SWITCH_RING_READY_QUEUED);
return;
}
}
switch_channel_ring_ready(switch_core_session_get_channel(session)); switch_channel_ring_ready(switch_core_session_get_channel(session));
} }