15596 Commits

Author SHA1 Message Date
Travis Cross
5aab272bb3 Refactor and fix edge cases in switch_split_user_domain
We were incorrectly parsing usernames and domains starting with "sip"
if there was no sip: or sips: scheme in the string.

We were also incorrectly parsing usernames containing a colon even if
a scheme was given.

This also refactors the function for hopefully greater clarity.
2014-03-02 09:20:59 +00:00
Raymond Chandler
b0d7551c80 use newSQL 2014-03-02 03:13:01 -05:00
Travis Cross
b22aa39e66 Fix switch_split_user_domain handling of sips: URLs
In commit 7efeabbd88e81ee368de6ced32fed06c8035097b Anthony fixed the
handling of sip:example.com and sips:example.com URLs, however he
introduced a regression causing URLs starting with 's' to be parsed
incorrectly.

In commit 7d2456ea27c092825c8d614ac6eee71547374464 Brian fixed the
regression, but introduced a regression causing sips:example.com URLs
to be handled incorrectly.
2014-03-02 08:11:11 +00:00
Jeff Lenk
015ff5d787 windows fix last commit 2014-03-01 15:40:58 -06:00
Jeff Lenk
f6e591de4a windows only - add our own thread priority ability for core threads please test 2014-03-01 14:37:04 -06:00
Brian West
02dd7772ba This previous change fixes the issue on 64bit but if trying to compile a 32bit build you end up breaking the types on 32bit.
Commandline Fu for dumping the various defines for gcc are as follows:

gcc -m64 -dM -E - <<<''

gcc -m32 -dM -E - <<<''
2014-03-01 10:20:48 -06:00
Brian West
dd8c323fcf FS-6226Prevent DTMF from traversing bridged channels, but still allow me to send DTMF via API or dp app (uuid_send_dtmf or send_dtmf) 2014-03-01 09:58:43 -06:00
Peter Olsson
8b57411bdd FS-6290 --resolve 2014-03-01 10:03:56 +01:00
Peter Olsson
ef278822d4 Ignore generated file 2014-03-01 09:54:57 +01:00
Anthony Minessale
719850e508 FS-5895 --resolve 2014-03-01 04:55:04 +05:00
Anthony Minessale
2c1a25d5f8 add sip_force_nat_mode so you can engange nat mode manually 2014-03-01 04:43:07 +05:00
Travis Cross
55d01d3def Send silent packets when idle with SRTP
Originally we did the same thing with SRTP that we do without SRTP,
which is to simply not send packets when e.g. sleep is called.

At commits d63323977fa611b141441f12af9a94ec19b5f829 and
5259814aee16ede974456490a79e8a98de1d6d2e we enabled sending silence
packets with comfort noise when SRTP is active.  We appear to have
done this for interop purposes; many devices can't handle gaps in the
stream of SRTP packets.

But our current comfort noise implementation doesn't take the codec
rate into account (FS-6291), so on 16kHz codecs the constant we chose
created an annoying level of static between sound file playback.

With this commit we preserve the sending of SRTP packets during idle
periods, but make those packets completely silent.

Thanks-to: Anthony Minessale <anthm@freeswitch.org>

