Skip to content

Conversation

@Karn
Copy link
Collaborator

@Karn Karn commented Jan 13, 2020

Add to target sip_profiles as follows:

<param name="rtp-timeout-warning-event-threshold" value="300"/>

where the value indicates the number of missed packets upon which to trigger the event. setting it to zero unsets the event trigger.

Example output

2020-03-09 00:11:31.305333 [ERR] switch_rtp.c:7290 Updated missed packets count -- total missed 300
2020-03-09 00:11:31.305333 [ERR] switch_cpp.cpp:1442 Starting event.lua script
2020-03-09 00:11:31.305333 [ERR] switch_cpp.cpp:1442 Event-Name: CUSTOM
Core-UUID: f9b2cc9a-158a-46a1-ace5-1cfa50a9903d
FreeSWITCH-Hostname: platform01
FreeSWITCH-Switchname: platform01
FreeSWITCH-IPv4: 10.243.0.200
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2020-03-09%2000%3A11%3A31
Event-Date-GMT: Mon,%2009%20Mar%202020%2000%3A11%3A31%20GMT
Event-Date-Timestamp: 1583712691305333
Event-Calling-File: switch_rtp.c
Event-Calling-Function: rtp_common_read
Event-Calling-Line-Number: 7292
Event-Sequence: 710
Event-Subclass: rtp_packet_missed
caller-unique-id: 3b751258-5000-4339-84fc-6ee5880b13a4_1
caller-partner-id: 3b751258-5000-4339-84fc-6ee5880b13a4
Type: Missed

freeswitch@platform01>
freeswitch@platform01>
freeswitch@platform01>
2020-03-09 00:11:39.905343 [ERR] switch_rtp.c:7268 Starting to receive bytes again
2020-03-09 00:11:39.905343 [ERR] switch_cpp.cpp:1442 Starting event.lua script
2020-03-09 00:11:39.905343 [ERR] switch_cpp.cpp:1442 Event-Name: CUSTOM
Core-UUID: f9b2cc9a-158a-46a1-ace5-1cfa50a9903d
FreeSWITCH-Hostname: platform01
FreeSWITCH-Switchname: platform01
FreeSWITCH-IPv4: 10.243.0.200
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2020-03-09%2000%3A11%3A39
Event-Date-GMT: Mon,%2009%20Mar%202020%2000%3A11%3A39%20GMT
Event-Date-Timestamp: 1583712699905343
Event-Calling-File: switch_rtp.c
Event-Calling-Function: rtp_common_read
Event-Calling-Line-Number: 7270
Event-Sequence: 720
Event-Subclass: rtp_packet_missed
caller-unique-id: 3b751258-5000-4339-84fc-6ee5880b13a4_1
caller-partner-id: 3b751258-5000-4339-84fc-6ee5880b13a4
Type: Resumed

freeswitch@platform01>

@Karn Karn force-pushed the event-on-no-rtp branch from 0c67cd5 to 974dc08 Compare March 8, 2020 03:15
@Karn Karn changed the title Log the boundaries of silence generation Create an event when there are more than a given number of missed packets. Mar 8, 2020
@Karn Karn force-pushed the event-on-no-rtp branch from 5965adb to 9a2e931 Compare July 25, 2020 21:28
@Karn Karn force-pushed the event-on-no-rtp branch from 9a2e931 to 018b1d6 Compare July 25, 2020 21:42
@Karn Karn changed the base branch from v1.8 to master July 25, 2020 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants