Commit Graph

681 Commits

Author SHA1 Message Date
Travis Cross 7406be6927 Relay cause of hangup on SRTP failure
We hangup the channel after receiving 10 SRTP packets in a row with a
bad auth tag or that are replayed.  Prior to this commit we were
indicating a normal clearing.  When doing interop and looking first at
packet traces, this made freeswitch's behavior look surprising.  With
this commit we'll indicate more loudly what's happening.
2014-06-28 01:18:50 +00:00
Travis Cross 03202e3017 Add fsctl command to summon reincarnation
If you start freeswitch with -reincarnate or -reincarnate-reexec, FS
will restart automatically in the event of an unexpected exit.

Currently, you can cause FS to immediately call exit(0) with `fsctl
shutdown now`, or you can have it call abort() with `fsctl crash`.
Which are both nice, but if you have reincarnation engaged, you really
might want FS to call exit([non-zero]) so the great supervisor
immediately breathes life back into your system.

This is now available via `fsctl shutdown reincarnate now`.
2014-06-10 22:39:27 +00:00
Anthony Minessale 495db48f5a make device state code more accurate 2014-05-31 00:30:59 +05:00
Anthony Minessale a4a792488b add generic keepalive system and implement it in sofia to send MESSAGE or INFO packets in-dialog at specified interval.
Adds app: enable_keepalive 0|<seconds>
This app can be run in the dialplan or with execute_on_* type variables for B-legs.

Adds sofia param: keepalive-method  : defaults to MESSAGE can also be "INFO"
This param sets which SIP method to use.
2014-04-16 06:10:25 +05:00
Anthony Minessale b99ef3af01 add SWITCH_MESSAGE_HEARTBEAT_EVENT indication to execute on a session when session heartbeat fires 2014-04-15 21:22:36 +05:00
Anthony Minessale 4178688b4a add switch_hashtable_insert_destructor so you can insert a pointer into a hash with a custom destructor and use it in spandsp to fix a leak on reloadxml with the tone_descriptor tables and fix a bunch of random tiny leaks etc 2014-04-09 23:26:47 +05:00
Michael Jerris 340b697e1b FS-6341: --resolve add 3pcc invite w/o sdp support for 100rel/PRACK 2014-03-17 12:27:42 -04:00
Anthony Minessale 804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
Anthony Minessale bd4a0d8cbc add a way to tell mod_conference when the rate of the channel has changed due to a codec change so it can reset the resampler and codecs internally 2014-03-07 05:17:47 +05:00
Anthony Minessale 719850e508 FS-5895 --resolve 2014-03-01 04:55:04 +05:00
Anthony Minessale 3dad15f938 FS-5755 part 2
rtp_secure_media=true
--inbound: Accept the srongest supported offered crypto suite, MUST result in a negotiated crypto or aborts.

--outbound: offer all supported crypto suites, MUST result in a negotiated crypto or aborts.

rtp_secure_media=optional
--inbound: Accept the srongest supported offered crypto suite, fall back to no crypto if no valid ones accepted.

--outbound: offer all supported crypto suites, OPTIONAL result in a negotiated crypto falls back to no crypto.

