]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add queued arg to ring_ready app to send 182
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jun 2010 21:14:39 +0000 (16:14 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 15 Jun 2010 21:14:39 +0000 (16:14 -0500)
src/mod/applications/mod_dptools/mod_dptools.c

index d6020f1314a764e88254d6c356cdb5f02a489c82..07d99cad4dcdeb0ae596134e9898167fbb4a0ba4 100755 (executable)
@@ -502,6 +502,13 @@ SWITCH_STANDARD_APP(set_mute_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));
 }