Commit Graph

1408 Commits

Author SHA1 Message Date
Mike Jerris d562bc601a Merge pull request #201 in FS/freeswitch from ~SJTHOMASON/freeswitch:bugfix/FS-7308-cannot-disable-sofia-sla-sql-query to master
* commit 'cc61f11fb7001ad7a7882e6591b3e89740dce2e9':
  FS-7308: [mod_sofia] Only log SLA SQL query SQL when debugging is enabled
2015-02-20 13:12:40 -06:00
Spencer Thomason 74e8db736f FS-7309: [mod_sofia] Allow removal of User-Agent header
In certain deployments it might be desirable to remove the User-Agent header from the SIP message.
Set the sofia profile parameter "user-agent-string" to "none" to suppress this header.
2015-02-20 08:36:44 -08:00
Spencer Thomason cc61f11fb7 FS-7308: [mod_sofia] Only log SLA SQL query SQL when debugging is enabled 2015-02-19 15:52:44 -08:00
Michael Jerris 302a339fdf FS-7294: Enable -Werror when building with clang compiler #resolve 2015-02-17 12:20:33 -05:00
Rajesh Panicker 5db8a0c16b FS-7228 - Max Register Refresh before the Register is challenged for credentials 2015-02-06 10:16:36 -08:00
Anthony Minessale bad5dc3022 FS-7037 #resolve 2014-12-01 15:10:00 -06:00
Anthony Minessale 5bbef7f1e5 FS-7015 #comment please test 2014-11-25 17:02:10 -06:00
Brian West 5127b64df8 FS-7014: [mod_sofia] don't touch the tech_pvt when a call has just ended, leaving us with a null tech_pvt 2014-11-18 10:22:13 -06:00
Michael Jerris 82aa33140e FS-6531: #resolve set to tag on auto answer notify to make grandstream happy, even tho they could have matched the dialog fine off the from tag like every other phone does. 2014-11-12 21:37:14 -06:00
Brian West 9e9c4378de Merge branch 'master' of ssh://stash.freeswitch.org:7999/fs/freeswitch 2014-11-06 18:26:28 -06:00
Anthony Minessale 415f82fe93 FS-6954 #resolve #comment please test 2014-11-06 18:26:16 -06:00
Anthony Minessale f66f2cae8c FS-6890 #comment please test 2014-11-06 17:13:02 -06:00
Brian West 1190e59adf FS-6965 #resolve 2014-11-06 09:47:54 -06:00
Brian West 3b9f0c32e6 FS-6927 #comment allow sub millisecond resolution for option ping times 2014-10-29 16:01:28 -05:00
Anthony Minessale 443ab8a8db FS-5949 #resolve 2014-10-28 13:38:06 -05:00
Brian West f1ee4ba4d7 Merge branch 'master' of ssh://stash.freeswitch.org:7999/fs/freeswitch 2014-10-16 17:03:57 -05:00
Brian West 15e9e68064 FS-6927 #resolve #comment This display option ping times in the gateway status on sofia status gateways or individual gateway status output 2014-10-16 17:03:37 -05:00
Anthony Minessale 2e10407336 actual fix for commit cff5209ca3 which was in the wrong place 2014-10-16 16:04:15 -05:00
Anthony Minessale 3bdbdd4abf revert cff5209ca3 2014-10-16 14:39:59 -05:00
Matteo Brancaleoni beb1d17921 FS-6400 Improve sip ping generation by distributing them across an interval 2014-10-14 14:24:21 +02:00
Anthony Minessale cff5209ca3 fix leak of nua handle due to reference counting that must be between 3 to 7 years old. Effects all calls with auth/challenge on INVITE 2014-10-13 18:06:32 -05:00
Anthony Minessale e4e9b1b9f9 have resume media on hold not send invite back out at the holder but rather enable media in the 200ok 2014-10-10 16:09:43 -05:00
Michael Jerris 855cc4b4e0 add 908-retry-seconds gateway param to set reg retry time when getting a 908 for backup interfaces to connect quickly 2014-10-09 14:43:23 -04:00
Mike Jerris 34bc98cafa Merge pull request #47 in FS/freeswitch from ~FLAVIO/freeswitch-fs-5106:master to master
* commit '56535519043201c723467c66c772d7519a2b6f62':
  FS-5106 fire an event when a sip client doesn't respond to option-ping
2014-10-07 14:06:34 -05:00
Anthony Minessale 2051a86df2 FS-6889 #resolve 2014-10-07 13:47:44 -05:00
Mike Jerris 6860b41763 Merge pull request #83 in FS/freeswitch from ~MKVONARX/freeswitch-fs-6710:FS-6710 to master
* commit '490efb7177ddcd3e61018f02c1435362937e8b15':
  FS-6710: fix incorrect comparison for Min-SE values between SIP INVITE and local configuration
2014-10-07 11:50:19 -05:00
Mike Jerris d4929443f9 Merge pull request #59 in FS/freeswitch from ~SJTHOMASON/freeswitch:FS-5868 to master
* commit '747322dcc6f4db1bffc985c9bcff0bd32a2682a9':
  Remove Contact header from BYE and CANCEL requests.
