Commit Graph

597 Commits

Author SHA1 Message Date
Michael Jerris b5c88496bf Tue Feb 10 07:36:35 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: use tcase_add_test() and s2_select_tests() from <s2check.h>


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11935 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 21:01:58 +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 1fb0e173ff fix error when building in not-silent mode
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11930 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-12 19:52:42 +00:00
Anthony Minessale 596f9afded temp hack to avoid horrible random bug, as in the function random
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11897 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 23:39:30 +00:00
Raymond Chandler 8984a298a9 patch from FSBUILD-118
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11888 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 20:19:56 +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 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 0c141d9b81 Tue Feb 10 07:17:20 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: moved s2_fast_forward() to s2 library



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11879 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:41:05 +00:00
Michael Jerris 8d3480b06a Tue Feb 10 07:19:33 CST 2009 Pekka Pessi <first.last@nokia.com>
* s2check: added s2_dns



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11878 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:40:21 +00:00
Michael Jerris fa58d2100b Tue Feb 10 07:18:55 CST 2009 Pekka Pessi <first.last@nokia.com>
* s2check: added s2util.h, s2_fast_forward()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11877 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:39:55 +00:00
Michael Jerris 441f043162 Tue Feb 10 07:18:22 CST 2009 Pekka Pessi <first.last@nokia.com>
* s2check: fixed s2_tcase_add_test()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11876 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:39:29 +00:00
Michael Jerris 7441387d86 Tue Feb 10 07:11:52 CST 2009 Paulo Pizarro <paulo DOT pizarro AT gmail DOT com>
* nua/check_etsi: added test case SIP_CC_OE_CE_TI_011_012
  Ignore-this: 245e07ad07c4e3d5e09ab93014594e43
  
  Ensure that the IUT, when an INVITE client transaction has been in the
  Terminated state, on receipt of a retransmitted Success (200 OK) responses
  sends an ACK request until 64*T1 duration expires, after this, on receipt of
  a retransmitted Success (200 OK) responses does not send an ACK request.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11875 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:39:07 +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 394cc90bfe Fri Feb 6 07:48:45 CST 2009 Pekka Pessi <first.last@nokia.com>
* run_test_sresolv: check for apparmor, too



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11871 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:37:39 +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 aef10e83e3 Fri Feb 6 04:58:13 CST 2009 Pekka Pessi <first.last@nokia.com>
* open_c: added nua_client.[hc], nua_server.[hc]



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11868 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:26:07 +00:00
Michael Jerris d0e01999d7 Fri Feb 6 04:57:51 CST 2009 Pekka Pessi <first.last@nokia.com>
* open_c/build_sources.cmd: building su_tag_ref.c



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11867 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:25:45 +00:00
Michael Jerris 5ad7e6d811 Fri Feb 6 04:54:56 CST 2009 Pekka Pessi <first.last@nokia.com>
* win32: added nua_client.[hc], nua_server.[hc]



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11866 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:25:18 +00:00
Michael Jerris f1adad6ce9 Fri Feb 6 04:05:47 CST 2009 Pekka Pessi <first.last@nokia.com>
* build_sources.cmd: building su_tag_ref.c



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11865 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:24:54 +00:00
Michael Jerris e3b8b194c5 Wed Feb 4 08:53:17 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua: moved nua_server* and nua_client* code into their own files
  Ignore-this: 23d66f0189ef8e324c2f23266f0ccf2
  
  Added nua_server.h, nua_server.c, nua_client.h, nua_client.c.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11864 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:24:28 +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 db953eb8e9 Wed Jan 28 13:21:36 CST 2009 Pekka Pessi <first.last@nokia.com>
