From 6c17410c25e503db2a27b246639f0e11dea3a203 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 22 Dec 2015 16:57:41 -0600 Subject: [PATCH] add parsing for userLocation header --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index f419af570b..addffec4b8 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -10424,7 +10424,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia } else if (!strcasecmp(un->un_name, "Geolocation")) { switch_channel_set_variable(channel, "sip_geolocation", un->un_value); } else if (!strcasecmp(un->un_name, "Geolocation-Error")) { - switch_channel_set_variable(channel, "sip_geolocation", un->un_value); + 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 (!strncasecmp(un->un_name, "X-", 2) || !strncasecmp(un->un_name, "P-", 2) || !strcasecmp(un->un_name, "User-to-User")) {