Wed Sep 10 09:29:58 EDT 2008 Pekka Pessi <first.last@nokia.com>

* 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
This commit is contained in:
Michael Jerris 2008-09-10 16:20:55 +00:00
parent 545f4a9194
commit f1914b40cd
1 changed files with 5 additions and 3 deletions

View File

@ -785,7 +785,7 @@ s2_generate_tag(su_home_t *home)
void s2_case(char const *number, void s2_case(char const *number,
char const *title, char const *title,
char const *desciption) char const *description)
{ {
_s2case = number; _s2case = number;
} }
@ -917,7 +917,9 @@ s2_setup_tport(char const * const *protocols,
ta_start(ta, tag, value); ta_start(ta, tag, value);
if (s2->master == NULL) { 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) { if (s2->master == NULL) {
assert(s2->master); 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_dns();
s2_setup_logs(0); s2_setup_logs(0);
s2_setup_tport(NULL, TPTAG_LOG(0), TAG_END()); s2_setup_tport(NULL, TAG_END());
assert(s2->contact); assert(s2->contact);
/* enable/disable multithreading */ /* enable/disable multithreading */