* su-glib/su_source.c: fixed su_source_is_running() signature



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11862 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:22:23 +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 cf1f74fbc3 Wed Jan 28 12:31:06 CST 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
* su-glib/su_source.c: improved the deferrable timeout calculation
  


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11860 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:20:26 +00:00
Michael Jerris 81d8e58821 Wed Jan 28 12:30:55 CST 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
* su-glib/su_source.c: updated copyright years
  



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11859 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:20:06 +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 419003821f Wed Jan 21 10:38:08 CST 2009 Pekka Pessi <first.last@nokia.com>
* msg_multipart_s: fixed mp_len type
  
  The msg_multipart_s should follow msg_pub_s layout.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11845 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:13:16 +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 ba7a77e7da Wed Jan 21 14:49:03 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: added test check_simple.c, test cases for SIMPLE



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11843 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:11:38 +00:00
Michael Jerris 8fb926d3ac Wed Jan 21 14:32:32 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_nua: fiddled with some timing issues



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11842 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:11:20 +00:00
Michael Jerris 4fd9addba6 Wed Jan 21 11:54:35 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_etsi.c: disabled failing test case for now



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11841 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:11:01 +00:00
Michael Jerris 9f5f3adfac Wed Jan 21 11:53:25 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua: added check_etsi.c with ETSI test cases



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11840 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:10:38 +00:00
Michael Jerris 95da674967 Fri Jan 16 13:42:45 CST 2009 Pekka Pessi <first.last@nokia.com>
* test_auth_digest.c: fixed warnings from function declarations



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11839 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:10:01 +00:00
Michael Jerris 3a1ac4929c Fri Jan 16 13:42:36 CST 2009 Pekka Pessi <first.last@nokia.com>
* torture_bnf.c: fixed warnings from function declarations




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11838 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:09:44 +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 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 377dc94f13 Thu Jan 15 12:06:29 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_session.c: make sure To header in ACK to [3456]XX is copied from response



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11832 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:05:32 +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 48b5844e30 Thu Jan 15 09:33:08 CST 2009 Pekka Pessi <first.last@nokia.com>
* Doxyfile.aliases: added @NEW_1_12_11, @VERSION_1_12_11



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11828 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:02:55 +00:00
Michael Jerris e88161aec1 Thu Jan 15 08:40:56 CST 2009 Pekka Pessi <first.last@nokia.com>
* s2check: added



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11827 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:02:34 +00:00
Michael Jerris 90e9a0971f Thu Jan 15 06:48:04 CST 2009 Pekka Pessi <first.last@nokia.com>
* msg_parser.c: msg_header_add_format() added in 1.12.10



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11826 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:02:00 +00:00
Michael Jerris 5976bff650 Wed Jan 14 06:35:56 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta_tag.c: updated tag documentation
  
  NTATAG_GRAYLIST added in 1.12,8, NTATAG_MAX_PROCEEDING() in 1.12.9,
  NTATAG_TLS_RPORT() in 1.12.10



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11825 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:01:43 +00:00
Michael Jerris 1b04142409 Tue Jan 13 16:23:40 CST 2009 Pekka Pessi <first.last@nokia.com>
* NUTAG_REFRESH_WITHOUT_SDP(): added in 1.12.10



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11824 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 17:01:12 +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 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 ec1024d619 Tue Jan 13 16:21:44 CST 2009 Pekka Pessi <first.last@nokia.com>
* sac-su2.m4: check for strnlen(), do not check for strcasestr()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11821 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:59:44 +00:00
Michael Jerris 8cb0c75279 Tue Jan 13 16:20:56 CST 2009 Pekka Pessi <first.last@nokia.com>
* TPTAG_TLS_VERIFY_PEER() added in 1.12.10



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11820 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:59:20 +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 b8b13a8a8a add missing file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11818 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:57:36 +00:00
Michael Jerris e0d54adf61 Tue Jan 13 15:19:59 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_session.c: added a test case for sending re-INVITE w/o offer



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11817 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:56:57 +00:00
Michael Jerris ca5a8c80f8 Tue Jan 13 15:19:02 CST 2009 Pekka Pessi <first.last@nokia.com>
* check_session.c: renamed test case 2.3.3 as 2.6.3


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11816 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:56:33 +00:00
Michael Jerris 1c34aadc39 Tue Jan 13 10:10:10 CST 2009 Pekka Pessi <first.last@nokia.com>
* rules/silent.am: silence. at last.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11815 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:56:03 +00:00
Michael Jerris 6b60944349 Tue Jan 13 15:03:25 CST 2009 Pekka Pessi <first.last@nokia.com>
* torture_bnf.c: added some host_is_domain() cases



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11814 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:55:27 +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
Michael Jerris 7d792fe3ea Mon Jan 12 08:29:14 CST 2009 Pekka Pessi <first.last@nokia.com>
* sip-dig.c: using su_casenmatch() to match NAPTR service



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11812 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:54:44 +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 21c92ab2d8 Fri Jan 9 14:51:02 CST 2009 Pekka Pessi <first.last@nokia.com>
* auth_client.c: auc_has_authorization() is happy if one scheme is supported
  
  If there was multiple challenges with different authentication schemes,
  auc_has_authorization() required that all were supported (and used) before
  authentication could proceed.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11810 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:53:49 +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 5ded72256a Fri Jan 9 13:26:53 CST 2009 Paulo Pizarro <paulo DOT pizarro AT gmail DOT com>
