12925 Commits

Author SHA1 Message Date
Anthony Minessale
a6bb4545eb FS-4293 2012-06-07 13:00:52 -05:00
Jeff Lenk
20f20c8a5c FS-4248 prevent seg for unsupported say method 2012-06-07 10:06:09 -05:00
Anthony Minessale
b4bd30816e FS-4290 --resolve 2012-06-05 12:30:01 -05:00
Michael Jerris
2983003f95 do update to state on channels table at hangup 2012-06-05 13:19:34 -04:00
Michael Jerris
e4caea6ffd fix build error 2012-06-04 16:40:32 -04:00
Raymond Chandler
9b488fbffd pnp 2012-06-04 15:16:30 -04:00
Anthony Minessale
d2bc9a2b12 FS-4137 2012-06-04 09:41:46 -05:00
Anthony Minessale
6a7fe5411f FS-4285 --resolve 2012-06-04 09:24:42 -05:00
Travis Cross
00e32e4ec2 use SWITCH_VERSION_FULL for the sofia user agent 2012-06-01 22:22:44 +00:00
Travis Cross
49ac909065 skypopen/gsmopen should use SWITCH_VERSION_FULL here 2012-06-01 22:22:44 +00:00
Travis Cross
c1b2472781 SWITCH_VERSION_REVISION includes the dash or dot itself 2012-06-01 22:22:44 +00:00
Travis Cross
c98cdb4e04 avoid warning if late negotiation is enabled anyway 2012-06-01 21:44:21 +00:00
Anthony Minessale
879830f61c FS-4167 --resolve 2012-06-01 14:33:15 -05:00
Travis Cross
c6aa2f14ec add config comments about zrtp-passthru and late negotiation 2012-06-01 21:27:33 +00:00
Anthony Minessale
410040218a add warning so users know inbound-zrtp-passthru will enable late negotiation 2012-06-01 14:11:21 -05:00
Anthony Minessale
241bdf4166 FS-4279 FS-3279 --resolve 2012-06-01 13:56:55 -05:00
Anthony Minessale
6d02716ac5 last commit part 2 2012-06-01 13:28:30 -05:00
Anthony Minessale
75aab0ee6c put presence data in state events 2012-06-01 13:21:12 -05:00
Anthony Minessale
f685e4c504 allow ep_codec_string to draw from absolute_codec_string before the profile prefs 2012-06-01 10:06:28 -05:00
Marc Olivier Chouinard
b2d183099f mod_voicemail: Remove the Goodbye prompt when voicemail is disabled when trying to leave a message 2012-05-31 23:36:37 -04:00
Anthony Minessale
693e04a7de FS-4250 please post a new log if this does not work 2012-05-31 09:04:14 -05:00
Ken Rice
5be9857af2 remove mod_fax. this has been deprecated for quite a while 2012-05-31 10:25:49 -05:00
Christopher Rienzo
be2ec29282 Add Maintainer to mod_posix_timer, mod_unimrcp, mod_http_cache 2012-05-31 13:24:24 +00:00
Giovanni Maruzzelli
07bc7ba763 gsmopen and skypopen: updated License headers 2012-05-31 07:41:14 +02:00
Jeff Lenk
39bad5b13e vs2010 reswig for last commit 2012-05-30 15:58:48 -05:00
Anthony Minessale
3e1d68b0a6 FS-4250 --resolve erase replaces header after using it 2012-05-30 13:08:31 -05:00
Anthony Minessale
192030c578 add metadata col to internal registrations table 2012-05-30 13:05:05 -05:00
Anthony Minessale
8bb55ed4bf abstract out originate_signal_bond to a function to avoid confustion and regressions 2012-05-29 13:10:15 -05:00
Anthony Minessale
baf5bbd565 FS-4266 --resolve 2012-05-29 08:42:51 -05:00
Travis Cross
c6b523c65f add inbound-zrtp-passthru to sample configs 2012-05-27 05:58:12 +00:00
Travis Cross
8513be49de enable inbound-late-negotiation in sample configs
We often tell people to enable this for various reasons; it likely
makes a sensible default.
2012-05-27 05:50:47 +00:00
Travis Cross
9b569ec875 cleanup and consolidate mod_sofia configuration example 2012-05-27 05:23:29 +00:00
Anthony Minessale
03b92c9ba1 FS-4251 --resolve just a silly oversight in the code specific to this use case, thanks 2012-05-25 11:02:56 -05:00
Marc Olivier Chouinard
09bef08b83 FS-4254 --resolve
I've changed the variable name from cc_export to cc_export_vars to be more consistant from the original patch
2012-05-25 13:45:02 -04:00
Marc Olivier Chouinard
d7002351d7 mod_voicemail: Make sure vm_fsdb api create the user directory before trying to move file into it 2012-05-25 07:18:55 -04:00
Jeff Lenk
b0e95fdad6 vs2010 reswig mod_managed 2012-05-24 16:03:56 -05:00
Anthony Minessale
9b6702da67 swigall 2012-05-24 13:53:23 -05:00
Anthony Minessale
9daf595443 swigall 2012-05-24 13:52:53 -05:00
Travis Cross
23f8967c32
add enhanced zrtp passthrough (zrtp passthru) mode
ZRTP passthrough mode allows two ZRTP-capable clients to negotiate an
end-to-end security association through FreeSWITCH.  The clients are
therefore able to be certain that the FreeSWITCH instance mediating
the call cannot eavesdrop on their conversation.