rtp_secure_media=<suite1>,<suiteN>
--inbound:  same behaviour as rtp_secure_media=true with smaller set of acceptable suites.
--outbound: offer supplied crypto suites, same behaviour as rtp_secure_media=true with smaller set of suites.
2014-02-28 02:10:56 +05:00
Anthony Minessale f862c34325 FS-6272 --resolve 2014-02-27 03:24:37 +05:00
Anthony Minessale 5646957c5b FS-5937 2014-02-26 04:06:59 +05:00
Seven Du f7dfe71c4c break CF_MEDIA_PAUSE to CF_AUDIO_PAUSE and CF_VIDEO_PAUSE so we can control them separately 2014-02-25 11:22:53 +08:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale 3ecb504fda FS-6186 --resolve 2014-02-05 07:15:08 +05:00
Peter Olsson 9059fb91cc FS-5045 2014-02-02 12:33:37 +01:00
Anthony Minessale 32b2a45efc add more rtp statistics with several new vars for cdr processing in_jitter_min_variance in_jitter_max_variance in_jitter_loss_rate in_jitter_burst_rate in_mean_interval in_flaw_total in_quality_percentage in_mos 2014-01-30 05:08:34 +05:00
Anthony Minessale 6fef880f12 FS-5675 --resolve 2014-01-24 00:23:58 +05:00
Anthony Minessale e71dabae50 FS-6007 2013-12-31 00:21:51 +05:00
Seven Du 9c72dc950e add CF_MEDIA_PAUSE channel flag to allow waiting for IO before media codec is ready
This could be used at endpoints where signalling and media negotiated separately like in H323
2013-11-22 14:37:37 +08:00
Anthony Minessale ccaa3ae732 FS-5959 2013-11-21 01:38:21 +05:00
Anthony Minessale e2e8a57d9d add ring_wait callstate for devstate interface 2013-10-30 14:08:34 -05:00
Anthony Minessale ce83817318 webrtc tweaks 2013-10-28 23:39:33 +05:00
Anthony Minessale 556e243361 FS-5910 --resolve 2013-10-24 14:29:29 -05:00
Anthony Minessale b1a3a106ec FS-5852 --resolve 2013-10-17 12:18:01 -04:00
Anthony Minessale 2ffe831206 refactor and add more plumbing 2013-10-17 03:58:09 +05:00
Anthony Minessale 4a172402d2 some refactoring and plumbing for 1.4 2013-10-16 02:24:32 +05:00
Michael Jerris 6078451bae FS-5819: add missing status values that we check from apr to the enum so the compiler knows the right type to use for the enum 2013-09-26 13:31:41 -04:00
Anthony Minessale 3c83138bb4 FS-5807 contd 2013-09-20 12:41:16 -05:00
Anthony Minessale d9216daedb Fix regression from ignoring breaks in video rtp sessions and add a flag to force a break when needed 2013-09-12 21:47:54 +05:00
Anthony Minessale 80e5a7cf0a FS-5778 --resolve use switch_core_event_hook_remove_receive_message() to bind to receive_message and case for new SWITCH_MESSAGE_ANSWER_EVENT, SWITCH_MESSAGE_PROGRESS_EVENT, SWITCH_MESSAGE_RING_EVENT 2013-09-11 22:58:00 +05:00
Anthony Minessale ce4cfc97c4 FS-5772 improve odds a little more but the phone is broken here 2013-09-11 02:55:31 +05:00
Anthony Minessale 73646cbaa8 FS-5737 reapply 2013-08-29 22:21:10 +05:00
Anthony Minessale 2e2e4caa45 FS-5737 revert 2013-08-29 22:20:00 +05:00
Anthony Minessale 0d26dbb318 FS-5737 --resolve 2013-08-29 21:03:01 +05:00
Anthony Minessale 5b8a1337d6 FS-5734 documentation will need to be updated to request languages instead of phrases 2013-08-28 21:25:35 +05:00
Raymond Chandler 863e6cfa3f FS-2731 significantly reworked version of Emmanuel's patch to allow subscribing and notifying for the as-feature-event events. we still need a module to handle the FS events for this automatically... coming soon to a repository near you 2013-08-23 15:54:49 -04:00
Anthony Minessale 952c37d940 FS-5296 --resolve 2013-08-22 02:30:59 +05:00
Anthony Minessale 39ad799683 FS-4932 FS-5090 --resolve 2013-07-29 10:18:05 -05:00
Ken Rice 7fb4369932 peak sessions step 1 2013-07-20 20:11:46 -05:00
Ken Rice 5660f90509 add peak SPS for last 5 minutes 2013-07-19 22:40:59 -05:00
Anthony Minessale c510f3f52e add peak sps to stats and a command to reset it 2013-07-19 15:16:42 -05:00
Anthony Minessale 5dbf2b3cf7 refactor some video code 2013-07-11 17:38:24 -05:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Anthony Minessale 702c9af3f9 add novideo app 2013-06-20 13:08:09 -05:00
Anthony Minessale 2fac3a8e83 refactor some of the video passthru code 2013-06-17 19:52:37 -05:00
Anthony Minessale df1bba55ee FS-5498 2013-06-10 19:13:21 -05:00
Anthony Minessale 4240526ce3 add some device-state mechinism to FS to allow tracking of device-specific states where they may have more than one call from the same device 2013-06-05 11:20:11 -05:00
Anthony Minessale 2bafe135c0 remove flag 2013-05-17 16:13:19 -05:00