Commit Graph

895 Commits

Author SHA1 Message Date
Michael Jerris 8eb03e0895 Wed May 7 15:54:41 EDT 2008 Pekka Pessi <first.last@nokia.com>
* outbound.c: fix sofia-sip.org bug #1930055
  
  If the initial REGISTER was not challenged, the natted contact did not get
  unregistered.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8338 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 17:47:20 +00:00
Michael Jerris 439ad8460e Wed May 7 10:59:52 EDT 2008 Pekka Pessi <first.last@nokia.com>
* su_log.c: allow multiple calls su_log_soft_set_level() to change logging level



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8337 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 17:46:43 +00:00
Michael Jerris f4ef1c7847 Wed May 7 10:59:16 EDT 2008 Pekka Pessi <first.last@nokia.com>
* tport_tls.c: avoid free(NULL)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8336 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 17:45:13 +00:00
Michael Jerris a4d8241a5d Wed May 7 10:08:17 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nua: improved logging, fixed macro expansion on __LINE__ on most compilers



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8335 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 17:44:46 +00:00
Michael Jerris 68543ddc11 Wed May 7 10:05:57 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nua_stack.c: if nua_register() fails to provide To, use From.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8334 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 17:44:02 +00:00
Michael Jerris 3ee862d73f Wed May 7 10:04:14 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nua_session.c: do not terminate session without soa if SDP O/A seems to fail
  
  SDP O/A may be buried inside MIME multipart



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8333 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 17:43:16 +00:00
Michael Jerris f39b423778 Wed May 7 09:10:28 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nta.c: do not replace host:port in user-specified Via header 
  
  Note that port for UDP is replaced if request is stateful and there is no
  rport.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8332 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 17:42:46 +00:00
Michael Jerris c4a4a1de6e updated iax build for msvc
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8324 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-09 01:58:44 +00:00
Anthony Minessale 5b77843583 slim down iax build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8321 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-08 23:25:36 +00:00
Anthony Minessale 752b0ff8f6 slim down build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8320 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-08 22:43:34 +00:00
Michael Jerris d7e5d673d0 remove un-needed stuff from tree.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8319 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-08 22:14:31 +00:00
Michael Jerris ae53be1ca8 bump
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8288 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-07 12:28:48 +00:00
Michael Jerris f9af6b4d2d Tue May 6 17:00:19 EDT 2008 first.last@nokia.com
* nta.c: use consistently uint32_t when handling millisecond timers inside nta
  
  The timer handling failed miserably on 64-bit platforms each time uint32_t
  counter for milliseconds wrapped around.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8287 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-07 12:28:33 +00:00
Michael Jerris d9f1667944 Thu Apr 24 11:49:57 EDT 2008 first.last@nokia.com
* nua_session.c: fix in session activation by Jussi Mutanen



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8286 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-07 12:27:30 +00:00
Michael Jerris c497958ce9 Thu Apr 24 11:31:48 EDT 2008 first.last@nokia.com
* nua: fixed problems with event fetch
  
  With event fetch the subscription was terminated before the NOTIFY was
  sent/received or final response to SUBSCRIBE was sent.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8285 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-07 12:26:42 +00:00
Michael Jerris fb34d3835c Tue May 6 17:00:59 EDT 2008 first.last@nokia.com
* nta.c: reindented patch by Mike J



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8284 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-07 12:25:42 +00:00
Michael Jerris e917d5f460 remove sub_hash in favor of using a lookup directly into the sip stack
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8283 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-06 23:49:35 +00:00
Michael Jerris 7f5e6987e6 add nua_handle_by_call_id
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8282 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-06 23:30:00 +00:00
Michael Jerris b48ee12c1c add nua_handle_by_call_id
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8280 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-05-06 22:28:20 +00:00
Michael Jerris 9e5e1e7c9a tweak to silence warnings.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8192 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-24 13:52:19 +00:00
Michael Jerris 267aeb5f84 Wed Apr 23 14:30:07 EDT 2008 first.last@nokia.com
* nua_notifier.c: fixed crash with event fetch



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8182 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-23 18:38:25 +00:00
Michael Jerris 6b46b8e0b6 Fri Apr 18 06:55:45 EDT 2008 Pekka.Pessi@nokia.com
* torture_sip.c: added test for sip_header_as_string() producing string longer than 128

Fri Apr 18 06:55:45 EDT 2008  Pekka.Pessi@nokia.com
  UNDO: torture_sip.c: added test for sip_header_as_string() producing string longer than 128

Wed Apr 23 13:56:40 EDT 2008  Pekka.Pessi@nokia.com
  * torture_sip.c: added test for sip_header_as_string() producing string longer than 128



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8181 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-23 18:37:18 +00:00
Michael Jerris ae4b779567 revert previous patch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8180 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-23 18:36:25 +00:00
Michael Jerris 7ae460ea23 try to silence stupid compiler
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8177 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-23 16:49:34 +00:00
Michael Jerris 1b5a7779ec interim fix for SFSIP-55, don't segfault on subscribe with Expires: 0
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8174 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-22 21:26:50 +00:00
Michael Jerris 9c99bf982f windows build tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8170 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-22 15:03:29 +00:00
Michael Jerris 415d1c58d4 Fri Apr 18 06:54:40 EDT 2008 Jerry Richards <jerryr at tonecommander dot com>
* sip_util.c: fixed sip_header_as_string()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8149 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-21 22:30:48 +00:00
Anthony Minessale 8619341669 tweak for proper bootstrap after removing generated file
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8096 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-12 05:57:04 +00:00
Anthony Minessale 52af768374 remove generated file. will require re-bootstrap/configure, sorry
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8095 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-12 05:34:07 +00:00
Anthony Minessale e229a6a670 remove generated file. will require re-bootstrap/configure, sorry
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8094 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-12 05:13:58 +00:00
Michael Jerris e55ac3efaf be more C compliant.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8056 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-08 13:18:22 +00:00
Michael Jerris aca515cb8e Mon Apr 7 13:20:55 EDT 2008 Pekka.Pessi@nokia.com
* nua_session.c: fixed call state reporting from failed INVITE
  
  If INVITE was returned a failure response, and session was being terminated
  (like BYE was sent while INVITE transaction was on-going), Sofia reported
  session as already terminated.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8052 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-07 19:44:39 +00:00