* nta.c: do not restart timer E when provisional response is received
  
  According to the (informational) RFC 4321 section 1.2 Timer E is not altered
  during the transition to Proceeding.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11808 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:52:40 +00:00
Michael Jerris cefbcf0a29 Thu Jan 8 15:13:56 CST 2009 Pekka Pessi <first.last@nokia.com>
* sip: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11806 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:52:15 +00:00
Michael Jerris d8f68d7a56 Thu Jan 8 15:12:28 CST 2009 Pekka Pessi <first.last@nokia.com>
* sresolv: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11805 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:51:44 +00:00
Michael Jerris adeaf3cfff Thu Jan 8 15:03:28 CST 2009 Pekka Pessi <first.last@nokia.com>
* nea: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11804 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:51:14 +00:00
Michael Jerris 1ab22fe83c Thu Jan 8 15:00:46 CST 2009 Pekka Pessi <first.last@nokia.com>
* tport: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11803 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:50:52 +00:00
Michael Jerris 2fa6c7435d Thu Jan 8 14:56:49 CST 2009 Pekka Pessi <first.last@nokia.com>
* msg: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11802 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:50:29 +00:00
Michael Jerris 070546335d Thu Jan 8 14:55:01 CST 2009 Pekka Pessi <first.last@nokia.com>
* bnf: using <sofia-sip/su_string.h>



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11801 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:49:51 +00:00
Michael Jerris 31367efd3b Thu Jan 8 14:52:37 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11800 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:49:25 +00:00
Michael Jerris 371b3a6fa7 Thu Jan 8 14:47:09 CST 2009 Pekka Pessi <first.last@nokia.com>
* utils/sip-dig.c: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11799 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:49:01 +00:00
Michael Jerris deba583e96 Thu Jan 8 14:29:39 CST 2009 Pekka Pessi <first.last@nokia.com>
* nth: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11798 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:48:40 +00:00
Michael Jerris 54ba0c3fa3 Thu Jan 8 13:57:46 CST 2009 Pekka Pessi <first.last@nokia.com>
* soa: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11797 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:48:09 +00:00
Michael Jerris 3ee0b589cf Thu Jan 8 13:50:53 CST 2009 Pekka Pessi <first.last@nokia.com>
* iptsec: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11796 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:47:44 +00:00
Michael Jerris c749834728 Thu Jan 8 13:00:38 CST 2009 Pekka Pessi <first.last@nokia.com>
* sdp: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11795 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:47:14 +00:00
Michael Jerris eeff4df08b Thu Jan 8 12:38:05 CST 2009 Pekka Pessi <first.last@nokia.com>
* nta: use <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11794 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:46:50 +00:00
Michael Jerris 5628845768 Thu Jan 8 12:14:14 CST 2009 Pekka Pessi <first.last@nokia.com>
* http: use <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11793 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:46:25 +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 1b44df1dc5 Thu Jan 8 12:13:05 CST 2009 Pekka Pessi <first.last@nokia.com>
* tests: using <sofia-sip/su_string.h> functions



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11791 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:45:24 +00:00
Michael Jerris b200642f87 Thu Jan 8 12:12:55 CST 2009 Pekka Pessi <first.last@nokia.com>
* sofia-sip/su_string.h, su_string:c: added to open_c



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11790 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:44:58 +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 b1fae35534 Thu Jan 8 12:12:46 CST 2009 Pekka Pessi <first.last@nokia.com>
* sofia-sip/su_string.h, su_string:c: added to win32



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11786 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:28:33 +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 906fbd4ecf Fri Jan 9 10:33:14 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua_session.c: when negotiating session refresher, default to UAC



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11783 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:23:10 +00:00
Michael Jerris 0074441afa Fri Jan 9 10:19:27 CST 2009 Pekka Pessi <first.last@nokia.com>
* auth_client.c: updated documentation



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11782 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:21:43 +00:00
Michael Jerris a92ad4b3fb Thu Jan 8 14:20:45 CST 2009 Pekka Pessi <first.last@nokia.com>
* outbound.c: use default peer info when outbound is created



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11781 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:19:47 +00:00
Michael Jerris 295d2f46fd Thu Jan 8 13:04:57 CST 2009 Pekka Pessi <first.last@nokia.com>
* docs/Doxyfile.aliases: Added @VERSION_1_12_10, @NEW_1_12_10
  
  Also @VERSION_UNRELEASED and @NEW_UNRELEASED.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11780 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:19:02 +00:00