Importantly, this capability is maintained across multiple FreeSWITCH
hops.  If widely deployed, this enables a global network architecture
where two people can speak securely with strong cryptographically
protected authentication and confidentiality.

With this commit we implement a zrtp-passthru mode that handles all
the details of the negotiation intelligently.  This mode can be
selected by setting the boolean parameter inbound-zrtp-passthru in the
sofia profile.  This will also force late-negotiation as it is
essential for correctly negotiating an end-to-end ZRTP security
association.

When an incoming call with a zrtp-hash is received and this mode is
enabled, we find the first audio and the first video zrtp-hash in the
SDP and store them as remote values on this channel.  Once a b-leg is
available, we set the local zrtp-hash values on that channel to the
remote zrtp-hash values collected from the a-leg.

Because zrtp-passthru absolutely requires that the channels negotiate
the same codec, we offer to the b-leg only codecs that the a-leg can
speak.  Once the b-leg accepts a codec, we will force that choice onto
the a-leg.

If the b-leg sends us zrtp-hash values in the signaling, we store
those as remote values on the b-leg and copy them to the local values
on the a-leg.

At this point, each leg has the zrtp-hash values from the other, and
we know we can do ZRTP passthrough mode on the call.  We send the
b-leg's zrtp-hash back to the a-leg in the 200 OK.

We then enable UDPTL mode on the rtp streams for both the audio and
the video so that we don't interfere in the ZRTP negotiation.

If the b-leg fails to return a zrtp-hash in the signaling, we set up a
ZRTP security association with the a-leg ourselves, if we are so
equipped.  Likewise, if the a-leg fails to send a zrtp-hash in the
signaling, we attempt to set up a ZRTP security association ourselves
with the b-leg.

The zrtp-passthru mode can also be enabled in the dialplan by setting
the boolean channel variable zrtp_passthru.  If enabled in this
manner, we can't force late-negotiation, so the user would need to be
sure this is configured.

If ZRTP passthrough mode is not enabled in either manner, this change
should have no effect.

Channel variables for each of the various zrtp-hash values are set,
though it is anticipated that there is no good reason to use them, so
they may be removed without warning.  For checking whether zrtp
passthrough mode was successful, we provide the channel variable
zrtp_passthru_active which is set on both legs.

Though not implemented by this commit, the changes here should make it
more straightforward to add correct zrtp-hash values to the signaling
and verify that correct hello hash values are received when FreeSWITCH
is acting as a terminating leg of the ZRTP security association.

A historical note...

This commit replaces the recently-added sdp_zrtp_hash_string method,
commit 2ab1605a8887adc62be1b75f6ef67af87ff080de.

This prior method sets a channel variable from the a-leg's zrtp-hash,
then relies on the dialplan to export this channel variable to the
b-leg, where it is put into the SDP.

While it was a great start and wonderful for testing, this approach
has some drawbacks that motivated the present work:

 * There's no good way to pass the zrtp-hash from the b-leg back to
   the a-leg.  In fact, the implementation seems to send the a-leg's
   zrtp-hash back to the originating client in the 200 OK.  This is
   not correct.

 * To support video, we'd need to have a separate dialplan variable,
   and the dialplan author would need to deal with that explicitly.

 * The API is problematic as it requires the dialplan author to
   understand intricate details of how ZRTP works to implement a
   correct dialplan.  Further, by providing too fine-grained control
   (but at the same time, not enough control) it would limit our
   ability to make the behavior smarter once people started relying on
   this.
2012-05-24 20:39:03 +00:00
Anthony Minessale
8c889aa3a7 add param for scgi to monitor its own server process 2012-05-24 13:07:46 -05:00
Anthony Minessale
1cfd145c17 add support for variable expander to recognize 717 vars as specificly globals 2012-05-24 13:07:26 -05:00
Anthony Minessale
2a257a56a2 default to forking system on non-windows 2012-05-24 13:06:32 -05:00
Travis Cross
343bdec239 remove .vcxproj.user file in tree 2012-05-24 08:04:49 +00:00
Travis Cross
f37b1f0c54 squelch another source of noise ZRTP protection drops 2012-05-24 03:59:09 +00:00
Travis Cross
d470ae239c don't log ZRTP protection drops
At least until we can distinguish the meaningful ones from the noise.
2012-05-24 03:52:51 +00:00
Travis Cross
236b927780 lower log level on ZRTP protection drop
When a call is being setup, a couple seconds of audio may be sent
unencrypted.  This seems to trigger the log message here with every
such packet.
2012-05-24 03:50:42 +00:00
Travis Cross
0c1a95f745 fix gcc 4.7.0 warning related to enum type
This amends commit 7bd9efc7f52a725b7ef9efb64b65873b4bc4330b.

We changed away from using unsigned here because it caused a warning
on Windows.  Using the more specific type, however, is causing a
warning on gcc-4.7 (it notices that the switch statement contains
values not present in the specified enum type).  So we're switching
back to unsigned here while keeping the type casts and hoping that
keeps Windows happy.
2012-05-24 00:48:59 +00:00
Travis Cross
16cf43a68d fix indentation; whitespace 2012-05-23 23:46:21 +00:00
Travis Cross
cb58e81c17 add editor variables to mod_sofia.h 2012-05-23 23:44:44 +00:00
Anthony Minessale
6df4d7cdc5 FS-4245 --resolve 2012-05-23 13:13:32 -05:00