Commit Graph

591 Commits

Author SHA1 Message Date
Mariah Yang d654faa5a9 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for mod_sofia 2019-07-18 22:22:56 +04:00
Mike Jerris e7dda1b027 Revert "FS-9490: [mod_sofia] add filter to SIP messages that match a regexp."
This reverts commit 53dbe5d84a.

This previous patch made logger function not reentrant so reverting until we can get a fix without that issue
2019-07-17 22:57:55 +04:00
Mike Jerris a9e634b664 FS-11557: [mod_sofia] add support for RFC 7989 Session-ID header
(enable with sofia profile param rfc-7989=true)

FS-11557 [mod_sofia, mod_conference, core] Add support for re-INVITE when setting Session-ID in conference after call has been answered.

FS-11557 [mod_conference] Missed a spot where APP_SESSION_ID needed to be set.

FS-11557: set session id for outbound (initial requests)

FS-11557: [mod_sofia] rename vars and functions "session id" -> "session uuid" to reflect the real meaning for rfc7989.

FS-11557: fix bug - colliding chan var names (session_id)

FS-11557: check nil session uuid

FS-11557 : replace CS_NEW with CS_INIT for when originating calls, generate new uuid.

FS-11557: handle inbound (UAS mode, one leg)

FS-11557: generic param handling and filter via new sip profile option "rfc-7989-filter", eg:
<param name="rfc-7989-filter" value="logme, sec-agree, privacy" />

FS-11557: renamed chan vars (reflect meaning only for RFC7989)

FS-11557: fallback to RFC7329 - "old" Session-ID

FS-11557: distinguish between request and replies when we read the header
(to provide compatibility with old RFC7329 - section 11 of RFC7989)
FS-11557: change more vars/consts names

FS-11557: move compat flag on the channel.

FS-11557: add Session-ID header in REFER

FS-11557: needs extra condition on received initial request

FS-11557: handle NOTIFY

FS-11557: support answer() in dialplan - it was sending back a 200 OK with Session-ID invalid, eg: A=NIL;B=X

FS-11557: add Session-ID for NOTIFY (more cases)

FS-11557: handle reply to SIP INFO (add Session-ID header)

FS-11557: handle case of BYE after REFER, when the channel is destroyed already (save the uuid on sofia_private)

FS-11557: handle more SIP reply cases (eg: 202 Accepted , more negative replies)

FS-11557: handle ACK (UAS role)

FS-11557: added "rfc-7989-force-old" profile param - to enforce old rfc7329 for the UAC role. default off.
enabled with "<param name="rfc-7989-force-old" value="true" />".

FS-11557: fallback to rfc7329 fixes.

FS-11557: set flag CF_RFC7329_COMPAT on partner channel where needed

FS-11557: fix crash (mod_conference)
2019-07-17 19:13:41 +04:00
Luis Azedo 669ea98834 FS-11825 [mod_sofia] use proper flag in blind auth 403 reply 2019-05-02 01:56:12 +01:00
Mike Jerris f4a7274195 Merge pull request #1682 in FS/freeswitch from ~LAZEDO/freeswitch:proxy-token-acl-port to master
* commit '6ceb9885d4bd10763b982255af732e3e6a8936ee':
  FS-9956 [mod_sofia] retain user lookup in blind & acl auth
  FS-11025 [mod_sofia] use ports for acl check
  FS-11025 [core] allow/check ports in network lists
  FS-10746 [mod_sofia] allow authoritative proxy to provide token
2019-03-26 17:21:02 -05:00
lazedo aca0798700 FS-9942 [mod_sofia] allow intercept for other channels 2019-03-26 21:16:11 +00:00
Luis Azedo 254b739b96 FS-11025 [mod_sofia] use ports for acl check
* optionally use port for acl check
* optionally lookup acl token from header
* optionally processed auth only by acl
2019-03-06 11:56:06 +00:00
Luis Azedo 46c1b4217c FS-10746 [mod_sofia] allow authoritative proxy to provide token 2019-03-06 11:55:59 +00:00
lazedo 614bc42e2c [FS-11607] [mod_sofia] add a json api to collect info 2019-01-30 23:44:42 +00:00
Seven Du 9911004b52 FS-11562 #resolve add register ip and port to gateway register state change events 2018-12-10 10:22:20 -05:00
Mike Jerris 2f4c9b363e FS-10067: [mod_sofia] add update-refresher profile param and sip_update_refresher channel var to use update for session timers 2017-03-03 11:01:26 -06:00
Mike Jerris e8f6ed3d93 Merge pull request #1183 in FS/freeswitch from ~SAFAROV/freeswitch2:FS-10009 to master
* commit '6c12f69e0c893646eda0bb010873583040aa136b':
  FS-10009: mod_fail2ban - Added logging of network_ip for abandoned calls
