Commit Graph

1353 Commits

Author SHA1 Message Date
Anthony Minessale 49ee6781a5 FS-6540 please test 2014-06-05 23:49:50 +05:00
Brian West 6722e3dfea fix regression from regression 2014-06-02 19:25:04 -05:00
Brian West f358c35b67 remove debug line 2014-06-02 19:21:02 -05:00
Anthony Minessale a7b9329a08 FS-6446 regression fixed 2014-06-02 19:09:48 -05: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
Anthony Minessale 7c2b4381cf FS-6446 --resolve 2014-05-27 20:40:00 +05:00
Anthony Minessale bedf8327b6 FS-6418 FS-6427 add profile param NDLB-proxy-never-patch-reinvites to solve both issues 2014-05-21 03:31:50 +05:00
William King 388e119e55 CID: 1214221,1214222
sip_header_as_string returns new memory alloc'd on the nua_handle's memory pool. This memory would not be freed until
the handle was destroyed. Since there is no usage of the call-info header after it is added to the event as a header value,
we should make sure to both su_free the sofia returned string, but also more cleanly create the event header value to reduce a strdup.
2014-05-16 16:35:49 -07:00
Russell Treleaven 3666029ff0 add auth-subscriptions flag. sofia ua can now optionally challenge subscrition requests 2014-05-16 19:05:35 +00:00
William King af32ca00e3 Correction to commit 0ba59aa6c2 using the correct variable in tel uri param parsing for mod_sofia 2014-04-29 15:23:24 -07:00
Anthony Minessale cc06d9181b FS-4779 FS-6467 the behaviour from 4479 is now masked behind the param 3pcc-reinvite-bridged-on-ack FS-6467 please test master 2014-04-28 22:10:14 +05:00
William King 0ba59aa6c2 Expanding on 052638186b to support boolean tel url params in mod_sofia 2014-04-25 13:49:59 -07:00
Anthony Minessale 79ebcb104b add enable-chat sofia profile param which defaults to true when not present, set to false to turn off the chat interface in sofia 2014-04-19 12:29:10 -05:00
Anthony Minessale bce51017fb FS-6462 --resolve
I found a problem here but it may not completely match your expectations.
I reviewed the RFC 4028 and checked against the code and I discovered we should not be putting a Min-SE in any response at all besides a 422:

section 5:

   The Min-SE header field MUST NOT be used in responses except for
   those with a 422 response code.  It indicates the minimum value of
   the session interval that the server is willing to accept.

I corrected this problem and implemented the 422 response so if you request a value lower than the minimum specified for the profile.
If the value is equal or higher to the minimum, it will be reflected in the Session-Expires header in the response and no Min-SE will be present.
2014-04-17 04:26:43 +05: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
Raymond Chandler 052638186b add parsing of user params on invite 2014-04-15 12:48:07 -04:00
Brian West 19e3175518 FS-6422: --resolve obvious copy and paste error 2014-04-03 07:20:41 -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
Michael Jerris 65c58a7ceb FS-6341: fix compiler warning from set but unused var 2014-03-17 18:42:02 -04: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
Michael Jerris 3c95a52ff6 we are intentionally using a value outside of the enum here as a special value. The compiler will always make this an int anyways, so this is safe. cast to remove the warning 2014-03-15 22:47:55 -04:00
Anthony Minessale 89f9490710 FS-6350 --resolve Parse params out of user portion of caller_id and save them to sip_name_params 2014-03-14 13:13:22 -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 07272e864e FS-6321 --resolve
Copy URI params from Refer-To header into custom header in subsequent INVITE

sip_h_X-FS-Refer-Params is set to show up in the INVITE as X-FS-Refer-Params
2014-03-07 12:56:58 -06:00
Anthony Minessale f87ae15fc6 don't refuse invites on established sessions due to session limits 2014-03-07 23:46:26 +05:00
Anthony Minessale 0da8c6331d don't kick in nat mode on polycom tcp unless its not in the local network 2014-03-07 08:34:26 +05:00
William King fd38a255f8 FS-6167 --resolve 2014-03-04 13:41:34 -08:00
Anthony Minessale 2dc71d2d26 add sip_refer_to_params 2014-03-01 00:13:35 +05:00
Brian West 45e19b75dd FS-6270 add client_port to SIP Registration events 2014-02-25 21:49:35 -06:00
Marc Olivier Chouinard 9f98ccc105 FS-5115 --resolve 2014-02-24 20:25:31 -05:00
Travis Cross 19dbd07ff8 Allow access to headers from INVITE
This adds a sip profile parameter parse-all-invite-headers that when
set parses all headers from an INVITE into channel variables.  The
headers are converted to lowercase, underscores are replaced with
dashes, and the result is prefixed with sip_i_.  Headers than exist
more than once are set as arrays.

FS-6075 --resolve

Thanks-to: Peter Olsson <peter@olssononline.se>
2014-02-21 20:45:40 +00: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
Anthony Minessale a0d6ebd80d FS-6222 --resolve 2014-02-13 20:46:05 +05:00
Anthony Minessale 7ed4ed65db 0a63cdc4b2 this might help 2014-02-13 05:50:39 +05:00
Anthony Minessale 0a63cdc4b2 FS-6222 try this patch 2014-02-13 04:08:24 +05:00
Anthony Minessale 35f2bcccf7 FS-6221 --resolve 2014-02-13 03:26:09 +05:00
Ken Rice 6e7d5d0897 update copyright header for 2014 2014-02-12 12:08:56 -06:00
Travis Cross d3b9aaba60 Add mod_sofia support for setting socket TCP keepalive
Some OSes like linux provide a mechanism for sending TCP keepalive
pings.  Sofia provides its own mechanism for doing this in userspace.
We shouldn't conflate these two mechanisms.

FS-6104
2014-02-11 06:27:29 +00: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 0539cc166b FS-6202 --resolve 2014-02-07 22:13:23 +05:00
Anthony Minessale 4c068c637d FS-6197 --resolve the line numbers in the trace do not match the version you reported make sure you know what version you are using 2014-02-06 21:47:24 +05:00
Travis Cross 57abca11a8 Support setting TLS cipher suites in mod_sofia
This adds a parameter tls-ciphers in which we can specify the TLS
cipher suite specification for OpenSSL.
2014-02-06 06:04:02 +00:00
Travis Cross d4a13742ba Default to TLSv1 through TLSv1.2 if unspecified 2014-02-06 02:47:40 +00:00
Travis Cross 8c2c464bec Support setting enabled TLS versions in mod_sofia
Previously if tls-version was set to tlsv1 we supported only TLSv1,
but if it was set to sslv23 we supported all versions of TLS.  This
was a weird incorrectly documented behavior that we hope no one was
relying on.

Now we can pass a comma-separated list of TLS/SSL versions that we
would like to support in tls-version.

FS-5839 --resolve
2014-02-06 02:20:19 +00:00
Travis Cross 8fa385b0d7 Make bypass-media-after-hold a media-option
FS-6186 --resolve

Thanks-to: Matteo Brancaleoni <mbrancaleoni@voismart.it>
2014-02-05 19:36:15 +00:00
Anthony Minessale 3ecb504fda FS-6186 --resolve 2014-02-05 07:15:08 +05:00