2014-10-07 11:47:40 -05:00
Markus von Arx 490efb7177 FS-6710: fix incorrect comparison for Min-SE values between SIP INVITE and local configuration 2014-10-07 10:41:36 +02:00
Anthony Minessale b2ae5f4cc2 few bugs on recent new features 2014-10-03 15:36:23 -05:00
Jeff Lenk ae5d86515a FS-6884 #comment these were mostly simple warnings 2014-10-02 19:20:35 -05:00
Anthony Minessale 10a3fa55ef %FEATURE add bypass_media_resume_on_hold and bypass_media_after_hold variables to be set to true to enable these functions on a per channel basis 2014-10-02 17:49:09 -05:00
Anthony Minessale 43733a6166 FS-6886 #comment addition of ignoring unhold as well 2014-10-02 15:48:29 -05:00
Spencer Thomason 747322dcc6 Remove Contact header from BYE and CANCEL requests.
Per rfc3261 the Contact header is not applicable and MUST not appear in
the request.

FS-5868 #resolve
2014-10-02 12:24:46 -07:00
Anthony Minessale 9e9175321a FS-6886 #resolve 2014-10-02 11:30:13 -05:00
Flavio Grossi 5653551904 FS-5106 fire an event when a sip client doesn't respond to option-ping
When all-reg-options-ping is enabled, this adds a new custom event to mod_sofia
(sofia::sip_user_state), which is fired when a client stops responding to such
ping packets (or when it is reachable again).

Add two needed new columns to the sip_registrations table:
  - ping_status, which is "Reachable" or "Unreachable" depending on the client
    status;
  - ping_count, which tracks the number of ping responses received and is used
    to provide some kind of hysteresis to avoid firing the event in case of
    transitory network failures.

Then ping_count is checked against two threshold values, sip-user-ping-min
and sip-user-ping-max in a similar fashion as the ping-{max,min} options for
the gateways. These two values are configurable in the profile's xml
configuration file.

Also, if unregister-on-options-fail is enabled, the client is unregistered
based on the number of OPTIONS failure which is also checked against the
sip-user-ping-{min,max} values.
2014-10-02 12:34:47 +02:00
Anthony Minessale 789e1481ed FS-6880 #resolve #comment I would think that in real life once the call agreed on a codec it would only offer the negotiated codecs but we can fix this to always filter for good measure. I am not sure what the ramifications are of filtering responses but I think this patch will do so as well. 2014-10-01 13:03:50 -05:00
Anthony Minessale 24084adf77 %FEATURE Add new feature to filter the SDP on bypass_media calls to remove or limit codecs.
VARIABLE: bypass_media_sdp_filter

Can be set globally or per leg on the inbound side of a bypass_media bridge.

VALID FILTERS:

remove(): Removes the specified codec if it exists in the SDP.
only():   Removes all codecs besides the one specified (providing that it exists in the sdp) (will not remove telephone-event))

EXAMPLE 1 (remove everything leaving only g729):

  <action application="set" data="bypass_media_sdp_filter=only(g729)"/>
  <action application="set" data="bypass_media=true"/>
  <action application="bridge" data="sofia/internal/1238@conference.freeswitch.org"/>

EXAMPLE 2 (remove everything leaving only g729 and also remove dtmf):

  <action application="set" data="bypass_media_sdp_filter=only(g729)|remove(telephone-event)"/>
  <action application="set" data="bypass_media=true"/>
  <action application="bridge" data="sofia/internal/1238@conference.freeswitch.org"/>

EXAMPLE 3 (remove alaw and speex):

  <action application="set" data="bypass_media_sdp_filter=remove(pcma)|remove(speex)"/>
  <action application="set" data="bypass_media=true"/>
  <action application="bridge" data="sofia/internal/1238@conference.freeswitch.org"/>
2014-10-01 01:28:10 +05:00
Anthony Minessale 7144b25254 obey sip_copy_custom_headers on bye 2014-09-12 00:37:19 +05: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
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
Brian West 1dc44067cd FS-6770 #resolve 2014-08-27 13:28:15 -05: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 e3e84a7820 FS-6679 #resolve 2014-08-09 02:13:00 +05:00
Brian West 940171c623 FS-6670 #resolve #comment Doh, see this one is dangerous 2014-07-21 16:04:36 -05:00
Brian West c15663cba2 FS-6670 #resolve #comment This should resolve this fun stuff. 2014-07-21 15:58:32 -05:00
Anthony Minessale 3ce4ae962b FS-6540 #comment please test this patch for the added notify functionality 2014-07-17 22:35:04 -05:00
Anthony Minessale 91d405a2c1 call recovery_track on recovering channels once the recovery has completed and fix race condition with repeated recovery 2014-07-16 21:40:23 +05:00
Anthony Minessale c58e64bf6d add some more headers to sip messages 2014-07-16 00:55:46 +05:00
Brian West 28e90addf2 FS-5501 fire event on profile start 2014-07-09 08:53:14 -05:00
Anthony Minessale 2423fc7d0f FS-6540 This should proxy all refers now, the param has changed to proxy-refer 2014-06-30 12:53:22 -05:00