2017-02-14 13:32:05 -06:00
Armen Babikyan 6ed86abf9f FS-9300: Add support for disabling sofia's 100 Trying via configuration, and sending 100 Trying from dialplan 2017-02-13 14:49:05 -08:00
Sergey Safarov 6c12f69e0c FS-10009: mod_fail2ban - Added logging of network_ip for abandoned calls 2017-02-10 13:17:45 -05:00
Brian West 4ead2fcffc FS-9916: [mod_spandsp] OB fax calls go zombie #resolve 2017-01-04 16:14:59 -06:00
Seven Du 50e0f0195e FS-9832 start a single gateway or _all_ gateways 2016-12-08 20:47:22 +08:00
davidcsi 53dbe5d84a FS-9490: [mod_sofia] add filter to SIP messages that match a regexp. 2016-11-11 10:00:28 -06:00
Brian West 832144088d FS-9726 Fix malformed PAI 2016-11-10 13:42:31 -06:00
Chris Rienzo 3ff491274d FS-9698 fire custom sofia::bye_response event when response to BYE is received and fire-bye-response-events profile param is true 2016-11-04 12:00:39 -04:00
Anthony Minessale a49182c0f4 FS-9680 #resolve [Add proxy-message param to sofia] 2016-10-27 17:40:17 -05:00
Anthony Minessale 16fe6e6ca9 FS-9668 #resolve [Add proxy-info feature] 2016-10-25 17:45:22 -05:00
Armen Babikyan 75f4114443 FS-9636 [mod_sofia] Add sofia.conf parameter to make every transfer a nightmare transfer 2016-10-11 18:23:31 -07:00
Brian West 7258a2484b FS-9506 #resolve [Proxy-Hold improvement, Support a=inactive] 2016-09-13 13:17:51 -05:00
Muhammad Zaka 589a0e682e FS-9276 new feature proxy in-dialog calls sip notify and info similar to proxy hold 2016-08-01 11:44:12 +01:00
François 78c2ed0526 FS-9241 Use tls_public_url instead of tls_url in INVITE Contact when NAT is detected 2016-07-05 17:15:04 +02:00
Muhammad Zaka 05cc770818 FS-9192-proxy-hold: proxy hold when proxy media and proxy mode are disabled; its similiar to proxy-refer 2016-06-15 10:10:47 +01:00
Anthony Minessale b9d31dc9b7 FS-9214: fix 3pcc behavior
Fix callflow issues with  3pcc=true and 3pcc=proxy and interactions with sip_wait_for_aleg_ack
removes passthrough of 183 on 3pcc=proxy (that was previously not functioning)
2016-06-07 11:43:08 -05:00
Sergey Khripchenko 2766eaf49e FS-9225: [mod_sofia] Allow to force SIP REGISTER Expires: to be within configured range.
Allow to force SIP REGISTER Expires: to be within MIN and MAX values.
Not just to force it to one specific value using "sip-force-expires".

New profile parameters:
  "sip-force-expires-min"
  "sip-force-expires-max"
2016-06-03 05:30:01 -07:00
Anthony Minessale 0a8e115b98 FS-9060: [mod_sofia] correct issues with hold and broken soa negotiations after performing a bypass media reinvite 2016-04-22 12:26:13 -05:00
Mike Jerris 9ec3253563 Merge pull request #771 in FS/freeswitch from ~SAFAROV/freeswitch2:FS-7125 to master
* commit 'ff1c384e13f07afaac98334532667ebf8093a1f1':
  FS-7125 Added sofia event "wrong_calls_state". This is for fail2ban logging
2016-03-29 14:06:54 -05:00
Sergey Safarov ff1c384e13 FS-7125 Added sofia event "wrong_calls_state". This is for fail2ban logging 2016-03-29 21:21:38 +03:00
Anthony Minessale 0335cc3291 FS-8918 #resolve [10 Second timeout after Notify during Proxy refer.] 2016-03-28 13:14:38 -05:00
Anthony Minessale 8423f28d43 FS-8841 #resolve [Debian - FS Hang ] 2016-03-17 18:48:59 -05:00
Brian West 2c031e4b91 FS-8879 #resolve [SIP UPDATE and attended transfer] 2016-02-26 17:44:33 -06:00
Luis Azedo f80d6cc551 FS-8763 [mod_sofia] set is_auth on switch_ivr_set_user result 2016-01-20 16:09:17 +00:00
Michael Jerris 5509a62706 FS-8042, FS-8182: add ping time (in ms) to sip_registrations table, displays as part of the show commands that show registration details, add force_ping=true user var to force options ping on individual registered endpoints 2015-09-21 12:13:28 -05:00
karl anderson 58043483cd FS-7773 [mod_sofia] transfer events #resolve 2015-07-10 19:46:10 +01:00
karl anderson b2b9555d34 FS-7760 #resolve
added xml fetch for channels to externally support nightmare transfer
depends on channel-xml-fetch-on-nightmare-transfer profile param (default is disabled)
2015-07-03 19:28:17 +01:00
Anthony Minessale c9065a85b6 FS-7602 add some of 3b2d00f3e6 from verto to sip and refactor some code to keep sip working like verto 2015-06-02 21:20:03 -05:00
Mike Jerris 95c387315e Merge pull request #33 in FS/freeswitch from ~MOY/freeswitch:sip-watch-headers to master
* commit '3df55b9bb5325ed0f7273576264c5aa94a8a6810':
  Add sip_watched_headers variable to launch events when a SIP message contains a given SIP header
2015-06-02 11:19:05 -05:00
Moises Silva 3df55b9bb5 Add sip_watched_headers variable to launch events when a SIP message contains a given SIP header
FS-6801 #resolve
2015-06-02 00:47:18 -04:00
Anthony Minessale bc152ed9d8 FS-7500: set 500ms min on retransmit of outdated xml based intraframe request that EVERYTHING still seems to use 2015-05-28 12:47:31 -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 65502293cf FS-6890 #comment revert 2014-11-12 13:09:39 -06:00
Anthony Minessale a279bf38af FS-6890 #comment please test 2014-11-11 12:56:40 -06:00
Anthony Minessale f66f2cae8c FS-6890 #comment please test 2014-11-06 17:13:02 -06:00
Brian West 3b9f0c32e6 FS-6927 #comment allow sub millisecond resolution for option ping times 2014-10-29 16:01:28 -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
Matteo Brancaleoni beb1d17921 FS-6400 Improve sip ping generation by distributing them across an interval 2014-10-14 14:24:21 +02: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