Commit Graph

3751 Commits

Author SHA1 Message Date
Andrey Volk 2865603ad2 [Unit-tests] Fix xml error not finding freeswitch.xml on FST_MINCORE_BEGIN 2019-11-26 01:54:43 +04:00
Andrey Volk aa2df4f3f8
Merge pull request #90 from lazedo/k-header
[mod_sofia] add K- to prefixes that create a sip_h_ variable
2019-10-31 20:50:05 +04:00
lazedo b4373c6666 [mod_sofia] add K- to prefixes that create a sip_h_ variable
used by sip tracing tools and not to confuse with application (X-) or (P-)
2019-10-31 12:27:21 +00:00
lazedo f77484b96d [mod_sofia] add existing variables when locating user 2019-10-31 12:20:33 +00:00
Chris Rienzo 9d4f480335 [mod_sofia] Fix some incorrect word contractions. 2019-10-10 09:41:53 -04:00
Andrey Volk fc925a273b Merge pull request #1809 in FS/freeswitch from sofia-leak to master
* commit '20a893fd0683de64353ee2c111aa9c61a867886d':
  FS-12038: [mod_sofia, core] Fix potential leak and race in chat_hash, add switch_core_hash_insert_auto_free().
2019-09-06 11:28:31 -05:00
Andrey Volk 20a893fd06 FS-12038: [mod_sofia, core] Fix potential leak and race in chat_hash, add switch_core_hash_insert_auto_free(). 2019-09-06 20:22:20 +04:00
Andrey Volk 7ee53a6ec1 FS-12040: [mod_sofia] Fix potential leak if realloc fails. 2019-09-06 18:01:55 +04:00
Andrey Volk f93445a38c FS-12010: [sofia-sip] Fix improper cleanup on su_deinit(). 2019-08-20 03:11:28 +04:00
Andrey Volk 96aac32237 FS-12010: [mod_sofia, mod_valet_parking, mod_enum] Fix memory leaks on FreeSWITCH shutdown. 2019-08-19 23:14:24 +04:00
Mike Jerris 090e8284b6 FS-11961: [mod_sofia] Handle request vs response in sofia_media_tech_media 2019-07-25 14:26:36 -06:00
Andrey Volk 9c8de649b3 FS-11947: [Build-System] Do not install test binaries when doing make install. 2019-07-23 19:34:21 +04:00
Andrey Volk 91e99db6c8 FS-11944: [mod_sofia] Fix error: 'nh->nh_home' will always evaluate to 'true'. 2019-07-23 18:47:17 +04:00
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
Liyang 6f9ee4216c FS-11903: [mod_sofia] fix warnV547 Expression 'sip->sip_via' is always true. 2019-07-18 21:27:10 +04:00
Brian West b23d887586 FS-11654: [core] add media_timeout, media_hold_timeout and video vs audio variants 2019-07-18 00:54:37 +04:00
Mike Jerris 7906a2054a FS-11919: [core] add api compatibility for switch_rtp_new 2019-07-17 16:43:34 -04:00
Seven Du 23e050618d FS-11721 fix data length of stripped html 2019-07-17 23:26:05 +04:00
Chris Rienzo 613a3340da FS-11805 [mod_sofia] set default session timeout for outbound calls before overriding it with NAT detection. 2019-07-17 23:11:03 +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
Chris Rienzo 681b7e28ab FS-11785 [mod_sofia] fix scan-build issues 2019-07-17 21:49:50 +04:00
Chris Rienzo e09e84b088 FS-11784 [mod_sofia] quiet the codec negotiation error log. It's something that is not necessarily a FS issue. 2019-07-17 20:14:33 +04:00
Anthony Minessale b8a8765991 FS-11713: [core] fix video upgrade from b to a 2019-07-17 20:07:30 +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
Brian West 0c13b704fc FS-10913: [mod_sofia] do not mark pre_answer unless status is less than 200 2019-07-17 01:49:13 +04:00
Mike Jerris 99b3162ffc FS-11680: [mod_sofia] dont treat registers from websockets received over a proxy over non websockets as nat. We should be sending to the route set and not locking on to send all requests to the websocket directly in this case 2019-07-16 23:26:20 +04:00
Mike Jerris 8a809624cb FS-11498 build sofia into convenience lib to build mod_sofia and test code 2019-07-16 22:52:53 +04:00
Seven Du cc66bcabfd FS-11498 fix url cut off 2019-07-16 22:26:32 +04:00
Andrey Volk a7477ed0e2 FS-11911: Fix build on Debian Buster 2019-07-15 22:23:25 +04:00
Mike Jerris 8e129b913d FS-11906: [mod_sofia] fix NDLB-allow-bad-iananame profile param 2019-06-27 15:30:43 -04:00
Andrey Volk 0d895c50f5 FS-11421: [mod_sofia] Cleanup. 2019-06-21 20:58:12 +04:00
Chris Rienzo e47879604c FS-11824 [mod_sofia] map SIP 607 to SWITCH_CAUSE_CALL_REJECTED 2019-06-06 11:52:07 -04:00
Chris Rienzo 0a6d87edfe FS-11824 [sofia-sip,mod_sofia,core] Added cause codes that map to SIP 600,603,604,606,607 2019-06-06 11:51:51 -04:00
Piotr Gregor 118dd796f3 FS-11421: [core,mod_sofia] Fix rtp_pass_codecs_on_stream_change to process all sdp settings in the re-invite -- add new filter_codecs app and fix some races and negotiation bugs #resolve 2019-06-06 11:08:52 -04:00
Mike Jerris d61126ca82 FS-11814: [mod_sofia] fix regression in fs_path handling on BYE 2019-06-04 15:46:36 -04:00
Mike Jerris 84ee84930c Merge pull request #1717 in FS/freeswitch from ~LAZEDO/freeswitch:bug/FS-11825 to master
* commit '669ea988340056ea313bdb718a5c93e2bcf3cf4c':
  FS-11825 [mod_sofia] use proper flag in blind auth 403 reply
