Michael Jerris
96e65ddec3
Thu Feb 12 12:02:48 CST 2009 Jarod Neuner <janeuner@networkharbor.com>
...
* tport_tls: add/fix some tls init logging
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11964 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:30:05 +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
b8f52353f3
Thu Feb 12 15:14:07 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* soa: make better effort in keeping addresses (c= and o= lines) in user SDP
Ignore-this: a6da9ed249dba3309e3dbbbdb4262082
The address selection logic now prefers (unicast) addresses in already
present in SDP, if they get returned by su_getlocalinfo().
The process currently tries to avoid link-local addresses.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11962 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:28:58 +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
459bad1563
Thu Feb 12 14:56:11 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* tport_type_tls.c: fixed error logging in tport_tls_connect()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11958 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:23:05 +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
a24c4dc1f7
Thu Feb 12 14:28:27 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* s2dns.c: fixed cname records
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11954 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:19:13 +00:00
Michael Jerris
9bbacf9669
Thu Feb 12 14:27:12 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* s2tcase.c: allow multiple calls to s2_select_tests()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11953 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:18:20 +00:00
Michael Jerris
f10955584c
Thu Feb 12 14:24:41 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sres: sres_record_type() now checks pointer argument
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11952 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:17:44 +00:00
Michael Jerris
85315adc1b
Thu Feb 12 14:21:21 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sresolv: added asynchrous sip resolver
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11951 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:16:37 +00:00
Michael Jerris
93e3ef0f64
Thu Feb 12 14:20:26 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sres.c: improve logging upon errors
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11950 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:15:20 +00:00
Michael Jerris
816f984722
Tue Feb 10 19:39:02 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sres_cache: added sres_cache_copy_answers()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11949 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:14:45 +00:00
Michael Jerris
87b2408635
Thu Feb 12 14:11:37 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_client.c: fix request message reference counting problem
Ignore-this: ac81944c1c2c095fdc66a51ca857e87c
Internal error response already decreases reference count.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11948 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:13:20 +00:00
Michael Jerris
745d319722
Wed Feb 11 13:42:09 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_client.h: removed orphan SOFIA_BEGIN_DECLS
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11946 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:11:43 +00:00
Michael Jerris
cbb7805d53
Thu Feb 12 07:17:08 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* tport.c: return correct errno from tport_connect()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11945 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:11:15 +00:00
Michael Jerris
b5ef501d09
Thu Feb 12 07:17:31 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>
...
* tport.c: return correct errno from tport_listen()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11944 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:10:11 +00:00
Michael Jerris
8ff2eefcea
Wed Feb 11 15:01:48 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* msg/Makefile.am: allow short header forms in MIME attachments, too
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11943 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:09:30 +00:00
Michael Jerris
613a5ebf86
Wed Feb 11 15:01:08 CST 2009 Della Betta Filippo <filippo DOT dellabetta AT telecomitalia DOT it>
...
* tport.c: fixed tport_queuelen() when queue is full
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11942 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:08:29 +00:00
Michael Jerris
c27cb514a9
Wed Feb 11 14:51:48 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_i_network_changed: use NUTAG_DETECT_NETWORK_UPDATES() preference
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11941 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:07:50 +00:00
Michael Jerris
dded4ad263
Wed Feb 11 14:52:29 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_stack_launch_network_change_detector: fixed root usage
Ignore-this: 3db82870d6996c32605109d8295b4a00
su_root_add_network_changed() should use stack root, not api root.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11940 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:07:15 +00:00
Michael Jerris
695cae05bf
Tue Feb 10 16:55:11 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* url: accept empty port number in URLs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11934 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:01:01 +00:00
Michael Jerris
39404c4dd3
Tue Feb 10 07:07:33 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* rules/silent.am: fixed make SOFIA_SILENT=
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11880 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:41:38 +00:00
Michael Jerris
4216c4f9ed
Tue Feb 10 07:06:03 CST 2009 Paulo Pizarro <paulo DOT pizarro AT gmail DOT com>
...
* nta.c: ACK and BYE orphan 200 OK matching with destroyed client transaction
Ignore-this: c4f2b165dd2f197f129044e5c653cd8
ETSI Test cases SIP_CC_OE_CE_V_019, SIP_CC_OE_CE_TI_011_012
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11873 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:38:45 +00:00
Michael Jerris
6376b4b705
Tue Feb 10 07:03:27 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_session.c: fixed race condition with ACK
Ignore-this: 37d3e74b169e8a154b9734dbade74d84
Response message got destroyed after sending ACK if stack was run in
multithreaded mode.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11872 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:38:16 +00:00
Michael Jerris
a53ebf2c0d
Fri Feb 6 05:16:13 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nta: consider route as set if it is included when creating a leg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11870 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:37:22 +00:00
Michael Jerris
73b6ee94a3
Thu Jan 29 12:32:12 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_session.c: do not add Min-SE header if not needed
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11863 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:22:54 +00:00
Michael Jerris
e202543c76
Wed Jan 28 12:32:01 CST 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
...
* nua/outbound.c: calculate the keepalive timer interval with regard to the maximum defer interval
The point is not to miss the keepalive deadlines.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11861 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:20:59 +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
a37b99f072
Wed Jan 28 12:20:34 CST 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
...
* Added deferrable timer support to the GSource integration.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11857 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:19:25 +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
314d3883dd
Wed Jan 28 12:07:53 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* outbound.c: make outbound timer deferrable
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11854 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:18:14 +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
37a7c283b1
Wed Jan 28 13:34:54 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_dialog.c: avoid debug output with nua_dialog_usage_set_refresh_at()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11847 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:14:06 +00:00
Michael Jerris
5821ce1230
Mon Jan 26 09:45:30 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* RELEASE: msg_multipart_t::mp_len from usize_t to unsigned
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11846 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:13:36 +00:00
Michael Jerris
b7bc5240f0
Fri Jan 23 11:13:41 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* sresolv: caching SRES_RECORD_ERR in case a CNAME is returned, too
Tracing the CNAMEs when doing cache lookups.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11844 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:12:33 +00:00
Michael Jerris
587408b8ce
Fri Jan 16 13:37:43 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua: fixed problem handling re-SUBSCRIBE when it creates new dialog
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11836 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:08:41 +00:00
Michael Jerris
10c67f8219
Fri Jan 16 13:27:39 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* soa: fixed restoring state after failed offer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11835 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:07:59 +00:00
Michael Jerris
5baf8d20b6
Fri Jan 16 07:42:29 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua: fixed problems with route set handling
RFC 3261 allows the route set changes while dialog is in early state.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11834 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:07:09 +00:00
Michael Jerris
293a9b1483
Fri Jan 16 07:22:08 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nta: added nta_leg_client_reroute()
nta_leg_client_route() did not catch actually RFC 3261 section 12.1.2 feel
and spirit, not to speak about letter.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11833 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:06:00 +00:00
Michael Jerris
e26f3e19f0
Thu Jan 15 12:06:00 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nta.c: when sending ACK to [3456]XX, copy the To header as-is from the response
Problem reported by Paulo Pizarro.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11831 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:05:16 +00:00
Michael Jerris
38dabb3635
Thu Jan 15 09:50:45 CST 2009 Jarod Neuner <janeuner@networkharbor.com>
...
* TLS Subject Checking in tport
sofia-sip/tport.h:
* tport_delivered_from_subjects() returns type (su_strlst_t const *)
* Export tport_subject_search()
sofia-sip/tport_tag.h + tport_tag.c:
* Remove TPTAG_TLS_VERIFY_PEER()
- Depreciated. Use TPTAG_TLS_VERIFY_POLICY instead.
- Binary Compatibility is preserved.
* Add TPTAG_TLS_VERIFY_POLICY()
- tport can verify incoming and/or outgoing connections, using:
1) Certificate Signatures only - or -
2) Certificate Signatures and Certificate Subjects
* Add TPTAG_TLS_VERIFY_DEPTH()
- Restrict certificate chain verification to a set length.
* Add TPTAG_TLS_VERIFY_DATE()
- Disable notBefore/notAfter checking (application: embedded devices)
* Add TPTAG_TLS_VERIFY_SUBJECTS()
- Incoming connections must present client certificates with subjects
that match an item in this list.
- Intended Use: Proxy Authentication
* Replaced TPTAG_TRUSTED() with TPTAG_X509_SUBJECT()
- Commented out for future use.
- Intended Use: SIP User Identities in Server Certificates.
* Add appropriate doxygen documentation.
tport.c
* Add tport_subject_search()
- Subject can be a hostname, IP Address, or a URI.
- Valid subject examples include:
example.com
alice@example.com
sip:alice@example.com
sips:alice@example.com
* tport_by_addrinfo() matches tpn_canon against the subject list
of reusable TLS connections.
tport_tls.h:
* Add tls_init_secondary()
* Remove tls_init_slave() & tls_init_client()
tport_tls.c:
* tls_verify_cb() supports TPTAG_TLS_VERIFY_DATE()
* tls_post_connection_check() verifies certificate subjects.
* tls_init_secondary()
- Replaces tls_init_slave(), tls_init_client(), and tls_clone().
tport_type_tls.c:
* Removed erroneous reference to tport_tls_deliver()
* Fix a memory leak caused by duplicate calls to tls_clone().
* Populate the (tport_t *)->tp_subjects field with peer certificate data for
new secondary connections.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11830 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:03:59 +00:00
Michael Jerris
27a5a679be
Thu Jan 15 09:38:34 CST 2009 Bernhard Suttner <bernhard DOT suttner AT comdasys DOT com>
...
* sip_util.c: fix 484 respose to REFER in sip_response_terminates_dialog()
Asterisk (v 1.2.7.1) does response with 484 if a client does send a refer
with a @ReferTo header to an unknown number. This is therefore not
fundamentally wrong and the dialog should not be destroyed!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11829 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:03:30 +00:00
Michael Jerris
90311fbd2d
Tue Jan 13 16:22:39 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* tport_type_tls.c, tport_tls.c: added Jarod Neuner as one of authors
Cleaned whitespace, too.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11822 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:00:16 +00:00
Michael Jerris
fa2fe6a216
Tue Jan 13 14:59:50 CST 2009 Pekka Pessi <first.last@nokia.com>
...
* nua_session.c: send answer in ACK if offer was sent in 200 OK to re-INVITE
Thanks for Liu Yang for reporting the problem.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11813 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:55:11 +00:00