From: Michael Jerris Date: Wed, 10 Sep 2008 16:20:55 +0000 (+0000) Subject: Wed Sep 10 09:29:58 EDT 2008 Pekka Pessi X-Git-Tag: v1.0.2~1255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1914b40cd116a3d65f3593fdc65c2f74716f171;p=thirdparty%2Ffreeswitch.git Wed Sep 10 09:29:58 EDT 2008 Pekka Pessi * test_s2.c: turn on s2 tport log if environment variable S2_TPORT_LOG is set git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9506 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c b/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c index ca36cdcf80..a6ff9942d5 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c @@ -785,7 +785,7 @@ s2_generate_tag(su_home_t *home) void s2_case(char const *number, char const *title, - char const *desciption) + char const *description) { _s2case = number; } @@ -917,7 +917,9 @@ s2_setup_tport(char const * const *protocols, ta_start(ta, tag, value); if (s2->master == NULL) { - s2->master = tport_tcreate(s2, s2_stack, s2->root, ta_tags(ta)); + s2->master = tport_tcreate(s2, s2_stack, s2->root, + TPTAG_LOG(getenv("S2_TPORT_LOG") != NULL), + ta_tags(ta)); if (s2->master == NULL) { assert(s2->master); @@ -1488,7 +1490,7 @@ nua_t *s2_nua_setup(tag_type_t tag, tag_value_t value, ...) s2_setup_dns(); s2_setup_logs(0); - s2_setup_tport(NULL, TPTAG_LOG(0), TAG_END()); + s2_setup_tport(NULL, TAG_END()); assert(s2->contact); /* enable/disable multithreading */