From: Sean Bright Date: Tue, 15 Sep 2020 21:16:34 +0000 (-0400) Subject: res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined X-Git-Tag: 17.9.0-rc1~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=617f62b6ab3aa90118cf86f9f67a3db7725ad378;p=thirdparty%2Fasterisk.git res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined Change-Id: Id4852c26e9c412af8e37b5dd3c15da9453ad3276 --- diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 753e32e49e..19e0528e83 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -2933,9 +2933,11 @@ static void session_destructor(void *obj) struct ast_sip_session *session = obj; struct ast_sip_session_delayed_request *delay; +#ifdef TEST_FRAMEWORK /* We dup the endpoint ID in case the endpoint gets freed out from under us */ const char *endpoint_name = session->endpoint ? ast_strdupa(ast_sorcery_object_get_id(session->endpoint)) : ""; +#endif ast_debug(3, "%s: Destroying SIP session\n", ast_sip_session_get_name(session));