* 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
* 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
* 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
* 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
* nua/check_register.c: Increased test timeouts to 10 seconds
This prevents occasional test timeout errors in Maemo Scratchbox.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10351 d0543943-73ff-0310-b7d9-9358b9ac24b2
* outbound.c: Retain keepalives even when 'natify' is disabled
Mon Oct 6 09:02:14 EDT 2008 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
* Resolved a conflict in outbound.c with the natify patch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10350 d0543943-73ff-0310-b7d9-9358b9ac24b2
* check_session.c: added more CANCEL cases
2.2.5 - CANCEL glare test case (failing)
2.2.6 - Simple nua UAS CANCEL case
2.2.7 - RFC 2543 client CANCELing, nua as UAS
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9511 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nua_session.c: destroying invite transaction only after nua_i_invite is sent
Added nua_client_request_clean(), nua_invite_client_should_ack().
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9290 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nua_subnotref.c: do not terminate SUBSCRIBE usage if Expires: 0 is used
Terminate subscription only when NOTIFY is received or timeout occurs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9277 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nua_subnotref.c: nua_unsubscribe() should not terminate usage w/ final response
Do not terminate until final NOTIFY or timeout.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9275 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nua_dialog.h: added NUA_DIALOG_USAGE_PRIVATE() and NUA_DIALOG_USAGE_PUBLIC()
Macros to use with non-NULL pointers.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8605 d0543943-73ff-0310-b7d9-9358b9ac24b2
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.
Add the fixes to segfault issue caused by this patch:
Wed May 21 10:40:06 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nua_client_request: keep own reference to nua handle
Mon May 12 18:58:38 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nua_session.c: sanitized BYE handling
Terminate or cancel other session-related transactions when session gets
terminated.
Fri May 16 10:28:26 EDT 2008 Pekka Pessi <first.last@nokia.com>
* nua_session.c: fix crash if session was terminated while INVITE was in progress
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8589 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nua_stack.c: include Allow-Events in requests initiating dialog, too
The Allow-Events header is now alwats included with NOTIFY requests, and
initial INVITE, SUBSCRIBE, REFER, and OPTIONS requests.
Thanks to Jerry Richards for pointing out the problem.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8467 d0543943-73ff-0310-b7d9-9358b9ac24b2
Tue May 6 13:53:21 EDT 2008 Pekka Pessi <first.last@nokia.com>
* tests: added 2nd check-based test suite for nua
Wed May 7 08:26:48 EDT 2008 Pekka Pessi <first.last@nokia.com>
* suite2_for_nua.c: more test cases
Wed May 7 13:40:05 EDT 2008 Pekka Pessi <first.last@nokia.com>
* suite2_for_nua.c, s2tester.[hc]: made it easier to refactor test cases
Wed May 7 14:34:54 EDT 2008 Pekka Pessi <first.last@nokia.com>
* test_nua: moved to tests subdirectory
Wed May 7 14:37:06 EDT 2008 Pekka Pessi <first.last@nokia.com>
* check_nua: moved to libsofia-sip-ua/nua
Mon May 12 19:00:26 EDT 2008 Pekka Pessi <first.last@nokia.com>
* check_nua: updated
Tue May 13 16:45:21 EDT 2008 Pekka Pessi <first.last@nokia.com>
* test_s2.h, test_s2.c: added internal DNS server
Tue May 13 16:46:08 EDT 2008 Pekka Pessi <first.last@nokia.com>
* check_register.c: added test case register_1_3_3_1 using tcp pingpong
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8400 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nua: using NUTAG_PROXY() as handle-specific tag
Added nua_dialog_update_params() and virtual method usage_update_params()
for each dialog usage.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8384 d0543943-73ff-0310-b7d9-9358b9ac24b2
* 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
* 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
* 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
* 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
* 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
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
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
* 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