Commit Graph

3863 Commits

Author SHA1 Message Date
Dragos Oancea 8e59603d98 [core][mod_sofia] remove ZRTP (deemed obsolete).
[unit-tests][build-system][docs] remove references to ZRTP.
2022-10-28 20:19:42 +03:00
Dmitry Ukolov c6452cc8da [mod_sofia] Add db-spin-up-wait-ms profile parameter. 2022-10-06 12:15:41 +03:00
Jakub Karolczyk 71aa3cb03c [mod_sofia] Fix handling of late offer 2022-09-09 11:07:19 +01:00
agree 767b163cbd [mod_sofia] Fix PRESENCE_PROBE firing on rejection
After rejecting the subscription for authentication the function calls goto end. In the end block freeswitch fires PRESENCE_PROBE events and releases the allocated memory
* when rejecting a call for auth PRESENCE_PROBE should not get fired
* This caused all other subscribers to the same entity to get flooded with NOTIFY's because `call_id` only gets set later in the function, so when firing the PRESENCE_PROBE without `call_id` being set all subscriptions will get a notify
* this can be considered a security flaw as any unauthorized user can send
SUBSCRIBES and trigger thousands of NOTIFY's to the SUBSCRIBED endpoints

This was fixed simply my moving down the end label after the code that
sends the PRESENCE_PROBE event
2022-08-26 18:09:34 -04:00
Andrey Volk 9f5c2a1619 [mod_sofia] Unit-test: Fix strcmp null argument. 2022-08-26 16:21:01 +03:00
Andrey Volk 19a7debc1b [mod_sofia] Fix dead nested assignments 2022-08-10 00:13:18 +03:00
Andrey Volk 01844013a0 [mod_sofia] Fix potential memory leak in sofia_reg_handle_sip_r_challenge() 2022-08-09 23:33:21 +03:00
Dragos Oancea c9def5990e [core, mod_sofia] add some extra checks when creating the digest. 2022-08-08 18:56:09 +03:00
Andrey Volk c671ebcb88 [mod_sofia] unit-tests: Give mod_sofia time to spin up profile threads on load. Remove some fst_requires(). 2022-07-26 01:47:27 +03:00
FusionPBX 75e858407f [mod_sofia] Add Fanvil to vendors allowed to update. 2022-06-16 18:00:09 +03:00
Ken 04df9c12f7 [mod_sofia] on call term optionally ignore Q.850 Reason
Currently SIP termination messages with Q.850 override the SIP
reason. Add chanvar ignore_q850_reason to ignore the Q.850 reason
and keep the SIP Reason Code.

Using the chan var avoids unexpected changes in behavior.

