[Freeswitch-svn] [commit] r9510 - freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua

Freeswitch SVN mikej at freeswitch.org
Wed Sep 10 12:21:57 EDT 2008


Author: mikej
Date: Wed Sep 10 12:21:56 2008
New Revision: 9510

Modified:
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c

Log:
Wed Sep 10 10:22:28 EDT 2008  Pekka Pessi <first.last at nokia.com>
  * check_session.c: added TCP call cases call_2_1_2_2 and call_2_1_3_2



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	Wed Sep 10 12:21:56 2008
@@ -420,11 +420,11 @@
 END_TEST
 
 
-START_TEST(call_2_1_2)
+START_TEST(call_2_1_2_1)
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.2", "Basic call",
+  s2_case("2.1.2.1", "Basic call",
 	  "NUA sends INVITE, NUA receives BYE");
 
   nh = nua_handle(nua, NULL, SIPTAG_TO(s2->local), TAG_END());
@@ -437,12 +437,32 @@
 }
 END_TEST
 
+START_TEST(call_2_1_2_2)
+{
+  nua_handle_t *nh;
+
+  s2_case("2.1.2.2", "Basic call over TCP",
+	  "NUA sends INVITE, NUA receives BYE");
+
+  nh = nua_handle(nua, NULL, SIPTAG_TO(s2->local),
+		  TAG_END());
+
+  invite_by_nua(nh,
+		NUTAG_PROXY(s2->tcp.contact->m_url),
+		TAG_END());
+
+  bye_to_nua(nh, TAG_END());
+
+  nua_handle_destroy(nh);
+}
+END_TEST
+
 
-START_TEST(call_2_1_3)
+START_TEST(call_2_1_3_1)
 {
   nua_handle_t *nh;
 
-  s2_case("2.1.3", "Incoming call",
+  s2_case("2.1.3.1", "Incoming call",
 	  "NUA receives INVITE and BYE");
 
   nh = invite_to_nua(TAG_END());
@@ -454,6 +474,24 @@
 END_TEST
 
 
+START_TEST(call_2_1_3_2)
+{
+  nua_handle_t *nh;
+
+  s2_case("2.1.3.2", "Incoming call over TCP",
+	  "NUA receives INVITE and BYE");
+
+  dialog->tport = s2->tcp.tport;
+
+  nh = invite_to_nua(TAG_END());
+
+  bye_to_nua(nh, TAG_END());
+
+  nua_handle_destroy(nh);
+}
+END_TEST
+
+
 START_TEST(call_2_1_4)
 {
   nua_handle_t *nh;
@@ -632,8 +670,10 @@
   tcase_add_checked_fixture(tc, call_setup, call_teardown);
   {
     tcase_add_test(tc, call_2_1_1);
-    tcase_add_test(tc, call_2_1_2);
-    tcase_add_test(tc, call_2_1_3);
+    tcase_add_test(tc, call_2_1_2_1);
+    tcase_add_test(tc, call_2_1_2_2);
+    tcase_add_test(tc, call_2_1_3_1);
+    tcase_add_test(tc, call_2_1_3_2);
     tcase_add_test(tc, call_2_1_4);
     tcase_add_test(tc, call_2_1_5);
     tcase_add_test(tc, call_2_1_6);



More information about the Freeswitch-svn mailing list