forked from Mirrors/freeswitch
FS-5384 enable the flash indicator on ring
This commit is contained in:
parent
6f439d3741
commit
b6566b8354
@ -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);
|
||||
}
|
||||
|
@ -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")
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user