Commit Graph

12236 Commits

Author SHA1 Message Date
Dušan Dragić d5f9de4fa3 mod_gsmopen: add AT+COPS support to get operator name.
For now expose the info in gsmopen_dump and events.
2014-09-11 22:33:28 +02:00
Travis Cross 5bd35471f7 Add var to suppress `Privacy: none` header
Apparently the MetaSwitch guys incorrectly interpret `Privacy: none`
as `Privacy: id`.

ref: RFC 3325

Reported-by: Stéphane Alnet <stephane@shimaore.net>

FS-6817 #resolve
2014-09-11 19:56:19 +00:00
Anthony Minessale 7144b25254 obey sip_copy_custom_headers on bye 2014-09-12 00:37:19 +05:00
Travis Cross 622e0e1a6f Check for null hash on increment of mod_hash limit
When we specifically release all limits on a channel we destroy the
hash table stored in the "limit_hash" private channel data but we
don't destroy the private data as it will be reclaimed as part of the
session.  If limit increment is called after the limit release we can
reuse that channel private, but we need to check whether the hash
table is null first.  Fortunately this makes the code look better
anyway.

FS-6775 #resolve
FS-6783 #resolve
2014-09-11 17:47:57 +00:00
Travis Cross bb84b0534c Check for libpq in core before building mod_cdr_pg_csv 2014-09-10 22:29:24 +00:00
Anthony Minessale ce5d21106e FS-6761 #resolve 2014-09-11 03:29:07 +05:00
Ken Rice 30283b7f6b Revert "fix libpq location detection"
This reverts commit e2b1ee26ae.
2014-09-10 16:27:16 -05:00
Ken Rice e2b1ee26ae fix libpq location detection 2014-09-10 15:04:50 -05:00
root 575adecf75 Revert "FS-6566"
This reverts commit 99d0f134e7.
2014-09-10 14:57:57 -05:00
Anthony Minessale 908dd26559 FS-6815 #comment force 1600hz for native g722 2014-09-10 14:09:32 -04:00
Anthony Minessale 77c99b6306 FS-6806 #resolve #comment off by 1 error in last fix 2014-09-10 20:32:36 +05:00
Brian West 66302cac89 FS-6811 #resolve 2014-09-09 17:59:29 -05:00
Nathan Neulinger 574d19e56e mod_skinny: fix behavior of transfer when target extension falls through to voicemail - keep bridge from dropping out during that operation 2014-09-09 15:58:56 -05:00
Nathan Neulinger 8973ffcc35 mod_skinny: improvements to error handling/detection 2014-09-09 08:30:46 -05:00
Travis Cross c3d65e902d Merge in Moises Silva's mod_bert 2014-09-09 09:15:30 +00:00
Moises Silva 89e8e14a9f Improvements to mod_bert
* Honor the timer name variable

* Added mod_bert::in_sync event when the stream is in sync
2014-09-09 04:07:13 -04:00
Moises Silva 25c6276fea Added cng counter to the bert test app 2014-09-09 04:07:13 -04:00
Moises Silva 557a4a8580 Treat CNG as a silent frame in mod_bert 2014-09-09 04:07:12 -04:00
Moises Silva 58e47748ca Only use a timer if bert_timer_name is specified, otherwise time based on input 2014-09-09 04:07:12 -04:00
Moises Silva cf2fd15211 Add BERT events for timeout and out of sync in mod_bert 2014-09-09 04:07:12 -04:00
Moises Silva 3248e06b91 Add timer to mod_bert to avoid relying on remote RTP for timing 2014-09-09 04:07:12 -04:00
Moises Silva ef694513df Improvements to mod_bert
* Added BERT stats channel variables

* Check if the channel is going down when out of sync to avoid flagging it
  as out of sync, if the channel is going down it is expected to have some errors
2014-09-09 04:07:12 -04:00
Moises Silva a84ce1dd3c Improvements to mod_bert
* Improve bert input debug
* Check for SFF_CNG and ignore those frames
2014-09-09 04:07:11 -04:00
Moises Silva d3b214a672 Improvements to mod_bert
* Use digital milliwatt as the test sequence pattern
* Add debug IO files (enabled using bert_debug_io_file variable)
2014-09-09 04:07:11 -04:00
Moises Silva a60876b165 Use a triangle wave in mod_bert 2014-09-09 04:07:11 -04:00
Moises Silva 66a9e12aa8 Improvements to mod_bert
* Calculate sampling error rate over a time window

* Create the following variables to control bert testing behavior:
  bert_timeout_ms - Milliseconds to wait for bert sync before timing out
  bert_window_ms - Window of time to calculate sampling error rate percentage
  bert_max_err - Max percentage of error tolerated before going out of sync
  bert_hangup_on_error - Hangup when error occurs (Timeout or going out of sync)
