Michael Jerris
2980d25a14
fix sofia initstate correctly
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12073 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-16 23:47:32 +00:00
Mathieu Rene
60671872ef
Fix sofia build on non-ipv6 hosts
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12018 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-14 23:18:53 +00:00
Michael Jerris
0919f6c9cb
only declare var if we need it (SFSIP-122)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12017 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-14 22:56:27 +00:00
Michael Jerris
314da792ca
safety first
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12005 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-13 23:45:25 +00:00
Michael Jerris
1f8d6f0e68
Thu Feb 12 15:35:06 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/su_addrinfo.h: #include <netdb.h> only if bsdsock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11965 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:37:20 +00:00
Michael Jerris
5cb1f54133
Thu Feb 12 15:14:27 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_addrinfo.h: #include <netdb.h>
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11963 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:29:30 +00:00
Michael Jerris
a043230c51
Thu Feb 12 15:01:10 CST 2009 Michael Jerris <mike@jerris.com>
...
* su_port.h: silenced warning in su_port_deferrable()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11959 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:25:18 +00:00
Michael Jerris
0eceb861b0
Thu Feb 12 14:45:02 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_uniqueid: call initstate() with memory from heap
Ignore-this: af9e58551676e173844d0b77af0e287a
When libsofia-sip-ua.so gets unloaded, its data segment gets unloaded, but
random() still wants to use the memory.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11956 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:21:30 +00:00
Michael Jerris
33e58774bc
fix build error on bsd
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11886 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 18:58:24 +00:00
Michael Jerris
f0b3a9a427
silence warning
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11884 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 18:17:54 +00:00
Michael Jerris
16d87679e4
Wed Jan 28 12:27:47 CST 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
...
* Added a comment about suspicious timeout calculation code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11858 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:19:49 +00:00
Michael Jerris
48c52ad5ec
Wed Jan 28 12:15:08 CST 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
...
* Merged deferrable timers from the bleeding-sofia-sip branch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11856 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:19:01 +00:00
Michael Jerris
f26dd3daf8
Wed Jan 28 12:09:00 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_port.h, su_timer.c: refactored su_timer_next_expires()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11855 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:18:37 +00:00
Michael Jerris
cc6fc1d277
Wed Jan 28 12:07:02 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su: added API functions su_timer_is_set() and su_timer_latest()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11853 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:17:49 +00:00
Michael Jerris
231fc1f4eb
Wed Jan 28 12:06:06 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/su_wait.h: added su_timer_deferrable(), su_task_wakeup(), su_root_set_max_defer(), su_root_get_max_defer() and su_task_deferrable().
Added implementation to different main-loop implementations in
libsofia-sip-ua/su.
Fixed su_task_is_running().
In libsofia-sip-ua/su, added tests for deferred timers.
In libsofia-sip-ua-glib/su-glib/su_source.c, added su_source_wakeup() and
su_source_is_running(). Using su_base_port_send() instead of
su_source_send(). Using su_base_port_deferable() and
su_base_port_max_defer(), too.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11852 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:16:44 +00:00
Michael Jerris
fff2dd5b66
Wed Jan 28 12:02:55 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_timer.c: removed redundant checks
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11851 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:16:05 +00:00
Michael Jerris
8247926a88
Wed Jan 28 12:01:13 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_timer.c: timers_remove() now set sut_heap_index to 0
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11850 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:15:37 +00:00
Michael Jerris
b3256ae861
Wed Jan 28 12:00:26 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_timer.c: no more type-punning
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11849 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:14:57 +00:00
Michael Jerris
5c8181cc20
Wed Jan 28 11:52:34 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_timer.c: using heap (instead of red-black tree) for keeping timers sorted
Re-recorded 20070704230449-65a35-f0434c75b0f58a069806e81942c0d5e0821dc9d3
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11848 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:14:33 +00:00
Michael Jerris
63ffde17b9
Fri Jan 16 13:42:21 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* torture_heap.c: fixed warnings from function declarations
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11837 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:09:14 +00:00
Michael Jerris
837f9dfbd5
Tue Jan 13 16:23:09 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_inet_ntop(), su_inet_pton(): added in 1.12.9
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11823 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:00:42 +00:00
Michael Jerris
2fb33f1857
Tue Jan 13 16:20:06 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_localinfo.c: using SU_LOCALINFO_TEST
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11819 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:57:55 +00:00
Michael Jerris
a8ee947d37
Mon Jan 12 08:27:07 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_port.c: added #include <sofia-sip/su_string.h>
Making poll mechanism name matching case-insensitive.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11811 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:54:20 +00:00
Michael Jerris
4d985dc0ef
Fri Jan 9 13:51:56 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_string.c: it is A. Not a Z.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11809 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:53:18 +00:00
Michael Jerris
85cafb105d
Thu Jan 8 12:13:38 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su: using <sofia-sip/su_string.h>
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11792 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:45:51 +00:00
Michael Jerris
4381a94448
add missing files
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11787 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:33:51 +00:00
Michael Jerris
54c0937433
Thu Jan 8 12:08:14 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* memspn.c, memcspn.c: use functions from <sofia-sip/su_string.h>
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11785 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:27:51 +00:00
Michael Jerris
aee3e653cc
Thu Jan 8 11:55:52 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/string0.h: use functions from <sofia-sip/su_string.h>
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11784 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:23:44 +00:00
Michael Jerris
1ad83d3c42
Thu Jan 8 14:11:49 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* su_string.c: fixed su_strcasestr()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11778 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:17:58 +00:00
Michael Jerris
7e750dcf97
Thu Jan 8 12:04:21 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/su_string.h: added
Adding locale-independent, NULL-safe string comparison,
matching and searching functions:
- su_strcmp()
- su_strncmp()
- su_strcasecmp()
- su_strncasecmp()
- su_strmatch()
- su_strnmatch()
- su_casematch()
- su_casenmatch()
- su_strcasestr()
- su_strnspn()
- su_strncspn()
- su_memspn()
- su_memcspn()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11777 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:16:52 +00:00
Michael Jerris
91dc5d5f54
Mon Dec 15 09:16:20 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* su_alloc.c: always unlock home before destroying mutexes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11765 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:03:09 +00:00
Michael Jerris
f5f66dc911
Mon Dec 15 10:33:40 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/heap.h: added protype for su_smoothsort()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11760 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 15:56:04 +00:00
Michael Jerris
76c08c2274
Mon Dec 15 10:33:16 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* su_tag.h: added prototype for tl_vllen()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11759 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 15:55:22 +00:00
Brian West
67fb2a1bbd
Mon Dec 15 10:32:55 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* su_tag_class.h: added prototypes for tag functions
Protypes for t_filter(), t_null_filter(), t_end_filter(),
t_socket_snprintf(), t_socket_ref_set() have been missing.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11758 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 15:54:48 +00:00
Michael Jerris
776b88d332
fix silly compiler warning caused by freebsd not making int same size as void* on some 64 bit amd (SFSIP-113)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11039 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-31 22:26:30 +00:00
Michael Jerris
868856a81c
SFSIP-107 don't destroy locked mutex
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10837 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:29:07 +00:00
Michael Jerris
38d7209c25
Thu Dec 11 11:32:13 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* su_taglist.c. removed globals which should have been static in first place
- t_null_next(), t_null_move(), t_null_dup(), t_null_copy(), t_null_find()
- t_skip_next(), t_skip_move(), t_skip_len(), t_skip_dup(), t_skip_filter()
- t_next_next(), t_next_move(), t_next_len(), t_next_dup(), t_next_filter()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10815 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 19:55:04 +00:00
Michael Jerris
69faddccba
Mon Dec 8 08:59:04 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* su: removed private functions accidentally declared as globals
su_t64_to_time(), mutex_trylocker(), su_port_set_system_preferences()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10814 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 19:53:46 +00:00
Michael Jerris
6e67acc50b
Thu Dec 11 11:32:49 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/su_uniqueid.h: proper prototype for su_random()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10813 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 19:52:05 +00:00
Michael Jerris
8663f5a44c
Thu Dec 11 11:30:29 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* su/addrinfo.c, su/localinfo.c: made usage() static
Make -Wmissing-prototypes happy.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10812 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 19:50:56 +00:00
Michael Jerris
5e61659aff
Thu Nov 27 06:08:29 CST 2008 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/su.h: do not try to use "IPv6 tech preview" with XP
Fix proposed by Filippo Della Betta.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10809 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 19:45:42 +00:00
Michael Jerris
d8c4d22d40
merge whitespace fixes from sofia-sip tree
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10802 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 18:05:22 +00:00
Michael Jerris
7780b6ef76
(SFSIP-88) handle leak on windows
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10006 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-10-14 16:08:43 +00:00
Brian West
92af3e726d
revert this change for now
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9676 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-26 23:37:27 +00:00
Michael Jerris
1cdec9c0fe
unlock before destroy (handle leak from SFSIP-88)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9670 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-26 19:33:17 +00:00
Michael Jerris
d8f1f01486
unlock before destroy (handle leak from SFSIP-88)
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9669 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-09-26 19:30:52 +00:00
Michael Jerris
cf3a921708
Thu Jul 24 13:04:33 EDT 2008 Pekka Pessi <first.last@nokia.com>
...
* su_time0.c, m4/sac-su2.m4: check for CLOCK_MONOTONIC, too
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9270 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-12 17:04:38 +00:00
Michael Jerris
e5f406b9b6
Thu Jul 24 13:02:17 EDT 2008 Pekka Pessi <first.last@nokia.com>
...
* sofia-sip/su_tagarg.h: if va_copy is missing, fall back to __va_copy or memcpy
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9269 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-08-12 17:04:16 +00:00
Michael Jerris
9eda658a77
Thu Jun 5 10:23:18 EDT 2008 Pekka Pessi <first.last@nokia.com>
...
* Using su_inet_ntop and su_inet_pton
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8920 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-07-08 04:36:13 +00:00
Michael Jerris
ed2422b173
sync to sofia darcs trunk
...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8679 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-27 01:36:56 +00:00