Michael Jerris 0e7377b897 Thu Jan 8 13:04:03 CST 2009 Pekka Pessi <first.last@nokia.com>
* auth_client: do not crash with unknown authentication schemes



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11779 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:18:36 +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 a57ff1865b Thu Jan 8 10:48:47 CST 2009 Pekka Pessi <first.last@nokia.com>
* RELEASE: multi-WWW-Authenticate bug



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11776 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:16:20 +00:00
Michael Jerris b3e2fcdbb5 Thu Jan 8 10:34:22 CST 2009 Pekka Pessi <first.last@nokia.com>
* sip_security.c: allow multiple WWW-Authenticate and Authorization headers



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11775 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:15:46 +00:00
Michael Jerris f92b45a9fa Mon Jan 5 06:43:24 CST 2009 Pekka Pessi <first.last@nokia.com>
* tport_type_tls.c: no tport_tls_deliver() yet



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11774 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:15:05 +00:00
Michael Jerris 1d36053c74 Mon Jan 5 06:43:04 CST 2009 Pekka Pessi <first.last@nokia.com>
* tport_tls.c: silences warnings on signedness



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11773 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:14:35 +00:00
Michael Jerris 0a07ac4b16 Mon Jan 5 06:42:09 CST 2009 Pekka Pessi <first.last@nokia.com>
* tport_tls.c: su_home_new() already zeros the allocated memory



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11772 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:14:05 +00:00
Michael Jerris c2f5696a8a Mon Jan 5 06:31:12 CST 2009 Pekka Pessi <first.last@nokia.com>
* nua_session.c: default to initiate session refreshes
  
  Use local refresher unless remote end explicitly indicates that it takes
  care of refreshing the session. Bug reported and initial patch by Timo
  Bruhn.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11771 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:12:35 +00:00
Michael Jerris 751c24f73b Mon Jan 5 04:22:01 CST 2009 Pekka Pessi <first.last@nokia.com>
* RELEASE: added Jarod's description of TLS improvements



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11770 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:11:56 +00:00
Michael Jerris 52fa079b2b Tue Dec 16 16:19:37 CST 2008 Jarod Neuner <janeuner@networkharbor.com>
* Early TLS Handshake and Verification
  
  tport_type_tls.c:
  * tport_tls_accept():
    - Replaces tport_accept for incoming TLS connections.
  * tport_tls_connect():
    - Replaces tport_base_connect() for outgoing TLS connections.
  
  tport_tls.c:
  * tls_t now use a memory home instead of malloc.
  * removed tls_check_hosts()
  * tls_connect():
    - Replaces tport_base_connect for TLS connection setup.
    - Completes TLS handshake and verifies peer certificates.
    - Destroys suspect TLS connections before sending/receiving payload.
    - Populates a su_strlst_t with subjects from the peer certificate.
  
  tport.c:
  * tport_is_verified()
    - true if peer certificate validated successfully
  * tport_delivered_from_subjects()
    - Certificate subjects listed in the peer certificate.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11769 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:11:33 +00:00
