* nta.c: nta_leg_tag(leg, NULL) now always returns the tag (old or new)
Ignore-this: f5a7d67ed90e2c284f6696d6b5b89326
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12739 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nta: fix timer N3
Ignore-this: 4018f3a32723692153389c2109b72296
Try UDP instead of TCP if TCP server does not respond quick enough.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12417 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nta: calculate timer D correctly
Ignore-this: f43d9dcc11fb6a19c3674a6da35ee7ec
Timer D is either 32 seconds or 64 times T1, whichever is larger.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12387 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nta: timeout CANCELed INVITE transactions properly
Ignore-this: 4e7fdc56065dba617352443a9310bb28
Use timer D (instead of timer C) to timeout CANCELed INVITE transactions.
Also, generate 408 Request Timeout to all forks that have not received a
final response.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12381 d0543943-73ff-0310-b7d9-9358b9ac24b2
* 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
* 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
* 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
* 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
* 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
* nta: when in UAS mode, respond to CANCEL and INVITE with same tag
Added mreply(), internal function for responding to a request message
Also, tag INVITE before responding to CANCEL.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9291 d0543943-73ff-0310-b7d9-9358b9ac24b2
* nta: changed type of NTATAG_SERVER_RPORT() back to signed int
Documented magic value 2 for server rport.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9267 d0543943-73ff-0310-b7d9-9358b9ac24b2
* 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
* 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
* 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
Thu Jan 24 03:26:58 EST 2008 Pekka.Pessi@nokia.com
* nta.c, sofia-sip.nta.h: added nta_leg_get_seq(), nta_leg_get_rseq()
Mon Jan 28 09:27:03 EST 2008 Pekka.Pessi@nokia.com
* su_alloc.c: su_free() handles NULL gracefully
Patch by Michael Jerris.
Mon Jan 28 09:30:48 EST 2008 Pekka.Pessi@nokia.com
* su_root.c: try not to segfault in su_msg_destroy()
Reduced window for race condition in su_msg_destroy().
Patch by Michael Jerris.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7418 d0543943-73ff-0310-b7d9-9358b9ac24b2