Commit Graph

1125 Commits

Author SHA1 Message Date
Andrey Volk f93445a38c FS-12010: [sofia-sip] Fix improper cleanup on su_deinit(). 2019-08-20 03:11:28 +04:00
Andrey Volk 6fe1a87e3e FS-11987: [sofia-sip] Extract URI from info param of SIP Identity Header
- allow for a spaces between "info=" and opening '<'
- extract URI from inside "<>" but allow empty - let the higher level app decide what to do about it
- replace strndup (does not exist on Windows) with memcpy
2019-08-13 19:53:11 +04:00
Piotr Gregor b8ad860a54 FS-11987: [sofia-sip] Add SIPTAG_IDENTITY_STR and sofia-sip Identity Header handling 2019-08-09 00:23:43 +04:00
Chris Rienzo d61a20ce6a FS-11867 [sofia] Send siptrace logs in a single log callback. 2019-07-18 00:24:30 +04:00
Mike Jerris 6378bfc63d FS-11924: [sofia] fix crash in sdp_media_cmp 2019-07-17 14:40:56 -04:00
Andrey Volk a7477ed0e2 FS-11911: Fix build on Debian Buster 2019-07-15 22:23:25 +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
joshebosh 72986c6919 FS-11679 [mod_sofia] SIP message sent by FS logged incompletely in tport dump log 2019-06-06 11:44:27 -04:00
Chris Rienzo 1bd9fd1a86 FS-11785 [sofia] fix dead assignment in parse_payload 2019-06-06 11:25:26 -04:00
Luke Wahlmeier 2ba80c056e FS-11342: fixed hep3 capture_id 2019-04-24 15:07:32 -06:00
Mike Jerris 4fcbc7a87d Merge pull request #1578 in FS/freeswitch from ~TOMP/freeswitch:bugfix/FS-9657-fix-HEP-TLS-capture to master
* commit '300b967cf90259686d3bdffe140731e129f75da2':
  FS-9657 [libsofia] This commit fixes missing HEP capture messages when incoming SIP messages arrive over encrypted TLS transport
2019-02-26 12:44:01 -06:00
Mike Jerris 4e930fb089 FS-11452: [sofia-sip] handle 200/183 w/ sdp receivied out of order quickly 2019-02-18 17:06:53 -05:00
Dragos Oancea 179430cecc FS-11622: WS headers case insensitive 2019-01-21 18:10:15 -05:00
Sergey Safarov abde630fea FS-11345: Fixed Werror=stringop-truncation for mod_opus
Fixed Werror=format-truncation on sofia-sip/libsofia-sip-ua/tport

Fixed Werror=format-truncation on mod/endpoints/mod_verto

Fixed unused-but-set-variable in mod_lua

Fixed Werror=format-truncation on libs/sofia-sip/libsofia-sip-ua/tport

Fixed Wunused-variable Wmaybe-uninitialized on mod_soundtouch

Fixed Wliteral-suffix for libs/unimrcp
2018-12-12 21:18:19 +00:00
Tom Parrott 300b967cf9 FS-9657 [libsofia] This commit fixes missing HEP capture messages when incoming SIP messages arrive over encrypted TLS transport 2018-08-29 13:11:06 +00:00
Brian West 723782ec7f FS-11308: fix segfault on invalid multipart sdp 2018-08-23 09:50:32 -05:00
Seven Du 9a0a594d07 FS-11278 #resolve fix if clause does not guard compiler warning 2018-07-26 11:24:40 -05:00
Andrey Volk dd90763371 FS-9753: [mod_sofia] Fix crash when accessing the WSS interface via regular HTTPS
Conflicts:
	libs/sofia-sip/.update
