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

Freeswitch SVN mikej at freeswitch.org
Tue Aug 12 13:03:17 EDT 2008


Author: mikej
Date: Tue Aug 12 13:03:17 2008
New Revision: 9266

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

Log:
Sat Jul 12 10:11:06 EDT 2008  Pekka Pessi <first.last at nokia.com>
  * test_s2.[hc]: added s2_nua_thread



Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c	Tue Aug 12 13:03:17 2008
@@ -102,6 +102,8 @@
 
 char const s2_auth3_credentials[] = "Digest:\"s2test3\":abc:abc";
 
+int s2_nua_thread = 0;
+
 /* -- Delay scenarios --------------------------------------------------- */
 
 static unsigned long time_offset;
@@ -863,8 +865,6 @@
 
   assert(s2->root != NULL);
 
-  su_root_threading(s2->root, 0);	/* disable multithreading */
-
   s2->local = sip_from_format(s2->home, "Bob <sip:bob@%s>",
 			     hostname ? hostname : "example.net");
   
@@ -1485,6 +1485,9 @@
   s2_setup_tport(NULL, TPTAG_LOG(0), TAG_END());
   assert(s2->contact);
 
+  /* enable/disable multithreading */
+  su_root_threading(s2->root, s2_nua_thread);
+
   s2_dns_domain("example.org", 1,
 		"s2", 1, s2->udp.contact->m_url,
 		"s2", 1, s2->tcp.contact->m_url,

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.h
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.h	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.h	Tue Aug 12 13:03:17 2008
@@ -115,6 +115,8 @@
 extern char const s2_auth3_digest_str[];
 extern char const s2_auth3_credentials[];
 
+extern int s2_nua_thread;
+
 void s2_fast_forward(unsigned long seconds);
 
 void s2_case(char const *tag,



More information about the Freeswitch-svn mailing list