Anthony Minessale
18f20e24bf
fix bad return vals on sending messages when under stress
2012-11-13 17:56:31 -06:00
Anthony Minessale
e8f3e42f8b
FS-4779 try this patch
2012-11-08 09:52:20 -06:00
Anthony Minessale
6627dc8696
fix some contention issues under really high load...That doesn't mean you need to push it this hard and bug me about it =p
2012-11-07 14:53:16 -06:00
Anthony Minessale
e884de5b07
add NUTAG_RETRY_AFTER_ENABLE() tag to lib sofia and use it in mod_sofia to disable processing retry-after headers on a per-call basis
2012-11-02 13:54:54 -05:00
Seven Du
3ef548eeb5
fix compile, please review
2012-10-27 08:24:01 +08:00
Anthony Minessale
63e2044a7e
modify sofia debug code to print file, line numbers and function name
2012-10-26 14:15:14 -05:00
Anthony Minessale
6d75c36f69
Merge branch 'master' of ssh://git.freeswitch.org/freeswitch
2012-10-23 13:15:14 -04:00
Anthony Minessale
5f469ad2bd
FS-4753 --resolve this should properly detect it everywhere
2012-10-23 13:14:51 -04:00
Anthony Minessale
87c2bb552f
FS-4751 I am leaving out the one for devel-bootstrap.sh because I am not sure it should be /usr/pkg/bin/bash
2012-10-23 12:23:19 -04:00
Seven Du
0263ce9247
FS-4695 fix apple build, seems there's no pthread_setschedprio on Mac, not sure if windows has the same problem in apr/threadproc/unix/thread.c
2012-10-08 09:03:34 +08:00
Jeff Lenk
5620d6d063
windows fixes for priority - needs to be revisited when apr and pthread versions support calls.
2012-10-01 20:34:15 -05:00
Anthony Minessale
ece61bb7d3
bump date to trigger build
2012-10-01 12:25:10 -05:00
Anthony Minessale
0f477d1586
increase pri in sofia
2012-10-01 12:25:10 -05:00
Anthony Minessale
d22e0caf15
trigger update on sofia lib for new patch
2012-09-19 13:06:33 -05:00
Anthony Minessale
016550f218
FS-4627 --resolve
2012-09-18 18:42:09 -05:00
Anthony Minessale
bb69310259
FS-4079 FS-4540 please update to this version
2012-08-15 22:51:41 -05:00
Anthony Minessale
5867d0424d
FS-4079 please try this
2012-07-18 21:48:53 -05:00
Anthony Minessale
75b36c9545
tweaks
2012-07-11 16:48:56 -05:00
Anthony Minessale
2aebe2456f
first pass on some new stuff
2012-07-11 15:15:50 -05:00
Travis Cross
3f24ef16b1
Avoid -Wunused-value warning
...
Don't use the SET_STATUS1 macro as it will always produce this
warning. It's a rather 'interesting' macro that's probably best
avoided anyway.
2012-06-25 06:41:00 +00:00
Travis Cross
cbde2faab2
Fix confusion between size_t and ssize_t
...
readfile returns a value of type ssize_t (signed) and returns -1 if an
error occurs. In auth_readdb_internal, however, we were assigning the
return value of readfile to a variable of type size_t (unsigned), but
then testing this unsigned value to see if it was < 0, a
contradiction. We would thus simultaneously fail to report the error
in readfile and would end up with a corrupted length value.
2012-06-25 06:38:30 +00:00
Travis Cross
e6629ab5f6
Add missing return statement
...
sres_cached_answers_sockaddr is supposed to return ENOENT if no cached
records are found. Because of the missing return statement, however,
it would never do this and would instead return something very likely
to be garbage.
2012-06-25 06:38:30 +00:00
Travis Cross
5077384c5b
Remove a contradiction
...
base64_d returns a value of size_t, which is unsigned. The value
therefore cannot be less than zero. The second check testing whether
it is >= INT_MAX is not a contradiction, but it doesn't make any sense
to check for this (as far as I can tell).
2012-06-25 06:38:30 +00:00
Travis Cross
76a26648d4
Remove a tautological conditional
...
SU_LOG->log_level is declared as unsigned, hence it will always
be >= 0.
2012-06-25 06:38:29 +00:00
Travis Cross
9e52f33d91
Implement MEMLOCK and UNLOCK as functions
...
Converting these macros to functions declared static inline allow the
C type-checker to work and avoid warnings about unused expression
values. These warnings break the build with clang.
2012-06-25 06:38:29 +00:00
Travis Cross
c01a142665
Implement su_errno and su_seterrno as functions
...
This avoid warnings about expressions with unused values. These
warnings break the build with clang.
An optimizing compiler should still inline these calls. If that turns
out not to happen on some platform, we could rename the functions used
internally and declare them static inline.
2012-06-25 06:38:29 +00:00
Travis Cross
43f2c89a08
Fix memset calls in sofia-sip
...
These calls were zeroing only a pointer's worth of memory rather than
the actual size of the objects.
2012-06-25 06:38:29 +00:00
Travis Cross
c85c8d7bbd
Add mechanism to set OpenSSL session timeout
...
In a sofia profile, you can now set the parameter tls-timeout to a
positive integer value which represents the maximum time in seconds
that OpenSSL will keep a TLS session (and its ephemeral keys) alive.
This value is passed to OpenSSL's SSL_CTX_set_timeout(3).
OpenSSL's default value is 300 seconds, but the relevant standard
(RFC 2246) suggests that much longer session lifetimes are
acceptable (it recommends values less than 24 hours).
Longer values can be useful for extending battery life on mobile
devices.
Signed-off-by: Travis Cross <tc@traviscross.com>
2012-06-11 21:46:05 +00:00
Ken Rice
0eca328f48
white space cleanup
2012-05-03 18:55:06 -05:00
Anthony Minessale
8664dc6d5a
some perfomance tweaks
2012-05-03 16:31:21 -05:00
Anthony Minessale
b553d62fbd
add sip_require_timer=true variable to enable require timer on session refresh that breaks finicky endpoints
2012-04-26 10:35:02 -05:00
Michael Jerris
7d3816dbea
silence set but not used
2012-04-25 15:19:47 -04:00
Michael Jerris
ba4280e61f
try to add a tag to disable timer autorequire NUTAG_TIMER_AUTOREQUIRE(0)
2012-04-25 15:15:32 -04:00
Anthony Minessale
62c14df322
FS-3774 --resolve
2012-04-10 16:19:23 -05:00
Anthony Minessale
92fb339434
FS-4071 --resolve
2012-04-04 16:18:53 -05:00
Anthony Minessale
872a0fe658
FS-3957 --resolve
2012-03-01 10:04:07 -06:00
Anthony Minessale
0626c89d4a
always update the .update file when changing the sofia lib
2012-02-29 14:45:39 -06:00
Jeff Lenk
5e66db63f1
FS-3896 --resolve that sizeof was incorrect
2012-02-17 08:50:03 -06:00
Brian West
f2ccbb1918
chmod 755
2012-01-19 19:44:08 -06:00
Anthony Minessale
ef097a19b9
FS-3794 please repat all tests with this version
2012-01-16 17:26:35 -06:00
Anthony Minessale
7938fd81cc
FS-3813 --resolve this should be ok
2012-01-16 12:47:37 -06:00
Marc Olivier Chouinard
6fe7644f44
Oups, forgot this
2011-12-18 11:07:11 -05:00
Marc Olivier Chouinard
f97a3266df
FS-3071 I've commited the upstream passphrase backport
2011-12-18 11:04:59 -05:00
Anthony Minessale
61ac89c894
force sofia rebuild to trigger code in presence patch
2011-12-16 10:29:58 -06:00
Anthony Minessale
e9bde2eb0e
FS-3758 --resolve ok so I wrote my own patch but i did borrow the 2 lines of code to create a seq from the original patch! sofia changes probably need to be converted to a tag if they are to go upstream. This completely manages sub/pub from inside mod_sofia inside the db and subs can now persist and/or fail over mid dialog tested on several things like polycom/snom/yealink on SLA and presence
2011-12-15 16:30:33 -06:00
Anthony Minessale
9fe1f6fdcb
FS-3748 --resolve
2011-12-06 18:12:48 -06:00
Anthony Minessale
58c3c3a049
comment out optional Require header from re-invites for the sake of interop with testy t.38 terminals
2011-11-22 18:22:57 -06:00
Anthony Minessale
a19352aa23
FS-3688 revert
2011-11-18 17:01:03 -06:00
Anthony Minessale
2fae5dfadd
FS-3688 please do clean build and test make current or the equiv
2011-11-17 11:44:10 -06:00
Anthony Minessale
032155c51e
FS-3658 remember to date > libs/sofia-sip/.update when you patch sofia lib
2011-11-02 08:59:23 -05:00
Anthony Minessale
b30ee92003
force a sofia rebuild
2011-08-22 12:33:33 -05:00
Anthony Minessale
cd8ccebbf4
save via_string when sent to nh so we can use it in session timer re-invites to fix double nat issue
2011-08-22 10:58:33 -05:00
Anthony Minessale
a95b5c3823
FS-3474 sofia portion
2011-08-19 16:34:17 -05:00
Mathieu Rene
8446b0f262
mod_sofia: don't compile with their built-in stun server as it is buggy
2011-08-15 17:31:15 +02:00
Anthony Minessale
bc177a4b28
FS-3475 --resolve
2011-08-02 13:51:57 -05:00
Anthony Minessale
ed23847574
fix mac build
2011-08-01 10:01:50 -05:00
Jeff Lenk
02bb35148d
trivial compiler warning
2011-08-01 10:39:11 -05:00
Jeff Lenk
2b6a4f97c3
trivial portability issues c89
2011-08-01 09:48:08 -05:00
Anthony Minessale
3e029f0dfb
add capture hooks to libsofia
2011-07-31 18:36:05 -05:00
Mathieu Rene
7403db7005
Fix segfault in sofia's stun code
2011-07-27 12:26:43 -04:00
Jeff Lenk
130e1c8774
fix windows compile
2011-07-16 19:13:27 -05:00
Anthony Minessale
b0e076a74f
FS-3386 add some more debug defines to sofia and avoid double destroy in nh
2011-07-16 01:03:01 -05:00
Anthony Minessale
c9cab41620
tweak debug code
2011-07-14 00:12:53 -05:00
Anthony Minessale
f761241325
use individual pools instead of sub-pools for nua handles to avoid pool swell
2011-07-11 21:27:36 -05:00
Anthony Minessale
56a82812d6
update
2011-07-06 15:11:47 -05:00
Anthony Minessale
d68605f5ae
FS-3394 --resolve edge case in the 3rd party sofia sip stack library when dealing with a malformed contact and missing ack. Will push upstream to sofia devs
2011-07-06 15:11:26 -05:00
Jeff Lenk
7adaceb87a
Fix for issue reported on the mailing list with a Chinese locale and windows. This commit removes a hidden char that should not have been there anyway.
2011-05-04 16:54:45 -05:00
Anthony Minessale
36262e117f
ping .update to force sofia rebuild
2011-04-27 11:50:32 -05:00
Marc Olivier Chouinard
bc19d28310
Fix regression to dns resolve in sofia. It will make sofia and compiler happy
2011-04-25 15:53:54 -04:00
Marc Olivier Chouinard
626a99f994
sofia-lib: More Fix for -Wunused-but-set-variable required compiler. (Might need to be ported back to sofia)
2011-04-23 20:33:19 -04:00
Jeff Lenk
5bcf487df9
fix for last commit
2011-04-22 21:30:42 -05:00
Marc Olivier Chouinard
92cd095006
sofia-lib: Fix for -Wunused-but-set-variable required compiler. (Might need to be ported back to sofia)
2011-04-22 22:11:34 -04:00
Anthony Minessale
257bc9ff41
lower stack and boost priority of sofia schedule thread
2011-03-22 15:02:10 -05:00
Anthony Minessale
564046412d
FS-3133 --comment-only this looks like a bad assert, can you update and try again, part 2
2011-03-08 12:40:58 -06:00
Anthony Minessale
0be456565b
FS-3133 --comment-only this looks like a bad assert, can you update and try again
2011-03-08 12:39:07 -06:00
Anthony Minessale
91a5e77650
FS-2803
2011-02-18 18:53:40 -06:00
Anthony Minessale
e4bff56765
fix seg in sofia merged from upstream
2011-02-18 18:50:50 -06:00
Michael Jerris
20c2740c64
set minimum initital sip t1 timer to 1000ms to work around race condition on retry timer firing before all the things that are supposed to be handled by the timer are set. The base resolution on this timer is 500ms, so doubling up makes sure we always hit the initial retry timer on the next run, where everything should be set. The side effect was, 1/2 the time on a request that did not get immediate response, the timer would be fired and cleared, but the action (sending retry) was never done, and a new timer was not set, causing the request to just sit zombied and never retry. A better solution would be to find and correct the race condition so the timer is never set to early and we never hit this condition.
2010-11-03 13:58:12 -04:00
Michael Jerris
fc4d290cb7
add support for NDLB-force-rport=safe param that does force-rport behavior only on endpoints we know are safe to do so on. This is a dirty hack to try to work with certain endpoints behind sonicwall which does not use the same port when it does nat, when the devices do not support rport, while not breaking devices that acutally use different ports that force-rport will break
2010-11-03 11:53:39 -04:00
Anthony Minessale
df52cc0952
fix registration overlap timeout snafu
2010-11-02 17:58:24 -05:00
Michael Jerris
9b14bd5dbd
fix file modes in sofia
2010-10-03 05:53:07 -04:00
Michael Jerris
ad0298f7f9
FS-234: add missing AM_PROG_CC_C_O to sofia configure
2010-10-03 04:59:25 -04:00
Jeff Lenk
bcd31ecaf3
correction to last patch
2010-09-29 16:00:09 -05:00
Jeff Lenk
45ecbc2f61
fix warnings on windows x64 builds src and mods projects - only libsofia included on the libs side
2010-09-29 15:47:58 -05:00
Jeff Lenk
46dd24c2e9
SFSIP-220 VS2010 sofia posix problem
2010-08-21 22:39:01 -05:00
Jeff Lenk
6626211ab6
MODSOFIA-92 step 3 - now hooked to build
2010-08-17 11:33:40 -06:00
Jeff Lenk
ba1546e055
FSBUILD-297 remove strange characters
2010-08-10 22:07:44 -05:00
Anthony Minessale
c15ee980a7
SFSIP-219
2010-08-03 13:43:29 -05:00
Michael Jerris
4add409cbd
fix signed/unsigned build error on windows
2010-06-06 21:03:10 -04:00
Anthony Minessale
c1acebdb42
patch incomplete multipart parsing code
2010-06-01 17:13:32 -05:00
Michael Jerris
a7f4892887
sofia-sip: extend timeout for session expires on short timeouts to be 90% of timeout instead of 1/3 to handle devices that do not refresh in time such as polycom (SFSIP-212)
2010-05-31 09:50:44 -04:00
Michael Jerris
f356c5e6f3
sofia-sip: fix null derefernce segfault in soa
2010-05-31 08:55:42 -04:00
Stefan Knoblich
8f2b8388fc
[2/3][sofia-sip] gcc-4.5: Fix enum type mismatch.
2010-04-17 11:17:28 +00:00
Michael Jerris
957d92c430
fix openbsd sofia build
2010-04-02 01:15:18 -04:00
Anthony Minessale
b163206358
fix typo in sofia that causes endless loop when you have a challenge with 2 auth headers in it
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17114 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-26 17:38:00 +00:00
Michael Jerris
9f5bf3b592
fix openbsd sofia build -- don't ask -- (FSBUILD-256)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17072 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-03-23 01:20:48 +00:00
Brian West
4d3dac5b52
FSBUILD-249
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16744 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-23 22:56:54 +00:00
Mathieu Rene
0a2ee53b72
FSCORE-551
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16635 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-02-13 21:06:56 +00:00
Anthony Minessale
aaa822ba79
SFSIP-197
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16534 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-28 20:35:17 +00:00
Anthony Minessale
38bb497133
make sofia not auto-respond to SUBSCRIBE refresh requests
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16275 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-13 15:48:34 +00:00