2014-09-09 04:07:11 -04:00
Moises Silva fa3a1a0bdd Added mod_bert module 2014-09-09 04:07:02 -04:00
Nathan Neulinger 3c7e7c757a mod_skinny: more logging during transfer operations 2014-09-08 17:35:30 -05:00
Mike Jerris 98c8a9b508 Merge pull request #38 in FS/freeswitch from ~ALEXDG/freeswitch-event-for-gateway-ping:master to master
* commit '388e9638de7c14e00272777245dacc87cf09fc1c':
  F-5946 add the patches. if in the sofia gateway config the param pin-monitoring is true, then every ping result raise an sofia::gateway-state event
2014-09-08 14:35:47 -05:00
Brian West ce14c8f971 Merge pull request #45 in FS/freeswitch from ~ANDEE/freeswitch-fs6803:master to master
* commit '6753ccf65d9ea8b0334fe6a0cfdb4390bf56fcc2':
  Missed one of the variable changes!
2014-09-08 14:32:28 -05:00
Anthony Minessale a73583b5f3 FS-6806 #resolve 2014-09-09 00:09:31 +05:00
Andrew Cassidy 6753ccf65d Missed one of the variable changes! 2014-09-08 19:18:43 +01:00
Brian West bb8e4bd1bb FS-6803 #resolve 2014-09-08 11:25:52 -05:00
Jeff Lenk f230eb2a98 vs2010 reswig again 2014-09-08 10:32:35 -05:00
Jeff Lenk f63ad553f7 vs2010 reswig 2014-09-08 10:18:23 -05:00
Dušan Dragić 9cf72b541e FS-6799 fix reading sms in index 0 2014-09-07 16:43:00 +02:00
Seven Du a845755ea8 http 1.1 keepalive support 2014-09-07 12:21:42 +08:00
Seven Du 4e07845f2d fix incorrect string termination
if read multi times when waiting for a slow client, then bytes is much shorter than datalen
so it could incorrectly terminate the string and data could be lost
2014-09-07 11:45:12 +08:00
Seven Du 59cd3c77d8 FS-6796 #resolve hack mod_lua to read correct binary string 2014-09-06 19:38:40 +08:00
Seven Du c02b2427e8 refactor http parsing and prevent read body more than content-length 2014-09-06 19:35:05 +08:00
Seven Du 7be60474ab respond to OPTIONS and only allows GET and HEAD on static resources 2014-09-06 17:21:58 +08:00
Seven Du f3616557b6 parse x-www-form-urlencoded post body 2014-09-06 17:21:58 +08:00
Seven Du a9b91550e9 add HTTP Basic auth 2014-09-06 17:21:57 +08:00
Seven Du 7f8cc54cfb add basic http virtual host support and fix some leaks 2014-09-06 17:21:57 +08:00
Seven Du d8bc5ed7ae swigall 2014-09-06 07:18:38 +08:00
Seven Du 1a4e6e3093 FS-6796 #comment avoid use c++ string since it causing troubles 2014-09-06 07:18:38 +08:00
Alexander Haugg 388e9638de F-5946 add the patches. if in the sofia gateway config the param pin-monitoring is true, then every ping result raise an sofia::gateway-state event 2014-09-05 10:57:01 +02:00
William King 5dfea663cd build fix for mod_xml_radius 2014-09-04 14:57:20 -07:00
William King 47b7c44db6 Fix a problem where radius channel variables were missing in mod_xml_radius 2014-09-04 14:29:35 -07:00
William King fddf44426f Fixing a typo in the radius accounting end condition configuration handling in mod_xml_radius 2014-09-04 13:48:50 -07:00
Travis Cross 57bd4eb9bd Add `valet_park ... auto out ...` to syntax string
FS-5992 #resolve
2014-09-04 20:40:53 +00:00
Michael Jerris 56e4afb209 FS-6595: Enable pause_play and file_seek for conference member fnode #resolve 2014-09-04 15:56:15 -04:00
Travis Cross 5c29d8d4fa Show gateway uptime in seconds
In `sofia status gateway ...` let's show the uptime in seconds rather
than in microseconds.  We'll output the uptime in microseconds in
`xmlstatus` and we'll label it as such.
2014-09-04 05:39:26 +00:00
Steven Ayre 93bd5833c2 Add uptime property to mod_sofia gateways
The 'UP' status indicates a gateway is online as determined by
registration and/or SIP OPTIONS pinging.

The time the gateway has been in the 'UP' status is recorded,
and can be monitored using 'sofia status' and 'sofia xmlstatus'.

This can be used to detect and graph when there are outages.

ref: FS-6772

