]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: ring tone on dialing side
authorMathieu Parent <math.parent@gmail.com>
Tue, 27 Jul 2010 22:31:52 +0000 (00:31 +0200)
committerMathieu Parent <math.parent@gmail.com>
Tue, 27 Jul 2010 22:31:52 +0000 (00:31 +0200)
src/mod/endpoints/mod_skinny/mod_skinny.c
src/mod/endpoints/mod_skinny/skinny_server.c

index d27d6dc2c313467c2650258273e232a982c1d91a..79906f63026a7f79c13e4233466e71d39432ea1f 100644 (file)
@@ -637,6 +637,7 @@ int channel_on_routing_callback(void *pArg, int argc, char **argv, char **column
                        send_dialed_number(listener, helper->tech_pvt->caller_profile->destination_number, line_instance, helper->tech_pvt->call_id);
                        skinny_line_set_state(listener, line_instance, helper->tech_pvt->call_id, SKINNY_PROCEED);
                        skinny_session_send_call_info(helper->tech_pvt->session, listener, line_instance);
+                       skinny_session_ring_out(helper->tech_pvt->session, listener, line_instance);
            } else {
                        send_set_lamp(listener, SKINNY_BUTTON_LINE, line_instance, SKINNY_LAMP_ON);
                        skinny_line_set_state(listener, line_instance, helper->tech_pvt->call_id, SKINNY_IN_USE_REMOTELY);
index da9513a5b5a5333f17ab408e4c96f9666da09144..d8ccc6d53bdccdfe128f8a5699ad026ae6a7a9c1 100644 (file)
@@ -597,6 +597,7 @@ switch_status_t skinny_session_ring_out(switch_core_session_t *session, listener
        channel = switch_core_session_get_channel(session);
        tech_pvt = switch_core_session_get_private(session);
 
+       send_start_tone(listener, SKINNY_TONE_ALERT, 0, line_instance, tech_pvt->call_id);
        skinny_line_set_state(listener, line_instance, tech_pvt->call_id, SKINNY_RING_OUT);
        send_select_soft_keys(listener, line_instance, tech_pvt->call_id,
            SKINNY_KEY_SET_RING_OUT, 0xffff);