[Freeswitch-svn] [commit] r12735 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua

FreeSWITCH SVN mikej at freeswitch.org
Tue Mar 24 08:34:23 PDT 2009


Author: mikej
Date: Tue Mar 24 10:34:23 2009
New Revision: 12735

Log:
Thu Mar  5 13:04:56 CST 2009  Pekka Pessi <first.last at nokia.com>
  * check_nua: use S2_CASE()
  Ignore-this: 85691a39065d7ad3da57f45fe87c1da



Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_register.c
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_simple.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Tue Mar 24 10:34:23 2009
@@ -1 +1 @@
-Tue Mar 24 10:32:33 CDT 2009
+Tue Mar 24 10:33:24 CDT 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c	Tue Mar 24 10:34:23 2009
@@ -201,7 +201,7 @@
   struct message *invite;
   struct message *bye;
 
-  s2_case("6.1.1", "SIP_CC_OE_CE_V_019",
+  S2_CASE("6.1.1", "SIP_CC_OE_CE_V_019",
           "Ensure that the IUT when an INVITE client transaction "
           "is in the Calling state, on receipt of Success (200 OK) "
           "responses differing only on the tag in the To header, "
@@ -241,7 +241,7 @@
   nua_handle_t *nh;
   struct message *invite;
 
-  s2_case("6.1.2", "SIP_CC_OE_CE_TI_008",
+  S2_CASE("6.1.2", "SIP_CC_OE_CE_TI_008",
           "If an unreliable transport is used, ensure that "
           "the IUT, when an INVITE client transaction is in "
           "the Completed state, on receipt of final responses "
@@ -291,7 +291,7 @@
   nua_handle_t *nh;
   struct message *invite;
 
-  s2_case("6.1.2", "SIP_CC_OE_CE_TI_011_012",
+  S2_CASE("6.1.2", "SIP_CC_OE_CE_TI_011_012",
           "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 "

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_register.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_register.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_register.c	Tue Mar 24 10:34:23 2009
@@ -117,7 +117,7 @@
   nua_handle_t *nh = nua_handle(nua, NULL, TAG_END());
   struct message *m;
 
-  s2_case("1.0.1", "Failed Register", "REGISTER returned 403 response");
+  S2_CASE("1.0.1", "Failed Register", "REGISTER returned 403 response");
 
   nua_register(nh, TAG_END());
 
@@ -135,7 +135,7 @@
 
 START_TEST(register_1_1_1)
 {
-  s2_case("1.1.1", "Basic Register", "REGISTER returning 200 OK");
+  S2_CASE("1.1.1", "Basic Register", "REGISTER returning 200 OK");
 
   s2_register_setup();
 
@@ -149,7 +149,7 @@
   nua_handle_t *nh;
   struct message *m;
 
-  s2_case("1.1.2", "Register with dual authentication",
+  S2_CASE("1.1.2", "Register with dual authentication",
 	  "Register, authenticate");
 
   nh = nua_handle(nua, NULL, TAG_END());
@@ -230,7 +230,7 @@
   nua_handle_t *nh;
   struct message *m;
 
-  s2_case("1.2.1", "Register behind NAT",
+  S2_CASE("1.2.1", "Register behind NAT",
 	  "Register through NAT, detect NAT, re-REGISTER");
 
   nh = nua_handle(nua, NULL, TAG_END());
@@ -324,7 +324,7 @@
 {
   nua_handle_t *nh = nua_handle(nua, NULL, TAG_END());
 
-  s2_case("1.2.2.1", "Register behind NAT",
+  S2_CASE("1.2.2.1", "Register behind NAT",
 	  "Authenticate, outbound activated");
 
   mark_point();
@@ -339,7 +339,7 @@
   nua_handle_t *nh = nua_handle(nua, NULL, TAG_END());
   struct message *m;
 
-  s2_case("1.2.2.2", "Register behind NAT",
+  S2_CASE("1.2.2.2", "Register behind NAT",
 	  "Authenticate, outbound activated, "
 	  "authenticate OPTIONS probe, "
 	  "NAT binding change");
@@ -421,7 +421,7 @@
   nua_handle_t *nh = nua_handle(nua, NULL, TAG_END());
   struct message *m;
 
-  s2_case("1.2.2.3", "Register behind NAT",
+  S2_CASE("1.2.2.3", "Register behind NAT",
 	  "Authenticate, outbound activated, "
 	  "detect NAT binding change when re-REGISTERing");
 
@@ -476,7 +476,7 @@
   nua_handle_t *nh;
   struct message *m;
 
-  s2_case("1.2.3", "Register behind NAT",
+  S2_CASE("1.2.3", "Register behind NAT",
 	  "Outbound activated by error response");
 
   nh = nua_handle(nua, NULL, TAG_END());
@@ -525,7 +525,7 @@
   nua_handle_t *nh;
   struct message *m;
 
-  s2_case("1.3.1", "Register over TCP via NAT",
+  S2_CASE("1.3.1", "Register over TCP via NAT",
 	  "REGISTER via TCP, detect NTA, re-REGISTER");
 
   nh = nua_handle(nua, NULL, TAG_END());
@@ -576,7 +576,7 @@
 {
   nua_handle_t *nh = nua_handle(nua, NULL, TAG_END());
 
-  s2_case("1.3.2.1", "Register behind NAT",
+  S2_CASE("1.3.2.1", "Register behind NAT",
 	  "Authenticate, outbound activated");
 
   mark_point();
@@ -593,7 +593,7 @@
   nua_handle_t *nh = nua_handle(nua, NULL, TAG_END());
   struct message *m;
 
-  s2_case("1.3.2.2", "Register behind NAT with TCP",
+  S2_CASE("1.3.2.2", "Register behind NAT with TCP",
 	  "Detect NAT over TCP using rport. "
 	  "Authenticate, detect NAT, "
 	  "close TCP at server, wait for re-REGISTERs.");
@@ -652,7 +652,7 @@
   struct message *m;
   tport_t *tcp;
 
-  s2_case("1.3.3.1", "Register behind NAT with UDP and TCP",
+  S2_CASE("1.3.3.1", "Register behind NAT with UDP and TCP",
 	  "Register with UDP, UDP time-outing, then w/ TCP using rport. ");
 
   nua_set_params(nua, NTATAG_TCP_RPORT(1), TAG_END());

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c	Tue Mar 24 10:34:23 2009
@@ -428,7 +428,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.1", "Basic call",
+  S2_CASE("2.1.1", "Basic call",
 	  "NUA sends INVITE, NUA sends BYE");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -446,7 +446,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.2.1", "Basic call",
+  S2_CASE("2.1.2.1", "Basic call",
 	  "NUA sends INVITE, NUA receives BYE");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -463,7 +463,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.2.2", "Basic call over TCP",
+  S2_CASE("2.1.2.2", "Basic call over TCP",
 	  "NUA sends INVITE, NUA receives BYE");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor),
@@ -484,7 +484,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.3.1", "Incoming call",
+  S2_CASE("2.1.3.1", "Incoming call",
 	  "NUA receives INVITE and BYE");
 
   nh = invite_to_nua(TAG_END());
@@ -500,7 +500,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.3.2", "Incoming call over TCP",
+  S2_CASE("2.1.3.2", "Incoming call over TCP",
 	  "NUA receives INVITE and BYE");
 
   dialog->tport = s2sip->tcp.tport;
@@ -518,7 +518,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.4", "Incoming call",
+  S2_CASE("2.1.4", "Incoming call",
 	  "NUA receives INVITE and sends BYE");
 
   nh = invite_to_nua(TAG_END());
@@ -534,7 +534,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.5", "Incoming call",
+  S2_CASE("2.1.5", "Incoming call",
 	  "NUA receives INVITE and sends BYE, BYE is challenged");
 
   nh = invite_to_nua(TAG_END());
@@ -553,7 +553,7 @@
   struct event *invite;
   struct message *response;
 
-  s2_case("2.1.6", "Basic call",
+  S2_CASE("2.1.6", "Basic call",
 	  "NUA received INVITE, "
 	  "NUA responds (and saves proxy for dialog), "
 	  "NUA sends BYE");
@@ -621,7 +621,7 @@
   nua_handle_t *nh, *nh2;
   sip_replaces_t *replaces;
 
-  s2_case("2.1.7", "Call lookup",
+  S2_CASE("2.1.7", "Call lookup",
 	  "Test dialog and call-id lookup");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -654,7 +654,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack;
 
-  s2_case("2.1.8", "Call using NUTAG_PROXY()",
+  S2_CASE("2.1.8", "Call using NUTAG_PROXY()",
 	  "Test handle-specific NUTAG_PROXY().");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -713,7 +713,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel;
 
-  s2_case("2.2.1", "Cancel call",
+  S2_CASE("2.2.1", "Cancel call",
 	  "NUA is caller, NUA sends CANCEL immediately");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -749,7 +749,7 @@
   nua_handle_t *nh;
   struct message *invite;
 
-  s2_case("2.2.2", "Canceled call",
+  S2_CASE("2.2.2", "Canceled call",
 	  "NUA is caller, NUA sends CANCEL after receiving 100");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -776,7 +776,7 @@
   nua_handle_t *nh;
   struct message *invite;
 
-  s2_case("2.2.3", "Canceled call",
+  S2_CASE("2.2.3", "Canceled call",
 	  "NUA is caller, NUA sends CANCEL after receiving 180");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -807,7 +807,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel;
 
-  s2_case("2.2.4", "Cancel and 200 OK glare",
+  S2_CASE("2.2.4", "Cancel and 200 OK glare",
 	  "NUA is caller, NUA sends CANCEL after receiving 180 "
 	  "but UAS already sent 200 OK.");
 
@@ -852,7 +852,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel, *bye;
 
-  s2_case(
+  S2_CASE(
     "2.2.5", "Cancel and 200 OK glare",
     "NUA is caller, "
     "NUA uses nua_bye() to send CANCEL after receiving 180\n"
@@ -907,7 +907,7 @@
   struct event *invite;
   struct message *response;
 
-  s2_case("2.2.6", "Cancel call",
+  S2_CASE("2.2.6", "Cancel call",
 	  "NUA is callee, sends 100, 180, INVITE gets canceled");
 
   soa_generate_offer(soa, 1, NULL);
@@ -959,7 +959,7 @@
   struct message *response;
   char const *via = "SIP/2.0/UDP host.in.invalid;rport";
 
-  s2_case("2.2.7", "Call gets canceled",
+  S2_CASE("2.2.7", "Call gets canceled",
 	  "NUA is callee, sends 100, 180, INVITE gets canceled. "
 	  "Using RFC 2543 dialog and transaction matching.");
 
@@ -1013,7 +1013,7 @@
   struct message *invite, *cancel;
   int timeout;
 
-  s2_case("2.2.8", "CANCEL and INVITE times out",
+  S2_CASE("2.2.8", "CANCEL and INVITE times out",
 	  "NUA is caller, NUA sends CANCEL after receiving 180 "
 	  "but UAS never responds.");
 
@@ -1058,7 +1058,7 @@
   struct message *invite, *cancel;
   int timeout;
 
-  s2_case("2.2.9", "CANCEL a RFC2543 UA",
+  S2_CASE("2.2.9", "CANCEL a RFC2543 UA",
 	  "NUA is caller, NUA sends CANCEL after receiving 180, "
 	  "UAS sends 200 OK to CANCEL but no response to INVITE.");
 
@@ -1101,7 +1101,7 @@
   struct event *event;
   int timeout;
 
-  s2_case("2.2.10", "CANCEL and INVITE times out",
+  S2_CASE("2.2.10", "CANCEL and INVITE times out",
 	  "NUA is caller, NUA sends CANCEL after receiving 180 "
 	  "but UAS never responds.");
 
@@ -1221,7 +1221,7 @@
   rr->r_url->url_user = "record";
   rr->r_url->url_params = "lr";
 
-  s2_case("2.3.1", "Incoming call with call timers",
+  S2_CASE("2.3.1", "Incoming call with call timers",
 	  "NUA receives INVITE, "
 	  "activates call timers, "
 	  "sends re-INVITE twice, "
@@ -1249,7 +1249,7 @@
 {
   nua_handle_t *nh;
 
-  s2_case("2.3.2", "Incoming call with call timers",
+  S2_CASE("2.3.2", "Incoming call with call timers",
 	  "NUA receives INVITE, "
 	  "activates call timers, "
 	  "sends re-INVITE, "
@@ -1294,7 +1294,7 @@
   int with_sdp;
   sip_record_route_t rr[1];
 
-  s2_case("2.4.1", "Call with 100rel",
+  S2_CASE("2.4.1", "Call with 100rel",
 	  "NUA sends INVITE, "
 	  "receives 183, sends PRACK, receives 200 for it, "
 	  "receives 180, sends PRACK, receives 200 for it, "
@@ -1357,7 +1357,7 @@
   struct message *invite, *prack;
   int with_sdp;
 
-  s2_case("2.4.2", "Call with 100rel",
+  S2_CASE("2.4.2", "Call with 100rel",
 	  "NUA sends INVITE, "
 	  "receives 183, sends PRACK, receives 200 for it, "
 	  "receives 180, sends PRACK, receives 200 for it, "
@@ -1425,7 +1425,7 @@
   struct message *invite, *prack, *update;
   int with_sdp;
 
-  s2_case("2.5.1", "Call with preconditions",
+  S2_CASE("2.5.1", "Call with preconditions",
 	  "NUA sends INVITE, "
 	  "receives 183, sends PRACK, receives 200 for it, "
 	  "sends UPDATE, receives 200 for it, "
@@ -1493,7 +1493,7 @@
   sip_rseq_t rs[1];
   sip_rack_t rack[1];
 
-  s2_case("2.5.2", "Call with preconditions - send 200 w/ ongoing PRACK ",
+  S2_CASE("2.5.2", "Call with preconditions - send 200 w/ ongoing PRACK ",
 	  "NUA sends INVITE, "
 	  "receives 183, sends PRACK, "
           "receives 200 to INVITE, "
@@ -1570,7 +1570,7 @@
   sip_rseq_t rs[1];
   sip_rack_t rack[1];
 
-  s2_case("2.5.3", "Call with preconditions - send 200 w/ ongoing UPDATE ",
+  S2_CASE("2.5.3", "Call with preconditions - send 200 w/ ongoing UPDATE ",
 	  "NUA sends INVITE, "
 	  "receives 183, sends PRACK, receives 200 to PRACK, "
 	  "sends UPDATE, "
@@ -1658,7 +1658,7 @@
   struct message *invite, *ack;
   int i;
 
-  s2_case("2.6.1", "Queued re-INVITEs",
+  S2_CASE("2.6.1", "Queued re-INVITEs",
 	  "NUA receives INVITE, "
 	  "sends re-INVITE twice, "
 	  "sends BYE.");
@@ -1696,7 +1696,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack, *response;
 
-  s2_case("2.6.2", "Re-INVITE glare",
+  S2_CASE("2.6.2", "Re-INVITE glare",
 	  "NUA sends re-INVITE and then receives re-INVITE, "
 	  "sends BYE.");
 
@@ -1754,7 +1754,7 @@
   nua_handle_t *nh;
   struct message *response;
 
-  s2_case("2.6.3", "Handling re-INVITE without SDP gracefully",
+  S2_CASE("2.6.3", "Handling re-INVITE without SDP gracefully",
 	  "NUA receives INVITE, "
 	  "re-INVITE without SDP (w/o NUTAG_REFRESH_WITHOUT_SDP(), "
 	  "re-INVITE without SDP (using NUTAG_REFRESH_WITHOUT_SDP(), "
@@ -1819,7 +1819,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack;
 
-  s2_case("2.6.4", "re-INVITEs w/o SDP",
+  S2_CASE("2.6.4", "re-INVITEs w/o SDP",
 	  "NUA sends re-INVITE w/o SDP, "
 	  "receives SDP w/ offer, "
 	  "sends ACK w/ answer, "
@@ -1874,7 +1874,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack;
 
-  s2_case("3.1.1", "Call failure", "Call fails with 403 response");
+  S2_CASE("3.1.1", "Call failure", "Call fails with 403 response");
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor),
 		  TAG_END());
 
@@ -1908,7 +1908,7 @@
   struct message *invite;
   int i;
 
-  s2_case("3.1.2", "Call fails after too many retries",
+  S2_CASE("3.1.2", "Call fails after too many retries",
 	  "Call fails after 4 times 500 Retry-After");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor),
@@ -1945,7 +1945,7 @@
   nua_handle_t *nh;
   struct message *invite;
 
-  s2_case("3.2.1", "Re-INVITE failure", "Re-INVITE fails with 403 response");
+  S2_CASE("3.2.1", "Re-INVITE failure", "Re-INVITE fails with 403 response");
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor),
 		  TAG_END());
 
@@ -1976,7 +1976,7 @@
   struct message *invite, *bye;
   int i;
 
-  s2_case("3.2.2", "Re-INVITE fails after too many retries",
+  S2_CASE("3.2.2", "Re-INVITE fails after too many retries",
 	  "Call fails after 4 times 500 Retry-After");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor),
@@ -2023,7 +2023,7 @@
   nua_handle_t *nh;
   struct message *invite;
 
-  s2_case("3.2.3", "Re-INVITE failure", "Re-INVITE fails with 491 response");
+  S2_CASE("3.2.3", "Re-INVITE failure", "Re-INVITE fails with 491 response");
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor),
 		  TAG_END());
 
@@ -2071,7 +2071,7 @@
   nua_handle_t *nh;
   struct message *bye, *r481;
 
-  s2_case("4.1.1", "Re-INVITE while terminating",
+  S2_CASE("4.1.1", "Re-INVITE while terminating",
 	  "NUA sends BYE, "
 	  "BYE is challenged, "
 	  "and NUA is re-INVITEd at the same time.");
@@ -2113,7 +2113,7 @@
   nua_handle_t *nh;
   struct message *bye, *r481;
 
-  s2_case("4.1.2", "Re-INVITE while terminating",
+  S2_CASE("4.1.2", "Re-INVITE while terminating",
 	  "NUA sends BYE, and gets re-INVITEd at same time");
 
   nh = invite_to_nua(TAG_END());
@@ -2149,7 +2149,7 @@
   struct message *bye;
   struct event *i_bye;
 
-  s2_case("4.1.3", "BYE while terminating",
+  S2_CASE("4.1.3", "BYE while terminating",
 	  "NUA sends BYE and receives BYE");
 
   nh = invite_to_nua(TAG_END());
@@ -2190,7 +2190,7 @@
   struct message *bye;
   struct event *i_bye;
 
-  s2_case("4.1.4", "Send BYE after BYE has been received",
+  S2_CASE("4.1.4", "Send BYE after BYE has been received",
 	  "NUA receives BYE, tries to send BYE at same time");
 
   nh = invite_to_nua(TAG_END());
@@ -2229,7 +2229,7 @@
   struct message *bye;
   struct event *i_bye;
 
-  s2_case("4.1.5", "Send BYE after BYE has been received",
+  S2_CASE("4.1.5", "Send BYE after BYE has been received",
 	  "NUA receives BYE, tries to send BYE at same time");
 
   nh = invite_to_nua(TAG_END());
@@ -2265,7 +2265,7 @@
   nua_handle_t *nh;
   struct message *bye, *r486;
 
-  s2_case("4.1.6", "Send BYE after INVITE has been received",
+  S2_CASE("4.1.6", "Send BYE after INVITE has been received",
 	  "NUA receives INVITE, sends BYE at same time");
 
   nh = invite_to_nua(TAG_END());
@@ -2303,7 +2303,7 @@
   nua_handle_t *nh;
   struct message *bye, *r486;
 
-  s2_case("4.1.7", "Send BYE after INVITE has been received",
+  S2_CASE("4.1.7", "Send BYE after INVITE has been received",
 	  "NUA receives INVITE, sends BYE at same time");
 
   nh = invite_to_nua(TAG_END());
@@ -2340,7 +2340,7 @@
   nua_handle_t *nh;
   struct message *bye, *r486;
 
-  s2_case("4.1.8", "BYE followed by response to INVITE",
+  S2_CASE("4.1.8", "BYE followed by response to INVITE",
 	  "NUA receives INVITE, sends BYE at same time");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -2380,7 +2380,7 @@
   struct message *bye;
   struct event *i_bye;
 
-  s2_case("4.1.6", "Send BYE, receive BYE, destroy",
+  S2_CASE("4.1.6", "Send BYE, receive BYE, destroy",
 	  "NUA sends BYE, receives BYE and handle gets destroyed");
 
   nh = invite_to_nua(TAG_END());
@@ -2424,7 +2424,7 @@
   struct message *invite, *bye;
   struct event *i_bye;
 
-  s2_case("4.1.6", "Send auto-BYE upon receiving 501, receive BYE, destroy",
+  S2_CASE("4.1.6", "Send auto-BYE upon receiving 501, receive BYE, destroy",
 	  "NUA sends BYE, receives BYE and handle gets destroyed");
 
   nh = invite_to_nua(TAG_END());
@@ -2475,7 +2475,7 @@
   struct message *invite, *ack;
   struct event *i_bye;
 
-  s2_case("4.1.11", "Receive BYE in completing state",
+  S2_CASE("4.1.11", "Receive BYE in completing state",
 	  "NUA sends INVITE, receives 200, receives BYE.");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -2511,7 +2511,7 @@
   nua_handle_t *nh;
   struct message *bye;
 
-  s2_case("4.2.1", "BYE in progress while call timer expires",
+  S2_CASE("4.2.1", "BYE in progress while call timer expires",
 	  "NUA receives INVITE, "
 	  "activates call timers, "
 	  "sends BYE, BYE challenged, "
@@ -2555,7 +2555,7 @@
   nua_handle_t *nh;
   struct message *bye;
 
-  s2_case("4.2.2", "BYE in progress while call timer expires",
+  S2_CASE("4.2.2", "BYE in progress while call timer expires",
 	  "NUA receives INVITE, "
 	  "activates call timers, "
 	  "sends BYE, BYE challenged, "
@@ -2626,7 +2626,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel;
 
-  s2_case("4.3.1", "Destroy handle after INVITE sent",
+  S2_CASE("4.3.1", "Destroy handle after INVITE sent",
 	  "NUA sends INVITE, handle gets destroyed.");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -2654,7 +2654,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel;
 
-  s2_case("4.3.2", "Destroy handle in calling state",
+  S2_CASE("4.3.2", "Destroy handle in calling state",
 	  "NUA sends INVITE, receives 180, handle gets destroyed.");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -2682,7 +2682,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack, *bye;
 
-  s2_case("4.3.3", "Destroy handle in completing state",
+  S2_CASE("4.3.3", "Destroy handle in completing state",
 	  "NUA sends INVITE, receives 200, handle gets destroyed.");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -2718,7 +2718,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack, *bye;
 
-  s2_case("4.3.3", "Destroy handle in ready state ",
+  S2_CASE("4.3.3", "Destroy handle in ready state ",
 	  "NUA sends INVITE, receives 200, handle gets destroyed.");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -2757,7 +2757,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel;
 
-  s2_case("4.3.5", "Destroy handle in re-INVITE calling state",
+  S2_CASE("4.3.5", "Destroy handle in re-INVITE calling state",
 	  "NUA sends re-INVITE, handle gets destroyed.");
 
   nh = invite_to_nua(TAG_END());
@@ -2785,7 +2785,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel;
 
-  s2_case("4.3.6", "Destroy handle in calling state of re-INVITE",
+  S2_CASE("4.3.6", "Destroy handle in calling state of re-INVITE",
 	  "NUA sends re-INVITE, receives 180, handle gets destroyed.");
 
   nh = invite_to_nua(TAG_END());
@@ -2814,7 +2814,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack, *bye;
 
-  s2_case("4.3.7", "Destroy handle in completing state of re-INVITE",
+  S2_CASE("4.3.7", "Destroy handle in completing state of re-INVITE",
 	  "NUA sends INVITE, receives 200, handle gets destroyed.");
 
   nh = invite_to_nua(TAG_END());
@@ -2850,7 +2850,7 @@
   nua_handle_t *nh;
   struct message *invite, *ack, *bye;
 
-  s2_case("4.3.8", "Destroy handle after INVITE sent",
+  S2_CASE("4.3.8", "Destroy handle after INVITE sent",
 	  "NUA sends INVITE, handle gets destroyed, "
 	  "but remote end returns 200 OK. "
 	  "Make sure nua tries to release call properly.");
@@ -2882,7 +2882,7 @@
   nua_handle_t *nh;
   struct message *invite, *cancel, *ack, *bye;
 
-  s2_case("4.3.9", "Destroy handle in calling state",
+  S2_CASE("4.3.9", "Destroy handle in calling state",
 	  "NUA sends INVITE, receives 180, handle gets destroyed, "
 	  "but remote end returns 200 OK. "
 	  "Make sure nua tries to release call properly.");
@@ -2923,7 +2923,7 @@
   struct event *invite;
   struct message *response;
 
-  s2_case("4.4.1", "Destroy handle while call is on-going",
+  S2_CASE("4.4.1", "Destroy handle while call is on-going",
 	  "NUA is callee, sends 100, destroys handle");
 
   soa_generate_offer(soa, 1, NULL);
@@ -2958,7 +2958,7 @@
   struct event *invite;
   struct message *response;
 
-  s2_case("4.4.1", "Destroy handle while call is on-going",
+  S2_CASE("4.4.1", "Destroy handle while call is on-going",
 	  "NUA is callee, sends 180, destroys handle");
 
   soa_generate_offer(soa, 1, NULL);
@@ -2999,7 +2999,7 @@
   struct event *invite;
   struct message *response, *bye;
 
-  s2_case("4.4.3.1", "Destroy handle while call is on-going",
+  S2_CASE("4.4.3.1", "Destroy handle while call is on-going",
 	  "NUA is callee, sends 200, destroys handle");
 
   soa_generate_offer(soa, 1, NULL);
@@ -3053,7 +3053,7 @@
   struct event *invite;
   struct message *response, *bye;
 
-  s2_case("4.4.3.1", "Destroy handle while call is on-going",
+  S2_CASE("4.4.3.1", "Destroy handle while call is on-going",
 	  "NUA is callee, sends 200, destroys handle");
 
   soa_generate_offer(soa, 1, NULL);
@@ -3139,7 +3139,7 @@
   nua_handle_t *nh;
   struct message *response;
 
-  s2_case("5.1.1", "Test nua_respond() API",
+  S2_CASE("5.1.1", "Test nua_respond() API",
 	  "Test nua_respond() API with OPTIONS.");
 
   s2_sip_request_to(dialog, SIP_METHOD_OPTIONS, NULL, TAG_END());
@@ -3198,7 +3198,7 @@
   pthread_t tid;
   void *thread_return = NULL;
 
-  s2_case("5.1.2", "Test nua_respond() API with another thread",
+  S2_CASE("5.1.2", "Test nua_respond() API with another thread",
 	  "Test multithreading nua_respond() API with OPTIONS.");
 
   nua_set_params(nua, NUTAG_APPL_METHOD("OPTIONS"), TAG_END());
@@ -3262,7 +3262,7 @@
   struct event *refer;
   struct message *notify;
 
-  s2_case("5.2.1", "Receive REFER",
+  S2_CASE("5.2.1", "Receive REFER",
 	  "Make a call, receive REFER.");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -3299,7 +3299,7 @@
   struct message *notify0, *notify1, *notify2;
   struct dialog *dialog1, *dialog2;
 
-  s2_case("5.2.2", "Receive REFER",
+  S2_CASE("5.2.2", "Receive REFER",
 	  "Make a call, receive REFER, "
 	  "make another call with automatic NOTIFYs");
 
@@ -3395,7 +3395,7 @@
 
 START_TEST(empty)
 {
-  s2_case("0.0.0", "Empty test case",
+  S2_CASE("0.0.0", "Empty test case",
 	  "Detailed explanation for empty test case.");
 
   tport_set_params(s2sip->master, TPTAG_LOG(1), TAG_END());

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_simple.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_simple.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_simple.c	Tue Mar 24 10:34:23 2009
@@ -265,7 +265,7 @@
 {
   nua_handle_t *nh;
   struct event *notify;
-  s2_case("6.1.1", "Basic subscription",
+  S2_CASE("6.1.1", "Basic subscription",
 	  "NUA sends SUBSCRIBE, waits for NOTIFY, sends un-SUBSCRIBE");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -283,7 +283,7 @@
   struct message *subscribe, *response;
   struct event *notify, *event;
 
-  s2_case("6.1.2", "Basic subscription with refresh",
+  S2_CASE("6.1.2", "Basic subscription with refresh",
 	  "NUA sends SUBSCRIBE, waits for NOTIFY, "
 	  "sends re-SUBSCRIBE, waits for NOTIFY, "
 	  "sends un-SUBSCRIBE");
@@ -331,7 +331,7 @@
   struct message *response;
   struct event *notify, *event;
 
-  s2_case("6.1.3", "Subscription terminated by notifier",
+  S2_CASE("6.1.3", "Subscription terminated by notifier",
 	  "NUA sends SUBSCRIBE, waits for NOTIFY, "
 	  "gets NOTIFY terminating the subscription,");
 
@@ -361,7 +361,7 @@
   struct message *response;
   struct event *notify, *event;
 
-  s2_case("6.1.4", "Subscription terminated by notifier, re-established",
+  S2_CASE("6.1.4", "Subscription terminated by notifier, re-established",
 	  "NUA sends SUBSCRIBE, waits for NOTIFY, "
 	  "gets NOTIFY terminating the subscription,");
 
@@ -419,7 +419,7 @@
   nua_handle_t *nh;
   struct event *notify;
 
-  s2_case("6.2.1", "Event fetch - NOTIFY after 202",
+  S2_CASE("6.2.1", "Event fetch - NOTIFY after 202",
 	  "NUA sends SUBSCRIBE with Expires 0, waits for NOTIFY");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -436,7 +436,7 @@
   nua_handle_t *nh;
   struct event *notify;
 
-  s2_case("6.2.2", "Event fetch - NOTIFY before 200",
+  S2_CASE("6.2.2", "Event fetch - NOTIFY before 200",
 	  "NUA sends SUBSCRIBE with Expires 0, waits for NOTIFY");
 
   send_notify_before_response = 1;
@@ -456,7 +456,7 @@
   struct message *subscribe;
   struct event *event;
 
-  s2_case("6.2.3", "Event fetch - no NOTIFY",
+  S2_CASE("6.2.3", "Event fetch - no NOTIFY",
 	  "NUA sends SUBSCRIBE with Expires 0, waits for NOTIFY, times out");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2sip->aor), TAG_END());
@@ -539,7 +539,7 @@
   struct message *notify, *response;
   sip_t *sip;
 
-  s2_case("6.3.1", "Basic NOTIFY server",
+  S2_CASE("6.3.1", "Basic NOTIFY server",
 	  "NUA receives SUBSCRIBE, sends 202 and NOTIFY. "
 	  "First NOTIFY terminates subscription. ");
 
@@ -612,7 +612,7 @@
   struct message *notify;
   sip_t *sip;
 
-  s2_case("6.3.2", "NOTIFY server - automatic subscription termination",
+  S2_CASE("6.3.2", "NOTIFY server - automatic subscription termination",
 	  "NUA receives SUBSCRIBE, sends 202 and NOTIFY. "
 	  "The subscription terminates with timeout. ");
 
@@ -664,7 +664,7 @@
   struct event *response;
   sip_t *sip;
 
-  s2_case("6.3.3", "NOTIFY server - terminate with error response to NOTIFY",
+  S2_CASE("6.3.3", "NOTIFY server - terminate with error response to NOTIFY",
 	  "NUA receives SUBSCRIBE, sends 202 and NOTIFY. "
 	  "The subscription terminates when watcher "
 	  "returns 481 to second NOTIFY.");
@@ -709,7 +709,7 @@
   struct event *response;
   sip_t *sip;
 
-  s2_case("6.3.4", "NOTIFY server - terminate with error response to NOTIFY",
+  S2_CASE("6.3.4", "NOTIFY server - terminate with error response to NOTIFY",
 	  "NUA receives SUBSCRIBE, sends 202 and NOTIFY. "
 	  "The subscription terminates when watcher "
 	  "returns 481 to second NOTIFY. The queued 3rd NOTIFY gets "
@@ -778,7 +778,7 @@
 
 START_TEST(empty)
 {
-  s2_case("0.0.0", "Empty test case",
+  S2_CASE("0.0.0", "Empty test case",
 	  "Detailed explanation for empty test case.");
 
   tport_set_params(s2sip->master, TPTAG_LOG(1), TAG_END());



More information about the Freeswitch-svn mailing list