Commit Graph
492 Commits
Author SHA1 Message Date
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
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
William King c19aa584cc CID: 1214222
sofia_glue_get_url_from_contact to strdup the value so before
overwriting the value signal to sofia that we have finished with the
raw header.
2014-05-16 17:01:03 -07:00
William King 7d5434f57c CID: 1214223-1214230 If sent an invalid registration authentication header with multiple params of the same name, then only use the first of the params instead of leaking memory 2014-05-16 11:50:18 -07:00
Michael Jerris abd7882d18 contact->m_url is an array, don't check array for zero as its useless 2014-04-26 15:35:27 -04: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
Jeff Lenk 1cde5f01e0 FS-6386 --resolve 2014-03-23 16:15:49 -05:00
Anthony Minessale 8f703c7a78 FS-6353 regression from 7ba257ecd6 2014-03-14 18:34:08 -04:00
Anthony Minessale e37616e36d do not retry so fast on failed outbound subs 2014-03-14 12:55:50 -05:00
Brian West 7a6e8f4672 FS-6354 --resolve, add realm to sofia::expires event 2014-03-13 11:13:10 -05:00
Anthony Minessale 7ba257ecd6 FS-6353 --resolve 2014-03-13 10:23:13 -05:00
Anthony Minessale 70f2908976 more nat fix 2014-03-11 16:12:43 -05:00
Anthony Minessale 5c8a3b12fd Convert some behaviors to optional.
These all were set before but now are disabled by default because they are not proper to have enabled without a good reason.

tcp-unreg-on-socket-close

If registration is TCP or TLS and socket connection is interrupted, unregister the client.

tcp-always-nat

Treat all TCP connections as NATTED, this causes all traffic back to the phone to reuse the existing TCP socket but may
cause problems when not used with TCP keepalive.

tls-always-nat

Same as tcp-always-nat but only for TLS connections.
2014-03-11 15:17:02 -05:00
Anthony Minessale 804ef7709d change from sqlite hash to newly added one 2014-03-09 00:37:17 +05:00
Brian West 1d36f5b219 FS-5915 --resolve 2014-02-28 16:09:59 -06:00
Anthony Minessale b82df8a7da FS-6287 this should either prevent the problem or spell out what is causing it. please test 2014-02-28 23:23:30 +05:00
Brian West 45e19b75dd FS-6270 add client_port to SIP Registration events 2014-02-25 21:49:35 -06:00
Brian West 97e136c12b FS-5724 include realm in sofia::unregister Event 2014-02-22 18:31:23 -06:00
Travis Cross bd72cd9cc1 Allow setting late margin on register expirations
When an endpoint registers to us we internally mark the expiration as
some seconds longer than the actual registration.  Previously this
value was fixed at 60 seconds.

Some people need this value to be shorter so they can meet their SLA
by taking a different action when a device doesn't re-register when
expected.

This commit adds a SIP profile parameter sip-expires-late-margin which
allows setting the margin value we apply here.

FS-6101 --resolve

Thanks-to: Emmanuel Schmidbauer <e.schmidbauer@gmail.com>
2014-02-20 16:07:53 +00:00
Anthony Minessale b3c02a547e FS-6230 --resolve There was no NAT detection enabled on the calls, this patch will activate it explicitly when used with force-rport to avoid a similar problem with other users 2014-02-14 23:50:17 +05:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Anthony Minessale c52ac4817c FS-6128 FS-6200 --resolve allocating the sofia_private on the nua_handle seems to lead to memory corruption, changing it back to malloc as done in the version before the regression 2014-02-11 04:05:40 +05:00
Anthony Minessale a21cbf8142 FS-6165 --resolve 2014-01-30 00:20:21 +05:00
Peter Olsson 084e245085 Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks. 2014-01-22 22:30:23 +01:00
Anthony Minessale ef730b75aa FS-5987 pushing the patch now since no matter what its better than before 2013-12-11 00:04:26 +05:00
Anthony Minessale 37774268c0 FS-5882 --resolve 2013-10-17 22:40:07 +05:00
Brian West 5197c726be add via_protocol to request so you can be informed if you wish to force expires due to tcp keepalives being on. 2013-09-12 15:24:19 -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 8859df6789 FS-5683 --resolve 2013-08-14 02:24:53 +05:00
Anthony Minessale a6bffd38cb FS-5498 2013-07-19 12:03:51 -05:00
Anthony Minessale c98b01a205 make display in contact compat with broken aastra 2013-07-17 16:35:24 -05:00
Ken Rice 51fd5a6cee --resolve FS-5426 2013-07-03 14:13:05 -05:00
Nathan Neulinger 32adc789f6 make noexpandtab explicit in all vim modelines other than xml files 2013-06-25 11:50:17 -05:00
Brian West a55d70ed62 add kirk wireless servers to safe as they do not do rport 2013-05-31 11:54:05 -05:00
William King 8d7aa3ff65 FS-5441: --resolve 2013-05-17 12:39:17 -07:00
Anthony Minessale eeeb4fa445 FS-5340 --resolve 2013-04-24 16:35:58 -05:00
Anthony Minessale e1c325dcb5 FS-5341 --resolve 2013-04-23 14:49:07 -05:00
Anthony Minessale ec43377df7 FS-5339 --resolve 2013-04-23 10:26:16 -05:00
Anthony Minessale 16fa338b49 cleanup debug and memory and add stupid code for using sep dtls session when rtcp is not mux 2013-03-31 21:27:23 -05:00
Anthony Minessale e00ede7e7d unreg on sock disconnect 2013-03-31 21:27:22 -05:00
Anthony Minessale 2cb45cc1fb wtf 2013-03-31 21:27:20 -05:00
Anthony Minessale 5fc7746297 sort out ws/wss stuff to comply with jssip 2013-03-31 21:27:20 -05:00
Anthony Minessale 668f4a6207 working mo better 2013-03-31 21:27:20 -05:00
Anthony Minessale 5c90322e8c MILESTONE: kind of works on media and signaling 2013-03-31 21:27:20 -05:00
Anthony Minessale 18b8007217 FS-5235 --resolve 2013-03-27 11:12:35 -05:00
Anthony Minessale 43e8fb6be4 FS-5176 --resolve 2013-03-14 11:06:02 -05:00
Anthony Minessale 8987e96744 add dedicated mutex for select based sql stuff 2013-02-25 15:42:26 -06:00
Anthony Minessale 18cd797065 cleanup 2013-02-18 13:54:34 -06:00
Raymond Chandler 6e92156fb0 sending spa8000 check-sync seems to work better 2013-01-31 17:58:27 -05:00