Michael Jerris ece5252042 Tue Dec 16 11:58:26 CST 2008 Jarod Neuner <janeuner@networkharbor.com>
* Helper functions for vtp_connect and vtp_wakeup_pri.
  
  - Expose tport_setname() and tport_wakeup() via tport_internal.h
  - Add tport_register_secondary() for adding secondaries to a root, and
    to alleviate the need to export tprb_append.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11768 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:10:58 +00:00
Michael Jerris 470a963e03 Fri Dec 19 10:51:02 CST 2008 Pekka Pessi <first.last@nokia.com>
* tport_logging.c: do not use stamp as format string
  
  Original patch by Mike Jerris.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11767 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:08:28 +00:00
Michael Jerris 0ac71634bf Fri Dec 19 08:38:53 CST 2008 Pekka Pessi <first.last@nokia.com>
* nta.c: be consistent with maxsize and max_proceeding types
  
  Original patch by Mike Jerris



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11766 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:04:30 +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 c536aac576 Mon Dec 15 10:57:06 CST 2008 Pekka Pessi <first.last@nokia.com>
* sresolv: made sres_record_class static
  
  Should never been global.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11764 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 15:58:09 +00:00
Michael Jerris 73e167fb85 Mon Dec 15 10:43:17 CST 2008 Pekka Pessi <first.last@nokia.com>
* test_nua.c: made usage static



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11763 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 15:57:41 +00:00
Michael Jerris 9adbdfbd54 Mon Dec 15 10:54:36 CST 2008 Pekka Pessi <first.last@nokia.com>
* RELEASE: mention removed globals



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11762 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 15:57:13 +00:00
Michael Jerris 76b8884bb7 Mon Dec 15 10:50:21 CST 2008 Pekka Pessi <first.last@nokia.com>
* sofia-resolv/sres_cache.h: added prototype for sres_cache_clean()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11761 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 15:56:43 +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 10659bfbd5 disable doxygen
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11639 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 21:16:48 +00:00
Michael Jerris bdedb3ab43 doxygen -u
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11632 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-04 16:29:40 +00:00
Michael Jerris fd0a6589e0 sofia-sip: fix gcc 4.3 build (FSBUILD-105)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11518 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-27 22:59:00 +00:00
Michael Jerris d88a0fbefc mod_sofia: fix build error on gcc 4.3 (FSBUILD-105)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11334 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-01-21 19:28:20 +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 6408a21cf2 SFSIP-112 sofia does not compile w/ gcc 4.3 x86 w/ -Werror
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10877 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-18 23:24:19 +00:00
Michael Jerris 9b2a8aaa0e .update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10838 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:42:38 +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 1236f4a454 Tue Dec 9 11:11:08 CST 2008 Pekka Pessi <first.last@nokia.com>
* RELEASE, configure.ac: opening development head



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10836 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:25:54 +00:00
Michael Jerris d665909359 Mon Dec 8 09:40:33 CST 2008 Pekka Pessi <first.last@nokia.com>
* configure.ac, RELEASE: bumped version



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10835 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:25:01 +00:00
Michael Jerris 1b16791e18 Wed Dec 3 06:00:07 CST 2008 Pekka Pessi <first.last@nokia.com>
* Updated AUTHORS, RELEASE.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10834 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:24:18 +00:00
Michael Jerris e5c185a842 fixed whitespace
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10833 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:23:37 +00:00
Michael Jerris 10c6c9dbb8 Thu Nov 27 06:09:44 CST 2008 Pekka Pessi <first.last@nokia.com>
* nua_session.c: use signed ss_sdp_version (soa_get_user_version() returns int)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10832 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:22:43 +00:00
Michael Jerris 29cc1e016d Wed Nov 26 13:18:57 CST 2008 Pekka Pessi <first.last@nokia.com>
* configure.ac: bumped version number



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10831 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:22:01 +00:00
Michael Jerris 7f70d131ff Fri Nov 21 08:12:28 CST 2008 Pekka Pessi <first.last@nokia.com>
* nua_session.c: call soa_activate() only when nh->nh_soa is valid



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10830 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:21:04 +00:00
Michael Jerris 833500ae64 Fri Nov 21 04:52:55 CST 2008 Pekka Pessi <first.last@nokia.com>
* nua: try to cope if a re-INVITE nor its ACK contain SDP
  
  Some SIP user-agents use INVITE without SDP offer to refresh session.
  By default, NUA sends an offer in 200 OK to such an INVITE and expects
  an answer back in ACK. Now nua tries to recover from such a Offer/Answer
  protocol error.
  
  Also, if NUTAG_REFRESH_WITHOUT_SDP(1) tag is used, and if the re-INVITE was
  received without SDP, no SDP offer is sent in 200 OK.
  
  Thanks for Anthony Minessale for reporting the problem.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10829 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 21:20:22 +00:00
