Commit 4ab6937d authored by Pekka Pessi's avatar Pekka Pessi

test_s2.[hc]: added s2_nua_thread

darcs-hash:20080712141106-db55f-8f7e4d91282dfbf5257a05b4b3f38e793c53e8ca.gz
parent ef84f0ef
...@@ -102,6 +102,8 @@ char const s2_auth3_digest_str[] = ...@@ -102,6 +102,8 @@ char const s2_auth3_digest_str[] =
char const s2_auth3_credentials[] = "Digest:\"s2test3\":abc:abc"; char const s2_auth3_credentials[] = "Digest:\"s2test3\":abc:abc";
int s2_nua_thread = 0;
/* -- Delay scenarios --------------------------------------------------- */ /* -- Delay scenarios --------------------------------------------------- */
static unsigned long time_offset; static unsigned long time_offset;
...@@ -863,8 +865,6 @@ void s2_setup_base(char const *hostname) ...@@ -863,8 +865,6 @@ void s2_setup_base(char const *hostname)
assert(s2->root != NULL); assert(s2->root != NULL);
su_root_threading(s2->root, 0); /* disable multithreading */
s2->local = sip_from_format(s2->home, "Bob <sip:bob@%s>", s2->local = sip_from_format(s2->home, "Bob <sip:bob@%s>",
hostname ? hostname : "example.net"); hostname ? hostname : "example.net");
...@@ -1485,6 +1485,9 @@ nua_t *s2_nua_setup(tag_type_t tag, tag_value_t value, ...) ...@@ -1485,6 +1485,9 @@ nua_t *s2_nua_setup(tag_type_t tag, tag_value_t value, ...)
s2_setup_tport(NULL, TPTAG_LOG(0), TAG_END()); s2_setup_tport(NULL, TPTAG_LOG(0), TAG_END());
assert(s2->contact); assert(s2->contact);
/* enable/disable multithreading */
su_root_threading(s2->root, s2_nua_thread);
s2_dns_domain("example.org", 1, s2_dns_domain("example.org", 1,
"s2", 1, s2->udp.contact->m_url, "s2", 1, s2->udp.contact->m_url,
"s2", 1, s2->tcp.contact->m_url, "s2", 1, s2->tcp.contact->m_url,
......
...@@ -115,6 +115,8 @@ extern char const s2_auth2_credentials[]; ...@@ -115,6 +115,8 @@ extern char const s2_auth2_credentials[];
extern char const s2_auth3_digest_str[]; extern char const s2_auth3_digest_str[];
extern char const s2_auth3_credentials[]; extern char const s2_auth3_credentials[];
extern int s2_nua_thread;
void s2_fast_forward(unsigned long seconds); void s2_fast_forward(unsigned long seconds);
void s2_case(char const *tag, void s2_case(char const *tag,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment