From 70ddbdd6d67f361ae93ea5f120cc582e301a0669 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 24 Mar 2009 15:32:08 +0000 Subject: [PATCH] Thu Mar 5 10:20:11 CST 2009 Pekka Pessi * check_nua: s2_setup_logs() now turns on transport logging, too Ignore-this: 4ad4dc1efaf76c34a46038586a00e084 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12732 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/nua/check_nua.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 9c9fa99c9f..a8191772f6 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Tue Mar 24 10:29:44 CDT 2009 +Tue Mar 24 10:30:39 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/check_nua.c b/libs/sofia-sip/libsofia-sip-ua/nua/check_nua.c index c2edd4ba34..a081e55757 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/check_nua.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/check_nua.c @@ -295,6 +295,11 @@ s2_setup_logs(int level) su_log_soft_set_level(nea_log, level); su_log_soft_set_level(nta_log, level); su_log_soft_set_level(tport_log, level); + + if (getenv("TPORT_LOG") == NULL && getenv("S2_TPORT_LOG") == NULL) { + if (s2sip) + tport_set_params(s2sip->master, TPTAG_LOG(level > 1), TAG_END()); + } } nua_t *s2_nua_setup(char const *label,