Commit Graph

166 Commits

Author SHA1 Message Date
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 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 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
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
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
Michael Jerris 1073925bb4 Fri Mar 7 11:46:34 EST 2008 Pekka.Pessi@nokia.com
* su_root.c: su_task_execute() now accepts NULL as return_value pointer



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7823 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:45:14 +00:00
Michael Jerris 35a43bcf56 Fri Mar 7 11:46:08 EST 2008 Pekka.Pessi@nokia.com
* sip_util.c: fixed doxygen docs



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7822 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:44:42 +00:00
Michael Jerris f05fe867ab Fri Mar 7 11:45:51 EST 2008 Pekka.Pessi@nokia.com
* test_call_hold.c: added more cases for hairy call termination.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7821 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:44:21 +00:00
Michael Jerris bfb245298e Fri Mar 7 11:45:24 EST 2008 Pekka.Pessi@nokia.com
* test_basic_call.c: added test cases for error response terminating the session/dialog



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7820 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:43:57 +00:00
Michael Jerris b5f46db40b * test_proxy: trying to support 200 OK retransmissions over TCP better
Keeping INVITE transactions alive for 64*T1 after initial 200 OK.
  
  Added test_proxy_set_logging() for easier debugging.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7819 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:43:21 +00:00
Michael Jerris 8ee7579dda Fri Mar 7 11:42:18 EST 2008 Pekka.Pessi@nokia.com
* auth_module.c: calculating proper size for user data hash table.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7818 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:42:43 +00:00
Michael Jerris f3a77abce4 Fri Mar 7 11:34:33 EST 2008 Pekka.Pessi@nokia.com
* nta: added nta_outgoing_bind()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7817 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:42:16 +00:00
Michael Jerris bbb36378b2 * nua: passing the culprit to the dialog usage removal functions
If a session was terminated because of a error response returned to a
  request (as specified by RFC 5157), the nua_i_state event was not sent.
  
  Even with this fix, if a dialog has multiple usages, the event usages can be
  terminated without any indication to the application.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7816 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:41:29 +00:00
Michael Jerris f35f29b1c1 Fri Mar 7 06:14:32 EST 2008 Pekka.Pessi@nokia.com
* heap.h, htable2.h: fixed doxygen documentation



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7815 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:40:03 +00:00
Michael Jerris 2cfb72ac79 Thu Mar 6 12:48:33 EST 2008 Pekka.Pessi@nokia.com
* nua_subnotref.c: not increasing the subscription expiration time by NOTIFY



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7814 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:39:27 +00:00
Michael Jerris 2b65396d6b Thu Mar 6 12:47:10 EST 2008 Pekka.Pessi@nokia.com
* nua_dialog.[hc]: storing the last time refresh was requested in du_refquested



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7813 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:38:47 +00:00
Michael Jerris a7be7d7156 Thu Mar 6 12:43:23 EST 2008 Pekka.Pessi@nokia.com
* rules.am, sofia.am various Makefile.ams: added checklib target
  
  make all now builds only the library, not the (nua) test libraries.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7812 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:38:16 +00:00
Michael Jerris 67e1d2c45a Mon Mar 3 12:17:50 EST 2008 Pekka.Pessi@nokia.com
* tport_type_tls.c: not trying to use non-existing certificate/key, randfile, CAfile



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7811 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:37:43 +00:00
Michael Jerris 97a41cbde8 Mon Mar 3 11:23:17 EST 2008 Pekka.Pessi@nokia.com
* test_simple.c: fixed race condition in test_simple.c



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7810 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:37:15 +00:00
Michael Jerris 96b5099a80 undo svn r 7762
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7809 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-07 17:34:46 +00:00
Michael Jerris 7d8bd7ba89 tweak sdp handling
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7799 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-05 22:39:22 +00:00
Michael Jerris dfb6ccc208 Wed Mar 5 05:54:15 EST 2008 Pekka.Pessi@nokia.com
* soa_static.c: fixed initial SOATAG_ORDERED_USER(1)



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7796 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-05 21:12:12 +00:00
Michael Jerris 3d1c17bc00 break rfc3264 rejected m line support so t.38 works (will need to work this into an option)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7769 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-03-02 04:13:51 +00:00
Michael Jerris ca63c019a3 rollback
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7762 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 22:12:16 +00:00
Michael Jerris bf964b2ee8 undo my oops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7761 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 22:11:44 +00:00
Michael Jerris 4c8fdb86de can't pull patches one at a time because they don't compile
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7760 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 21:58:17 +00:00
Michael Jerris afc156463d Wed Feb 6 12:05:46 EST 2008 Pekka.Pessi@nokia.com
* nua: using global preferences. Added NUTAG_SHUTDOWN_EVENTS().

Mon Feb 25 14:14:15 EST 2008  Pekka.Pessi@nokia.com
  * nua: added NUTAG_SUB_EXPIRES()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7759 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 21:57:19 +00:00
Michael Jerris 722b30237f Merge back a couple patches (curse you darcs)
Wed Feb 13 09:23:24 EST 2008  Pekka Pessi <Pekka.Pessi@nokia.com>
  * nua_subnotref.c: do not terminate subscriptions immediately after receiving 200 OK to un-SUBSCRIBE

Mon Feb 25 09:49:39 EST 2008  Pekka.Pessi@nokia.com
  * nua_subnotref.c: fixed problems re-calculating the subscription duration upon NOTIFY
  
  Thanks for Colin Whittaker for reporting this problem.



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7758 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 21:55:20 +00:00
Michael Jerris 7dc80a7d57 revert some patches:
Tue Feb 26 13:02:06 EST 2008  Pekka.Pessi@nokia.com
  * nua_session.c: determine INVITE overlap with re-INVITEs, too

Tue Feb 26 12:45:52 EST 2008  Pekka.Pessi@nokia.com
  * test_nua.c: fixed tests

Tue Feb 26 11:40:00 EST 2008  Pekka.Pessi@nokia.com
  * nua_session.c: fixed non-compiling fix on session state check

Mon Feb 25 14:14:15 EST 2008  Pekka.Pessi@nokia.com
  * nua: added NUTAG_SUB_EXPIRES()

Wed Feb  6 12:05:46 EST 2008  Pekka.Pessi@nokia.com
  * nua: using global preferences. Added NUTAG_SHUTDOWN_EVENTS().

Wed Feb  6 12:05:13 EST 2008  Pekka.Pessi@nokia.com
  * nua_stack.c: pass events while in shutdown if NUTAG_SHUTDOWN_EVENTS(1) has been set

Mon Feb 25 09:49:39 EST 2008  Pekka.Pessi@nokia.com
  * nua_subnotref.c: fixed problems re-calculating the subscription duration upon NOTIFY
  
  Thanks for Colin Whittaker for reporting this problem.

Wed Feb 13 09:23:24 EST 2008  Pekka Pessi <Pekka.Pessi@nokia.com>
  * nua_subnotref.c: do not terminate subscriptions immediately after receiving 200 OK to un-SUBSCRIBE



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7757 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-27 21:50:32 +00:00
Michael Jerris 1bf92980a7 Tue Feb 26 12:45:52 EST 2008 Pekka.Pessi@nokia.com
* test_nua.c: fixed tests



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7744 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-26 18:08:51 +00:00
Michael Jerris 3ee1e1bc8f Darcs sync
Tue Feb 26 13:02:06 EST 2008  Pekka.Pessi@nokia.com
  * nua_session.c: determine INVITE overlap with re-INVITEs, too



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7743 d0543943-73ff-0310-b7d9-9358b9ac24b2
2008-02-26 18:05:58 +00:00