FS-5053 --resolve
2014-02-28 23:13:37 +00:00
Brian West
93c05d9c5f FS-4502 --resolve 2014-02-28 16:23:37 -06:00
Brian West
5b26558e56 FS-5207 --resolve 2014-02-28 16:11:22 -06:00
Brian West
1d36f5b219 FS-5915 --resolve 2014-02-28 16:09:59 -06:00
Anthony Minessale
8cee05987e check the jitter stats after the jitter buffer when its enabled 2014-03-01 02:50:17 +05:00
Anthony Minessale
8862fbc3a1 FS-5461 --resolve you tricked me I said make 1 patch with all of it 2014-03-01 00:27:23 +05:00
Anthony Minessale
5ed78f8987 FS-4441 FS-5461 --resolve 2014-03-01 00:23:40 +05:00
Anthony Minessale
2dc71d2d26 add sip_refer_to_params 2014-03-01 00:13:35 +05:00
Travis Cross
9cf864ba2b Deal with read errors in switch_xml.c
Unlike fread(3), read(3) will return -1 on error.  We were assigning
the result of read to a potentially unsigned variable, and passing the
result down to switch_xml_parse_str() where it would end up
determining how many bytes to malloc(3).
2014-02-28 18:33:31 +00:00
Anthony Minessale
b82df8a7da FS-6287 this should either prevent the problem or spell out what is causing it. please test 2014-02-28 23:23:30 +05:00
Anthony Minessale
15f4bd44ca FS-5886 --resolve add NDLB_broken_opus_sdp which must be set as a global variable in var.xml or switch.conf.xml to enable broken opus mode for back compat with counterpath mobile 2014-02-28 21:57:47 +05:00
Anthony Minessale
65a6ba3c61 FS-6289 --resolve regression from 1fba654845c8202bf84c58b203a3bc9624164c4e 2014-02-28 21:43:46 +05:00
Jeff Lenk
f882af93c6 FS-3588 remove packages.config 2014-02-28 07:44:21 -06:00
Tamas Cseke
b303e722eb improve messaging performance of mod_erlang_event FS-3347 --resolve 2014-02-28 11:32:08 +01:00
Anthony Minessale
f751455ec8 fix race condition where a transferring leg could be hungup on by the bridge partner from the previous bridge because of hangup held leg detection. The leg which was hungup when held doesn't realize the other leg has already moved on from the bridge because it was transferred and is already on its way to connect to the new destination 2014-02-28 07:15:47 +05:00
Brian West
4516668db9 FS-6209 don't change behavior from defaults if the values aren't defined 2014-02-27 15:29:25 -06:00
Brian West
26e96effe9 FS-6209 failing to load without a conf is bad 2014-02-27 15:25:37 -06: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
Brian West
a6deebffb5 FS-5934 force_transfer_context not being honored if you happen to do an attended this patch makes perfect sense. 2014-02-27 14:10:44 -06:00
Brian West
7b5d17802f FS-6268 usinga macro to find the rtp_session_name its better on the eyes 2014-02-27 10:42:43 -06:00
Tamas Cseke
369206cf4f FS-5991 --resolve 2014-02-27 08:13:57 +01:00
Jeff Lenk
bdbb6c1401 windows wftb fix excess cpu usage 2014-02-26 22:07:02 -06:00
Jeff Lenk
727ce93e34 FS-6271 damn these would'nt show up at the same time 2014-02-26 20:23:39 -06:00
Jeff Lenk
5cae6b29fd FS-6271 windows compiler warning 2014-02-26 20:14:27 -06:00
Jeff Lenk
b0c319f662 FS-6271 fix for windows 2014-02-26 19:19:20 -06:00
Anthony Minessale
f862c34325 FS-6272 --resolve 2014-02-27 03:24:37 +05:00
William King
3575a07c40 FS-6271 --resolve Adding support for smoothing the min-cpu-idle by X number of seconds. Adds the cpu-idle-smoothing-depth into the conf/autoload_configs/switch.conf.xml configs with a default value of 30 seconds. 2014-02-26 12:36:50 -08:00
Anthony Minessale
3e499da329 FS-6275 --resolve I don't think this is a problem with latest firefox + latest master but i'll ensure it with this change. Anyone into testing webrtc should always use master until an official 1.4 is released. 2014-02-26 21:35:38 +05:00
Brian West
378caebc9a fix --disable-srtp 2014-02-26 08:05:22 -06:00
Tamas Cseke
41fbb451a1 FS-5834 --resolve 2014-02-26 13:42:20 +01:00
Tamas Cseke
e398ede28b FS-5975 --resolve 2014-02-26 13:34:50 +01:00
Tamas Cseke
a75a0ab919 Add cdr queueing
Can be enabled with 'queue-capacity' param
Cdrs can be pushed to the queue and posted in a separate
thread to avoid bllocking the session with a slow web server
2014-02-26 13:19:33 +01:00
Brian West
45e19b75dd FS-6270 add client_port to SIP Registration events 2014-02-25 21:49:35 -06:00
Anthony Minessale
5646957c5b FS-5937 2014-02-26 04:06:59 +05:00
Brian West
33780fca07 FS-5937 now with more working 2014-02-25 09:55:21 -06:00
Brian West
463f32c4e3 FS-5937: i need to build a test rig for this, go go gadget iphone commit 2014-02-24 23:44:44 -06:00
Jeff Lenk
7aff64b2d2 fix compiler warning vs2010 2014-02-24 23:29:15 -06: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
Marc Olivier Chouinard
f18fe5770d FS-6151 --resolve Make the module unloadable 2014-02-24 21:21:51 -05:00