Co-authored-by: Brian West <brian@freeswitch.org>
2022-06-07 19:58:43 +03:00
Aron Podrigal 0365becc0d [mod_sofia] Fix fs_path to keep <> so that sofia doesn't put the uri parameters as header parameters. Handle multiple Record-Route / Route and Path headers. 2022-03-25 19:44:25 +03:00
Andrey Volk b9875d1ac9 [Unit-tests] Replace fst_requires with fst_check in mod_sofia unit tests. Increase timeout. 2022-01-25 19:52:20 +03:00
xbipin f9bb8940c2 [mod_sofia] Caller ID name in contact. Introduce sip_caller_id_name_in_contact channel variable. 2021-12-29 23:30:18 +03:00
Andrey Volk e37638d526 Merge pull request #1407 from mochouinard/master
[mod_sofia] Provide retry time for failed and waiting registration
2021-12-29 13:39:01 +03:00
Alexander Udovichenko 1bab462f19 [mod_sofia] Add autocomplete options to status profile command 2021-11-26 15:18:23 +03:00
Andrey Volk e428be3f1a Merge pull request #1444 from signalwire/opensipit02
[mod_sofia] fail set up of STIR/SHAKEN verification service if configured CA directory fails to load
2021-11-17 22:23:28 +03:00
Andrey Volk 594e42544b [mod_sofia] Put more comments into the code explaining that we include switch_ssl.h into sofia_reg.c because of SHA-512-256 (RFC-8760) 2021-11-17 18:18:52 +03:00
Chris Rienzo d7c985afc7 [mod_sofia] fail set up of STIR/SHAKEN verification service if configured CA directory fails to load 2021-11-16 18:10:59 -05:00
Chris Rienzo c9fba5cf39 [mod_sofia] Fix regression in RFC-8760. SHA-512/256 was not offered because OPENSSL_VERSION_NUMBER was not defined in sofia_reg.c 2021-11-15 13:18:29 -05:00
Marc Olivier Chouinard d13ee25735 [mod_sofia] Provide retry time for failed and waiting registration 2021-10-27 12:41:31 -04:00
Andrey Volk a5365eb080 [mod_sofia] Fix build on older sofia-sip when NUTAG_CALL_TLS_ORQ_CONNECT_TIMEOUT tag is undefined. 2021-10-23 22:01:12 +03:00
Andrey Volk a6178e88fb [mod_sofia] Fix use of NUTAG_CALL_TLS_ORQ_CONNECT_TIMEOUT when sip_call_tls_orq_connect_timeout channel variable is undefined. 2021-10-23 22:01:12 +03:00
Dhruv Gupta 35c2af75ce [Unit-tests] Fix-up usage of sipp in the register_403 unit-test of mod_sofia 2021-10-23 22:01:07 +03:00
Andrey Volk b7f908e890 [mod_sofia] Destroy nua handles to avoid memory pool swell when system is unavailable (busy, paused or reached internal limits) 2021-10-23 22:01:07 +03:00
Andrey Volk 7ed2a99eb5 [mod_sofia] Implement maximum receiving requests per second max-recv-requests-per-second profile parameter. (Warning: Behaviour change. New default is 1000 requests per second) 2021-10-23 22:01:06 +03:00
Dragos Oancea a5a1fb9dd8 [mod_sofia] fix memleak (presence) 2021-10-23 22:00:56 +03:00
dhruvecosmob 047c3c7217 [Core] Add Unit test script for Check RTP/SAVP transport protocol with crypto attribute. 2021-10-23 22:00:54 +03:00
dhruvecosmob d178632748 [mod_sofia] Add a unit-test for the 3pcc telephone event. 2021-10-23 22:00:54 +03:00
Brian West 01d805d5a0 [mod_sofia] Map 607 to CAUSE_UNWANTED and add 608 to CALL_REJECTED 2021-10-23 22:00:52 +03:00
Andrey Volk 76e8c5cc57 [mod_sofia] Fix possible nua handle leak in sofia_handle_sip_i_refer() 2021-10-23 22:00:51 +03:00
Dragos Oancea 8eaf6911dc [mod_sofia] unit-tests fix - don't run shaken tests if lib not installed. 2021-10-23 22:00:50 +03:00
Dragos Oancea 392bc26a43 [mod_sofia] fix memleak with invalid hostname as gw/proxy 2021-10-23 22:00:49 +03:00
Andrey Volk 3447daea46 [mod_sofia] Destroy session after relaying notify result on proxy refer. 2021-10-23 22:00:45 +03:00
Dragos Oancea c86e3827f9 [mod_sofia] rfc8760: use different nonce per auth algorithm.
[mod_sofia] keep unconsumed nonce in the db for 32 seconds (timer_t1x64) + nonce_ttl.
[mod_sofia] add #ifdef condition on using sha512: OPENSSL_VERSION_NUMBER >= 0x10101000L
2021-10-23 22:00:42 +03:00
Chris Rienzo 1adcebb309 [mod_sofia] add sip_refer_continue_after_reply channel variable.
Set to true to prevent hangup when response to REFER request is received.
Added sip_refer_target_status_code and sip_refer_target_provisional_status_code
channel variables to store responses from NOTIFY sipfrags.
2021-10-23 22:00:41 +03:00
Andrey Volk d2e8a775b0 [mod_sofia] Set sip_100_uepoch channel variable on initial 100 trying response. 2021-10-23 22:00:37 +03:00
Andrey Volk 66a92063b6 [mod_sofia] Add tls-orq-connect-timeout profile parameter so SIP engine could try again sending an outgoing request and when possible - using an alternative address (DNS failover). Add sip_call_tls_orq_connect_timeout channel variable per call to override profile's timeout. 2021-10-23 22:00:36 +03:00
Anthony Minessale d2ccb93f3e [mod_sofia] don't auto unhold via media format for non-sip 2021-10-23 22:00:31 +03:00
Anthony Minessale cc68179d2b [mod_sofia] add sip_ignore_remote_cid var to ignore remote display update 2021-10-23 22:00:13 +03:00
Andrey Volk ec7ec190b0 [mod_sofia] Add TLS v1.3 support. 2021-10-23 21:59:57 +03:00
Ken 53807da088 [mod_sofia] Include isup-oli parameter on outbound invite when we have value in caller profile 2021-10-23 21:59:56 +03:00
surendrasignalwire 28e7353769 [mod_sofia] Adding custom header to refer 2021-10-23 21:59:55 +03:00
Michael Jerris 9163b7569a [mod_sofia] add 'sip_destination_prefix' var to prefix user portion of request uri with a value (note this will not affect calls to registered endpoints) (#70) 2021-10-23 21:59:51 +03:00
Mike Jerris 0283c9e2e7 [mod_sofia] add 'sip_destination_prefix' var to prefix user portion of request uri with a value (note this will not affect calls to registered endpoints) 2021-10-23 21:59:51 +03:00
Seven Du 260d1a40e3 [mod_sofia] add contact header in REFER 2021-10-23 21:59:50 +03:00
Liyang b1714199ce FS-11855: [Core] Offer all negotiated codecs in 200 OK when receiving re-INVITE without SDP 2021-10-23 21:59:48 +03:00
nrensen ce87856c91 [mod_sofia] Remove redundant sip_from->a_url checks 2021-10-21 19:39:19 +03:00
Andrey Volk c58b659f3f [Core] Add new switch_channel_set_variable_strip_quotes API, cleanup mod_sofia. 2021-10-19 20:45:07 +03:00
Andrey Volk 58abf91d1d [Core] Add new switch_core_hash_insert_dup_auto_free() API 2021-10-19 20:39:36 +03:00