16459 Commits

Author SHA1 Message Date
Travis Cross
2cf6fd728c Remove dead assignments in switch.c 2014-08-22 01:21:43 +00:00
Travis Cross
4f81e5942a Handle null argv in switch.c 2014-08-22 01:09:05 +00:00
Travis Cross
e2d67d4ead Remove dead assignment 2014-08-22 00:58:53 +00:00
Travis Cross
b5a87aea7f Avoid using undefined memory in switch_fulldate_cmp
The `switch_split_date` and `switch_split_time` functions only set as
many variables as they believe exist values in the input string.
Since we didn't have defaults assigned we would read undefined stack
memory if the input string didn't contain e.g. an hour.

With this commit, we use 1970 if no year is present, January if no
month is present, the first day of the month if none is given, and
zero for each of a missing hour, minute, or second.
2014-08-22 00:47:22 +00:00
Travis Cross
bf42dd65f1 Refactor switch_fulldate_cmp
We're moving the variable declarations down to the smallest possible
scope (a good idea in general) so we can address the use of undefined
memory by the function in a later commit.
2014-08-22 00:43:27 +00:00
Travis Cross
b2f59dd200 Add warning when using HTTPS with mod_curl
mod_curl currently does not verify the authenticity of the peer's
certificate, and does not verify whether the common name on the
certificate matches the server.  This makes mod_curl initiated TLS
connections completely insecure.  We should fix this, but until we do,
we'll warn people that it's not doing what they may think it is.

ref: http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html
ref: http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html
2014-08-21 22:24:04 +00:00
Brian West
6e4cea308d Merge pull request #28 in FS/freeswitch from ~STANGOR/freeswitch:master to master
* commit 'c736cf2f22e4f0a5d490db995ebaed69b9963daa':
  Add sofia gateway parameter "destination-prefix"
  FS-5497 add sofia gateway parameter destination-prefix in case you need to send Invites with prefix only to this gateway
2014-08-21 13:59:37 -05:00
Giovanni Maruzzelli
2ada8286f3 skypopen: new skype client in install/install.pl 2014-08-21 20:52:14 +02:00
Chris Rienzo
0ba1b1efea mod_graylog2: channel variables can now be automatically added as gelf additional fields in logs w/ session UUID 2014-08-21 11:06:13 -04:00
Nathan Neulinger
5f6db1db3e mod_skinny: roll back, these are not expected to be null terminated, they are fixed length 2014-08-20 14:50:46 -05:00
Nathan Neulinger
84bc50e4ad mod_skinny: fix potential buffer size issue CID: 1214145 1214146 2014-08-20 14:32:02 -05:00
Travis Cross
f2ca3c5211 Decode params to curl_sendfile
`curl_sendfile` generates a multipart message with Content-Type:
multipart/form-data with no separate Content-Type headers in the parts
for each non-file argument.  These parts therefore default to
text/plain.  However, prior to this commit, we were putting the URL
encoded POST data into these parts, which is not correct.  We should
be putting raw text into the parts.

With this commit, we urldecode each argument key and value before
composing the multipart message.

See:

  http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
2014-08-20 10:37:24 +00:00
Stan Gor
64060c7dbd Add sofia gateway parameter "destination-prefix"
FS-5497 add sofia gateway parameter destination-prefix in case you need to send Invites to your provider with prefix only to this gateway
2014-08-19 11:54:09 -07:00
Anthony Minessale
7bbdbadb42 tweak some cid display issues 2014-08-19 03:25:28 +05:00
Giovanni Maruzzelli
eccf505a3b testing new hook FS-6677 #Waiting #comment this is a test 2014-08-18 21:55:03 +02:00
Giovanni Maruzzelli
c086f9647b testing new hook TKT-6677 #Waiting #comment this is a test 2014-08-18 21:46:40 +02:00
Giovanni Maruzzelli
733db22f1d testing new hook FS-6677 #new_state #comment this is a test 2014-08-18 21:39:56 +02:00
Seven Du
ecbf662ce7 FS-6738 #comment fix mac build introduced by 0ee48c2 2014-08-16 10:08:39 +08:00
Anthony Minessale
5173471b06 nm 2014-08-16 02:00:38 +05:00
Anthony Minessale
cb928cdf37 fix typo 2014-08-16 01:52:03 +05:00
Anthony Minessale
0ee48c2210 FS-6738 #comment can you test this patch and see if the tcp keepalive can detect the timeout 2014-08-16 00:43:25 +05:00
William King
3e5933a57b Merge pull request #21 in FS/freeswitch from ~PFOURNIER/freeswitch:refer_event to master
* commit 'd1abf274d53958566e4a23e02b6168061c098827':
  REFER_EVENT is missing from the message names array
2014-08-14 14:44:45 -05:00
Brian West
8ebfca9e3d Merge pull request #24 in FS/freeswitch from ~STANGOR/freeswitch:master to master
* commit '4d0b875d4e7b2ee1fc8f30591b5c98c61080fae5':
  fix mod_fifo presence https://jira.freeswitch.org/browse/FS-6732