2019-05-09 16:13:21 -05:00
Aron Podrigal acaf903a91 FS-11159: [mod_sofia] Set transport based on our next hop, so if route_uri is present, use it. 2019-05-09 14:44:34 -06: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 6ceb9885d4 FS-9956 [mod_sofia] retain user lookup in blind & acl auth
* retains lookup to be used after caller context is created and
switch_ivr_set_user_xml is called
2019-03-26 22:16:28 +00: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
Andrey Volk 3d7bc78dfa FS-11607: [mod_sofia] Fix Windows build regression by adding missing sofia_json_api.c to the build. 2019-02-12 20:56:52 +04:00
Mike Jerris e961cf72df Merge pull request #1370 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-10598 to master
* commit '2fa6afed6fcf422575d79bf6483b5697a32acf2a':
  FS-10598: [mod_sofia] add replaces header call_id and params to channel variables
2019-02-12 15:53:00 +00:00
Luis Azedo 2fa6afed6f FS-10598: [mod_sofia] add replaces header call_id and params to channel
variables
2019-02-12 15:43:45 +00:00
Mike Jerris 720863188c Merge pull request #1654 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-11607 to master
* commit '614bc42e2ce07492ec8410d4046521a4a6ed6cac':
  [FS-11607] [mod_sofia] add a json api to collect info
2019-02-12 15:16:55 +00:00
lazedo 614bc42e2c [FS-11607] [mod_sofia] add a json api to collect info 2019-01-30 23:44:42 +00:00
Luis Azedo 185ddcb860 FS-11026 [mod_sofia] set proxy on bye if available 2019-01-14 17:05:21 +00:00
Chris Rienzo 604690b5c8 FS-11583 [mod_sofia] fix crash when missing address in register event 2018-12-26 15:51:41 -05:00