Reviewed-by: Travis Cross <tc@traviscross.com>
2014-09-04 03:43:36 +00:00
Travis Cross e79380c394 Catch more swig-generated files with gitattributes 2014-09-04 03:36:44 +00:00
Seven Du a8522ff3c2 remove debug 2014-09-04 10:38:37 +08:00
Seven Du a80f1d3524 swig all 2014-09-04 10:31:23 +08:00
Seven Du b2554848a1 initial support of http handing in mod_verto 2014-09-04 10:25:27 +08:00
Seven Du 602e82d483 add param to let the socket stay open even if not websockt, thanks Anthony 2014-09-04 10:21:22 +08:00
Seven Du 1f26712330 swig hack 2014-09-04 10:13:45 +08:00
Seven Du 31f78d8cac add ability to read from a stream
do not use this unless you understand what you are doing and you want to take the risk,
you are warnned
2014-09-04 09:45:16 +08:00
Travis Cross 7d11e19983 Check for null hash or private while holding lock
What if the hash were destroyed by one thread holding the lock while
another thread was waiting for the lock?  The waiting thread would
have already checked that the hash was non-null and would proceed on
that assumption after acquiring the lock.

With this commit we check only after acquiring the lock.

ref: FS-6783
ref: FS-6775
2014-09-03 19:45:45 +00:00
Travis Cross 82a28e76e4 Re-fix memory leak
After consideration, this still looks correct.

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

ref: FS-6783
ref: FS-6775
2014-09-03 19:44:43 +00:00
Travis Cross 8c0a1d17e2 Reintroduce memory leak in mod_hash to avoid crash
ref: commit 3e24b3e2c2
ref: FS-6783
ref: FS-6775
2014-09-03 18:16:11 +00:00
Giovanni Maruzzelli 5c15e85ce4 mod_spandsp: added SWITCH_CURRENT_APPLICATION_RESPONSE_VARIABLE on application errors 2014-09-03 15:52:50 +02:00
Travis Cross acb439ca03 Avoid leaking memory while iterating hash tables
`switch_core_hash_first` allocates an iterator on each call that is
never freed except when the hash table is empty.

By using `switch_core_hash_first_iter` we allocate only one iterator,
and that iterator is freed after the last item is processed.
2014-08-30 03:49:51 +00:00
Travis Cross 75836b603f Suppress diff output for swig-generated files 2014-08-30 03:22:59 +00:00
Travis Cross df559e0aac Add back goodness refactored out 2014-08-30 01:32:57 +00:00
Travis Cross 9481d9843c Fix comment spelling 2014-08-30 01:19:09 +00:00
Travis Cross 6f2eac6876 Fix comment spelling 2014-08-30 00:52:16 +00:00
Travis Cross 63f16425bd Refactor mod_hash limit_release_hash a bit 2014-08-29 21:44:04 +00:00
Brian West 3e24b3e2c2 FS-6775 #resolve 2014-08-29 09:55:00 -05:00
Chris Rienzo 89b4b0c4ea mod_rayo: fix nested join to calls and conferences 2014-08-28 13:16:55 -04:00
Chris Rienzo fa08c6b8db mod_unimrcp: remove some dead code and TODOs. Reworked error handling a bit to try and prevent stuck channel 2014-08-28 09:18:07 -04:00
Travis Cross dc88617c99 Lower log level of limit increases and releases
In some configurations where many limits are used, the limit increases
and releases were generating a lot of noise and making it harder to
see when limits were exceeded, which was at the same log level.
2014-08-28 01:40:36 +00:00
Travis Cross 5a209a9680 Remove misleading `tport` example from configs
As an example of using mod_sofia's gateway parameter `contact-params`
we'd used the value `tport=tcp`.  Looking around, it's clear this has
misled people into believing you can specify `tport=tcp` to make the
gateway use TCP or `tport=tls` to make the gateway use TLS.  This does
not work.

The actual contact parameter is named `transport` rather than `tport`,
and you shouldn't use `transport` in `contact-params` because we
automatically add a `transport` to the Contact: based on the value of
`register-transport` (even if the gateway is set to not register).

It's clear why this would be confusing, so we'll just remove this as
an example.
2014-08-27 23:15:45 +00:00
Brian West 1dc44067cd FS-6770 #resolve 2014-08-27 13:28:15 -05:00
Nathan Neulinger 2db039bc5f mod_skinny: FS-6720 - fix issue with SLA - had to do with answering in wrong state 2014-08-27 10:38:16 -05:00
Anthony Minessale 0f1494ae06 Improve conference recording 2014-08-26 09:52:55 -05:00
Brian West f4a04e65f2 FS-6735 2014-08-22 16:39:52 -05:00
William King d06d004055 Adding the ability to add a radius param when a channel variable is not set in mod_xml_radius 2014-08-21 23:17:23 -07: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 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
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
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