2018-07-24 07:21:40 +00:00
Anthony Minessale 892181bbc2 FS-8761: [freeswitch-core] Memory leak in FreeSWITCH 2018-07-24 07:21:35 +00:00
Anthony Minessale 2d5e52a012 FS-10762: [freeswitch-core] Websocket logic error #resolve 2018-07-24 07:21:35 +00:00
Anthony Minessale f3d8a3b07a FS-10762: [freeswitch-core] Websocket logic error 2018-07-24 07:21:35 +00:00
Anthony Minessale d395223fa2 FS-10762: [freeswitch-core] Websocket logic error #resolve 2018-07-24 07:21:35 +00:00
Anthony Minessale 180d427cd6 FS-8761: [freeswitch-core] Memory leak in FreeSWITCH 2018-07-24 07:21:33 +00:00
Anthony Minessale 34f0ab58c1 FS-10762: [freeswitch-core] Websocket logic error #resolve 2018-07-24 07:21:33 +00:00
Anthony Minessale c5e662c9bc FS-10762: [freeswitch-core] Websocket logic error 2018-07-24 07:21:33 +00:00
Andrey Volk f37f41ccb2 FS-9753: [mod_sofia] Fix crash when accessing the WSS interface via regular HTTPS 2018-02-21 22:59:42 +03:00
Andrey Volk e380b41a8e FS-10876: [Build-System] Fix build in Visual Studio 2017 and Windows SDK 10. 2018-01-10 23:30:24 +03:00
Anthony Minessale 04067b4e21 FS-10523: [freeswitch-core] Websocket disconnects prematurely #resolve 2017-07-20 02:55:38 -05:00
trevora 74f5b5675e FS-10395: [mod_sofia] Fix ssl error handling in tls sip traffic
Clears SSL error state.

Updates tport_tls.c to clear the SSL error state after an error occurs.

OpenSSL puts errors into a queue that is kept in thread local storage.
In some cases, such as when SSL_ERROR_SSL is returned by SSL_get_errror(),
OpenSSL will queue multiple errors for a single event. When this occurs,
OpenSSL will report an error the next time I/O is performed if the queue
is not cleared first, which can result in TLS connections being torn down
prematurely.
2017-07-06 17:44:26 -04:00
Mike Jerris d8fcb60155 FS-9785: changes to support newer openssl 2017-06-26 14:53:39 -05:00
Brian West dcc0bf72ec FS-10406: [mod_sofia] mod_sofia secure websocket connections SSLv3 and tls v1.0 is still not disabled #resolve 2017-06-21 08:51:50 -05:00
Brian West 975966bca9 FS-10257: [mod_sofia] libsofia-sip-ua/msg no longer builds on Arch Linux due to -Werror=parentheses 2017-06-05 17:44:56 -05:00
Mike Jerris fde6afda4c FS-10150: fix typo 2017-04-24 12:34:40 -05:00
Mike Jerris 6a781a1e2c FS-10150: fix typo 2017-04-22 08:45:57 -04:00
Anthony Minessale c922223541 FS-10150: [freeswitch-core] Reduce writes to closed ssl sockets -- same fix for non-ssl sockets #resolve 2017-04-21 15:43:40 -05:00
Anthony Minessale d2f96796e5 FS-10150: [freeswitch-core] Reduce writes to closed ssl sockets 2017-04-06 17:08:54 -05:00
Anthony Minessale 014f40d0b8 FS-10150: [freeswitch-core] Reduce writes to closed ssl sockets 2017-04-06 17:06:44 -05:00
Anthony Minessale cd5182c27c FS-10150: [freeswitch-core] Reduce writes to closed ssl sockets #resolve 2017-03-17 13:47:35 -05:00
Mike Jerris db3242ff5c .update 2017-02-14 14:26:35 -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
Mike Jerris a3ee7595bb FS-10025: fix global symbol scope issue causing modules to use another modules global pointer 2017-02-09 17:23:30 -06:00
Mike Jerris 6e2764776f Merge pull request #1110 in FS/freeswitch from ~SEBASTIAN/freeswitch:bugfix/FS-9840-fix-some-warnings-V2 to master
* commit '8c94e6f57fd9adee5e6a12535811fff8e4d9ae46':
  FS-9840 mod_avmd: Fix implicit declaration warning
  FS-9840 sofia-sip: fix implicit declaration warning
  FS-9840 mod-verto: fix implicit declaration warning
  FS-9840 mod_sofia: fix redefine warning