Michael Jerris 5f917507db bump
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8048 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-07 17:06:56 +00:00
Michael Jerris a4d7c3d5c5 Mon Apr 7 13:01:00 EDT 2008 Pekka.Pessi@nokia.com
* nua_session.c: if timer is Require'd default to local refresher if Session-Expires has no refresher parameter



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8046 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-07 17:05:41 +00:00
Michael Jerris 4c9b1270ca Fri Apr 4 11:15:04 EDT 2008 Pekka.Pessi@nokia.com
* tport_type_udp.c: use IP_MTU_DISCOVER socket option to turn off DF flag
  
  Added check for IP_MTU_DISCOVER in m4/sac-su2.m4



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8022 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-04 17:39:38 +00:00
Michael Jerris 41fcf45a8f Fri Apr 4 11:14:04 EDT 2008 Pekka.Pessi@nokia.com
* su_addrinfo.c: avoid crash in su_freeaddrinfo() if ai is NULL



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8021 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-04 17:39:18 +00:00
Michael Jerris e9e9acd16c Thu Apr 3 11:09:19 EDT 2008 Pekka.Pessi@nokia.com
* soa_static.c: when generating offer with ordered mode, fill gaps in session
  
  If session has m= lines that user SDP does not, the ordered mode got
  confused when generating 2nd offer (e.g., for re-INVITE).



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8018 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-03 22:33:40 +00:00
Michael Jerris ad8ed1be64 Tue Apr 1 06:49:10 EDT 2008 Pekka.Pessi@nokia.com
* nua_stack.c: include Allow-Events in most messages initiating dialog
  
  The Allow-Events header is now included with NOTIFY, PUBLISH, REGISTER, and
  initial INVITE, SUBSCRIBE, REFER, and OPTIONS, and also responses to
  SUBSCRIBE, REFER, OPTIONS, and PUBLISH as well as responses to initial
  INVITE and NOTIFY.
  
  Thanks to Jerry Richards for pointing out the problem.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8017 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-03 22:33:12 +00:00
Michael Jerris 7dad32f5ae Wed Mar 26 07:20:16 EDT 2008 Pekka.Pessi@nokia.com
* torture_sip.c: updated tests (quoting semicolon in query/header part)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8016 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-03 22:32:46 +00:00
Michael Jerris f64797998d Wed Mar 26 07:18:34 EDT 2008 Bernhard Suttner
* sip_tag_class.c: escape semicolons in headers section of Replaces URI



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8015 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-04-03 22:31:57 +00:00
Michael Jerris f39d931259 don't assert that people are using sip correctly
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7954 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-24 20:02:01 +00:00
Anthony Minessale aa0bea3d5c deal with MODENDP-99
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7934 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-19 17:56:27 +00:00
Michael Jerris fa50712266 Tue Mar 18 16:16:49 EDT 2008 Pekka.Pessi@nokia.com
* nta: fixed checks for rfc2543 retransmssions/CANCEL/ACK

  Thanks to Michael Jerris for reporting this problem.

fix for SFSIP-49



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7919 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-18 20:24:22 +00:00
Michael Jerris 6ffbad9541 revert part of the reverting from the reverted revert. (see r7833, the fun continues)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7839 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-08 00:12:57 +00:00
Michael Jerris 87223a5c1e revert for now the following patch which introduces a segfault:
Tue Feb 26 11:09:37 EST 2008  Pekka.Pessi@nokia.com
* nua: initial fix for sf.net bug #1827511

BYE can now be challenged.




git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7833 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 19:20:27 +00:00
Michael Jerris 875c0851d0 Fri Mar 7 12:31:52 EST 2008 Pekka.Pessi@nokia.com
* sres_blocking.c: validating calloc() return value



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7828 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:52:20 +00:00
Michael Jerris 2abc13f368 Fri Mar 7 12:24:05 EST 2008 Pekka.Pessi@nokia.com
* su_alloc.c: using safe free



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7827 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:50:32 +00:00
Michael Jerris aeb1829220 Fri Mar 7 11:49:17 EST 2008 Pekka.Pessi@nokia.com
* tests/Makefile: using testsdir, installing check_sofia there



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7826 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:47:44 +00:00
Michael Jerris c2380dd2cc Fri Mar 7 11:47:53 EST 2008 Pekka.Pessi@nokia.com
* test_nua.mmp: not using IN_LIBSOFIA_SIP_UA and IN_LIBSOFIA_SRES with test program
  
  (test program links with dll, not contributes to it)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7825 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:47:04 +00:00
Michael Jerris 222fcbddb7 Fri Mar 7 11:47:06 EST 2008 Pekka.Pessi@nokia.com
* tport: allow using TPTAG_LOG() and TPTAG_DUMP() with tport_set_params().



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7824 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:46:28 +00:00