]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5384 enable the flash indicator on ring
authorNathan Neulinger <nneul@neulinger.org>
Wed, 16 Jul 2014 15:42:30 +0000 (10:42 -0500)
committerNathan Neulinger <nneul@neulinger.org>
Wed, 16 Jul 2014 15:42:30 +0000 (10:42 -0500)
src/mod/endpoints/mod_skinny/skinny_server.c
src/mod/endpoints/mod_skinny/skinny_tables.c
src/mod/endpoints/mod_skinny/skinny_tables.h

index cd5f10b03f6a691498a43630fa08c780c4cec7e1..26566423f003376679efe3fc9977fac6f9dff3fa 100644 (file)
@@ -649,7 +649,7 @@ int skinny_ring_lines_callback(void *pArg, int argc, char **argv, char **columnN
                        send_start_tone(listener, SKINNY_TONE_CALLWAITTONE, 0, line_instance, helper->tech_pvt->call_id);
                        send_stop_tone(listener, line_instance, helper->tech_pvt->call_id);
                } else {
-                       /* silent ring - would like to just flash the lamp */
+                       send_set_ringer(listener, SKINNY_RING_FLASHONLY, SKINNY_RING_FOREVER, 0, helper->tech_pvt->call_id);
                }
                switch_channel_ring_ready(channel);
        }
index b4917bf47581f476abfcd2f343f3faa3e692cf23..87d0412dfe62603e24d8083da2c9c419faf032c7 100644 (file)
@@ -195,6 +195,7 @@ SKINNY_DECLARE_STR2ID(skinny_str2tone, SKINNY_TONS, -1)
                {SKINNY_RING_INSIDE, "RingInside"},
                {SKINNY_RING_OUTSIDE, "RingOutside"},
                {SKINNY_RING_FEATURE, "RingFeature"},
+               {SKINNY_RING_FLASHONLY, "RingFlashOnly"},
                {0, NULL}
        };
        SKINNY_DECLARE_ID2STR(skinny_ring_type2str, SKINNY_RING_TYPES, "RingTypeUnknown")
index f766cbe13d62043665579050950be0948edb3f97..40abce5c711366e8f733657117cae801cf258fc3 100644 (file)
@@ -115,9 +115,10 @@ enum skinny_ring_type {
        SKINNY_RING_OFF = 1,
        SKINNY_RING_INSIDE = 2,
        SKINNY_RING_OUTSIDE = 3,
-       SKINNY_RING_FEATURE = 4
+       SKINNY_RING_FEATURE = 4,
+       SKINNY_RING_FLASHONLY = 5
 };
-extern struct skinny_table SKINNY_RING_TYPES[5];
+extern struct skinny_table SKINNY_RING_TYPES[6];
 const char *skinny_ring_type2str(uint32_t id);
 uint32_t skinny_str2ring_type(const char *str);
 #define SKINNY_PUSH_RING_TYPES SKINNY_DECLARE_PUSH_MATCH(SKINNY_RING_TYPES)