[Asterisk-code-review] res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined (asterisk[master])
George Joseph
asteriskteam at digium.com
Wed Sep 16 09:45:47 CDT 2020
George Joseph has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/14949 )
Change subject: res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined
......................................................................
res_pjsip_session.c: Fix build when TEST_FRAMEWORK is not defined
Change-Id: Id4852c26e9c412af8e37b5dd3c15da9453ad3276
---
M res/res_pjsip_session.c
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved; Approved for Submit
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index 7b66430..e970f66 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -2951,9 +2951,11 @@
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)) : "<none>";
+#endif
ast_debug(3, "%s: Destroying SIP session\n", ast_sip_session_get_name(session));
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14949
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Id4852c26e9c412af8e37b5dd3c15da9453ad3276
Gerrit-Change-Number: 14949
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200916/67cd27f6/attachment-0001.html>
More information about the asterisk-code-review
mailing list