2016-12-27 12:36:58 -06:00
Sebastian Kemper 1568194ce5 FS-9840 sofia-sip: fix implicit declaration warning
This fixes the following compile-time warning:

cc1: note: someone does not honour COPTS correctly, passed 2 times
	 LTCOMPILE tport_type_connect.lo
cc1: note: someone does not honour COPTS correctly, passed 2 times
	 LTCOMPILE tport_type_ws.lo
cc1: note: someone does not honour COPTS correctly, passed 2 times
	 LTCOMPILE ws.lo
cc1: note: someone does not honour COPTS correctly, passed 2 times
ws.c: In function 'hton64':
ws.c:730:14: error: implicit declaration of function '__bswap_64' [-Werror=implicit-function-declaration]
  else return __bswap_64(val);
              ^
cc1: all warnings being treated as errors
Makefile:1465: recipe for target 'ws.lo' failed
make[12]: *** [ws.lo] Error 1

Fix by including byteswap.h, which is available on Linux and also
everywhere glibc is used (wpa_supplicant includes this header the same
way).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2016-12-23 21:44:27 +01:00
Sebastian Kemper 3a25d0b20c FS-9840 mod_sofia: fix redefine warning
This fixes the following compile-time warning:

make[8]: Entering directory '/home/sk/tmp/lede/build_dir/target-mips_24kc_musl-1.1.15/freeswitch-1.8.0/src/mod/endpoints/mod_sofia'
  CC       mod_sofia_la-mod_sofia.lo
  CC       mod_sofia_la-sofia.lo
  CC       mod_sofia_la-sofia_glue.lo
  CC       mod_sofia_la-sofia_presence.lo
  CC       mod_sofia_la-sofia_reg.lo
  CC       mod_sofia_la-sofia_media.lo
  CC       mod_sofia_la-sip-dig.lo
In file included from sip-dig.c:137:0:
/home/sk/tmp/lede/build_dir/target-mips_24kc_musl-1.1.15/freeswitch-1.8.0/libs/sofia-sip/libsofia-sip-ua/bnf/../../config.h:522:0: error: "__BYTE_ORDER" redefined [-Werror]
 #define __BYTE_ORDER __BIG_ENDIAN
 ^
In file included from /home/sk/tmp/lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/sys/types.h:70:0,
                 from ../../../../src/include/switch.h:107,
                 from sip-dig.c:135:
/home/sk/tmp/lede/staging_dir/toolchain-mips_24kc_gcc-5.4.0_musl-1.1.15/include/endian.h:11:0: note: this is the location of the previous definition
 #define __BYTE_ORDER __BYTE_ORDER__
 ^
cc1: all warnings being treated as errors

SWITCH_BYTE_ORDER is already used elsewhere in FS source and takes care
of changing byte order without causing a warning

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2016-12-23 21:44:17 +01:00
Anthony Minessale d7dbd7ef61 FS-4102: [mod_sofia] invite to gateway without registration goes to another wrong host #resolve 2016-12-22 16:13:44 -06:00
Seven Du b26fa6e17c FS-9810 fix ws write fail on slow network 2016-12-04 12:49:46 +08:00
William King 15a7156230 FS-9656 Coverity 1364971: resolve memory leak in new HEPv3 logging 2016-10-21 11:35:58 -05:00
Brian West b10aabb94f FS-9623 update .update 2016-10-10 15:54:55 -05:00
Mike Jerris f35c2a4ec2 FS-9623: fix rare crash on startup due to openssl init functions being run multiple times 2016-10-07 15:33:50 -04:00
Anthony Minessale c409499cd9 FS-9576 #resolve [Add Realtime Text] 2016-09-27 16:40:43 -05:00