1152 Commits

Author SHA1 Message Date
Anthony Minessale
443ab8a8db FS-5949 #resolve 2014-10-28 13:38:06 -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
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
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
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
Anthony Minessale
bde2e2da51 FS-6889 #resolve 2014-10-03 11:34:42 -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
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
a73583b5f3 FS-6806 #resolve 2014-09-09 00:09:31 +05: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
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
3ce4ae962b FS-6540 #comment please test this patch for the added notify functionality 2014-07-17 22:35:04 -05:00
Travis Cross
1b7360159a Associate "sending early media" log with session 2014-07-16 04:57:39 +00:00
Patrice Fournier
21ae587063 Disabling Require timer for T.38 re-Invites cause problems
Disabling Require timer for T.38 re-Invites tells the remote side it
doesn't need to refresh the session but FreeSwitch will still terminate
the call if the remote session doesn't refresh.
2014-07-08 01:00:52 -04:00
Anthony Minessale
956da6d689 Modify sofia profile to attempt to bind to the interface up to 3 tries with a 5 second wait between attempts.
Add new profile params bind-attempts and bind-attempt-interval to modify default behavior.
--NEEDSDOCS
2014-06-02 22:47:26 +05:00
Michael Jerris
4653d78154 CID:1087387 Unused pointer value 2014-05-15 18:30:03 +00:00
Anthony Minessale
607247397c FS-6413 update presence_epoch to lock to midnite 2014-05-02 23:49:46 +05:00
Michael Jerris
4828ecd7fd remove unused variable 2014-04-28 15:00:22 -04:00
Michael Jerris
1affd78204 we only call this with values, and it would crash if you passed it null anyways, just assert to make it 100% clear 2014-04-26 15:41:34 -04:00
Anthony Minessale
a4a792488b add generic keepalive system and implement it in sofia to send MESSAGE or INFO packets in-dialog at specified interval.
Adds app: enable_keepalive 0|<seconds>
This app can be run in the dialplan or with execute_on_* type variables for B-legs.

Adds sofia param: keepalive-method  : defaults to MESSAGE can also be "INFO"
This param sets which SIP method to use.
2014-04-16 06:10:25 +05:00
Anthony Minessale
7151d6acea FS-6402 part 2 2014-04-02 03:21:37 +05:00
Anthony Minessale
5c0cff70b3 FS-6402 --resolve 2014-04-02 01:20:19 +05:00
Anthony Minessale
c02a5e67b8 FS-6413 --resolve with this patch you will need to make sure the boxes have the clocks synced and both started inside the same occurence of the most recent new year. 2014-03-31 15:23:50 -05:00
Michael Jerris
f3acb03dc0 S-6341:make sure to unlock too 2014-03-19 16:38:53 -04:00
Seven Du
6e3f4d667c add missing break, please review 2014-03-19 07:58:13 +08:00
Michael Jerris
340b697e1b FS-6341: --resolve add 3pcc invite w/o sdp support for 100rel/PRACK 2014-03-17 12:27:42 -04:00
Anthony Minessale
804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
Anthony Minessale
e5b291514c FS-5755
rtp_secure_media=mandatory
rtp_secure_media=optional
rtp_secure_media=mandatory:AES_CM_256_HMAC_SHA1_80,AES_CM_256_HMAC_SHA1_32
rtp_secure_media=optional:AES_CM_256_HMAC_SHA1_80
rtp_secure_media=forbidden

true implies mandatory
false implies forbidden
not set implies optional

rtp_secure_media_inbound or rtp_secure_media_outbound take precedence and are treated the same way based on leg direction
2014-03-06 07:34:47 +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
Anthony Minessale
5646957c5b FS-5937 2014-02-26 04:06:59 +05:00
Brian West
8bf70dcf47 FS-6164 I can see from this jira that this should be strcasecmp so SIP or sip are caught 2014-02-20 13:50:04 -06:00
Ken Rice
6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale
10d2dd3e73 use portable switch_inet_ntop 2014-02-12 03:31:21 +05:00
Anthony Minessale
900db14f1d FS-6203 --resolve 2014-02-07 22:34:34 +05:00
Anthony Minessale
b65d2a9a78 FS-5396 --resolve add gethost function to call gethostbyname as desired 2014-02-05 01:08:31 +05:00
Raymond Chandler
3eb645a336 FS-6093 --resolve 2014-01-09 14:30:41 -05:00
Anthony Minessale
ccaa3ae732 FS-5959 2013-11-21 01:38:21 +05:00
Anthony Minessale
bb9adff511 rework media code 2013-11-08 03:48:00 +05:00
Raymond Chandler
25e7be1c60 FS-2731 apply patch 2013-10-16 10:56:01 -04:00
Anthony Minessale
4a172402d2 some refactoring and plumbing for 1.4 2013-10-16 02:24:32 +05:00
Anthony Minessale
6521de294c FS-5717 --resolve 2013-09-19 10:15:02 -05:00
Raymond Chandler
a7ab24ef4c FS-2731 refactor a bit to make this actually usable and more cross-endpoint compatible 2013-09-18 16:00:03 -04:00
Anthony Minessale
38cd508a12 FS-5772 --resolve this is sort of a hack but less painful than reporting bugs to polycom 2013-09-10 23:14:30 +05:00
Anthony Minessale
5bf27df0a4 FS-5752 --resolve 2013-09-04 21:05:13 +05:00
Anthony Minessale
7d6d688e53 FS-5731 --resolve 2013-08-26 20:25:14 +05:00
Raymond Chandler
863e6cfa3f FS-2731 significantly reworked version of Emmanuel's patch to allow subscribing and notifying for the as-feature-event events. we still need a module to handle the FS events for this automatically... coming soon to a repository near you 2013-08-23 15:54:49 -04:00
Anthony Minessale
b76c39ade1 FS-5700 --resolve 2013-08-15 21:19:57 +05:00
Anthony Minessale
4efeced015 FS-5682 --resolve there was one other change to allow them to copy over by setting them on the A leg. Exporting the sip_multipart variable or setting it in {} on the dial string should already work. This patch should make it work with setting it too. 2013-08-12 19:05:04 +05:00