From 8c277de104600a1b3cf48480e926063a76ceb829 Mon Sep 17 00:00:00 2001
From: Luis Daniel Lucio Quiroz <dlucio@okay.com.mx>
Date: Tue, 18 Feb 2020 13:50:15 -0500
Subject: [PATCH] Update sofia.c

---
 src/mod/endpoints/mod_sofia/sofia.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c
index 56ce021b52..4716da54f0 100644
--- a/src/mod/endpoints/mod_sofia/sofia.c
+++ b/src/mod/endpoints/mod_sofia/sofia.c
@@ -11344,6 +11344,8 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
 				switch_channel_set_variable(channel, "sip_geolocation_error", un->un_value);
 			} else if (!strcasecmp(un->un_name, "userLocation")) {
 				switch_channel_set_variable(channel, "sip_user_location", un->un_value);
+			} else if (!strcasecmp(un->un_name, "Charge")) {
+				switch_channel_set_variable(channel, "sip_charge", un->un_value);
 			} else if (!strncasecmp(un->un_name, "X-", 2) || !strncasecmp(un->un_name, "P-", 2) || !strcasecmp(un->un_name, "User-to-User") || !strncasecmp(un->un_name, "On", 2) || !strncasecmp(un->un_name, "K-", 2)) {
 				if (!zstr(un->un_value)) {
 					char new_name[512] = "";