2014-08-14 14:02:27 -05:00
Peter Wu
76e6be2fad Fix copy-paste error in '-certs' error message 2014-08-13 18:43:39 +00:00
Mike Jerris
5eb01b519e Merge pull request #25 in FS/freeswitch from ~STEVEAYRE/freeswitch:master to master
* commit '05ef18948d3870c4afcd82ce32e164e4a152a8e1':
  add uptime api to mod_commands
2014-08-13 13:37:17 -05:00
Stan Gor
4d0b875d4e Merging in latest from upstream (FS/freeswitch:refs/heads/master)
* commit 'b60df39b96b05b6c3cf220d5049ea5fc20dfa6e1':
  mod_http_cache: fix configuration so that carriage returns or other whitespace is OK around S3 keys
  mod_http_cache: fixed S3 URL parser to allow mybucketsubdomain.com.s3.amazonaws.com
2014-08-12 22:08:44 -05:00
Chris Rienzo
b60df39b96 mod_http_cache: fix configuration so that carriage returns or other whitespace is OK around S3 keys 2014-08-12 16:28:42 -04:00
Chris Rienzo
3b45ef90ae mod_http_cache: fixed S3 URL parser to allow mybucketsubdomain.com.s3.amazonaws.com 2014-08-12 16:07:56 -04:00
Steven Ayre
05ef18948d add uptime api to mod_commands 2014-08-12 14:06:15 +01:00
stangor
c966dc865a fix mod_fifo presence
https://jira.freeswitch.org/browse/FS-6732
2014-08-11 14:08:10 -07:00
Brian West
aeced06c6c Merge pull request #23 in FS/freeswitch from ~DDRAGIC/freeswitch:fix_mod_blacklist to master
* commit 'fe2a6e8acae2e8104c9480361b1561ee3f120bf1':
  FS-6620 mod_blacklist fix not deleting entries from list
2014-08-11 14:54:42 -05:00
Anthony Minessale
e3e84a7820 FS-6679 #resolve 2014-08-09 02:13:00 +05:00
Travis Cross
8414c498cf Fix line endings per .gitattributes 2014-08-08 15:24:42 +00:00
Anthony Minessale
1e9505d853 FS-6692 #resolve 2014-08-06 21:35:53 +05:00
Anthony Minessale
8135509803 fix early media vs answer race 2014-08-06 21:09:03 +05:00
Brian West
3691279e8a FS-6727 allow 1.1 and 1.2, They should probably fix that soon 2014-08-06 08:52:21 -05:00
Patrice Fournier
d1abf274d5 REFER_EVENT is missing from the message names array
REFER_EVENT has been added to switch_core_session_message_types_t
a while ago, but was never added to the message_names[] related array.
2014-08-06 00:04:28 -04:00
Anthony Minessale
b2162142f3 FS-6667 #comment block sending audio when dmachine is reading 2014-08-06 01:21:34 +05:00
Anthony Minessale
52ed525b97 fix channel count in embedded file formats 2014-08-06 00:25:04 +05:00
Anthony Minessale
810c0881b5 FS-6713 #comment remove debug 2014-08-05 22:14:10 +05:00
Nathan Neulinger
92b95c2d05 mod_skinny: fix calloc argument ordering CID: 1214236 1214235 2014-08-05 11:52:52 -05:00
Nathan Neulinger
d0b49f95de mod_skinny: calloc param ordering 1214234 2014-08-05 11:45:38 -05:00
Nathan Neulinger
bca7520ad2 mod_skinny: fix potential NPE CID: 1223252 2014-08-05 11:39:17 -05:00
Nathan Neulinger
e84c964fb9 mod_skinny: pointless check CID 1060963 2014-08-05 11:30:15 -05:00
Nathan Neulinger
bea603b7fa mod_skinny: fix potential overflow CID: 1060947 2014-08-05 11:26:20 -05:00
Nathan Neulinger
5e1e3565db mod_skinny: start using switch_copy_string so it uses apy_cpystrn - CID: 1214145 1214146 1214131 1214132 1214133 1214134 1214135
1214147 1214148 1214149 1214150 1214151 1214152 1214153 1214154 1214155 1214138 1214139 1214143 1214144

Forces null termination of the destination string.
2014-08-05 11:18:24 -05:00
Nathan Neulinger
bb52587b81 mod_skinny: CID:1060950 remove some dead debugging code 2014-08-05 11:10:47 -05:00
Anthony Minessale
1960533260 FS-6713 #resolve 2014-08-04 23:50:31 +05:00
Anthony Minessale
82330aa5d0 save remote caller id 2014-08-04 23:08:29 +05:00
Dušan Dragić
fe2a6e8aca FS-6620 mod_blacklist fix not deleting entries from list 2014-08-03 11:51:46 +02:00