Michael Jerris 3d981b497b Wed Nov 26 12:58:40 CST 2008 Pekka Pessi <first.last@nokia.com>
* nua_session.c: changing session expiration time to follow spirit (not only letter) of RFC 4028
  
  Change suggested by Timo Bruhn.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10827 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:47:18 +00:00
Michael Jerris d5c9694677 Mon Dec 15 08:31:45 CST 2008 Stas Maximov <smaximov@ieee.org>
* nta: NULL host and port in user Via are filled automaticaly

  NULL host or port in user-supplied Via header will be filled
  automaticaly by NTA, just like branch and rport params.

  Added related test case to test_nta_api.c.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10826 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:34:00 +00:00
Michael Jerris f7c4b7ad7c Wed Nov 26 13:30:48 CST 2008 Pekka Pessi <first.last@nokia.com>
* outbound.c: silenced warnings
  
  wtf? xxx.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10825 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:28:53 +00:00
Michael Jerris 253c81bb45 Wed Nov 26 12:42:31 CST 2008 Paulo Pizarro <paulo DOT pizarro AT gmail DOT com>
* tport: new tag TPTAG_TLS_VERIFY_PEER

  With this tag, the verification of certificates can be controlled:
  0: no verify certificates.
  1: on server mode, the certificate returned by client is checked and
     if fail the TLS/SSL handshake is immediately terminated.
  1: on client mode, the server certificate is verified and
     if fail the TLS/SSL handshake is immediately terminated.

  I added this tag, because I'd like that my application not connected to a
  server with a untrusted certificate.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10824 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:26:19 +00:00
Michael Jerris 3294718a97 Wed Nov 26 12:38:03 CST 2008 Pekka Pessi <first.last@nokia.com>
* tport.c: log real transport name by tport_vsend()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10823 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:22:09 +00:00
Michael Jerris 929d0ba8bd Fri Nov 14 17:26:48 CST 2008 Jarod Neuner <janeuner@networkharbor.com>
* sips_in_contact_bug



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10821 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:16:58 +00:00
Michael Jerris 3f739fad27 Wed Nov 12 12:33:20 CST 2008 Pekka Pessi <first.last@nokia.com>
* nta: moved truly internal data type definitions into nta.c



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10820 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:12:43 +00:00
Michael Jerris 538a0e2db9 Wed Nov 12 11:30:28 CST 2008 Fabio Ferrari <fabioferrari AT gmail DOT com>
* nta: new tag NTATAG_TLS_RPORT()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10818 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:10:32 +00:00
Michael Jerris decdc84984 Thu Dec 11 06:02:09 CST 2008 Pekka Pessi <first.last@nokia.com>
* sdp_print.c: print sdptl in lowercase, too



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10817 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-12-16 20:01:12 +00:00