]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add parsing for userLocation header
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 22 Dec 2015 22:57:41 +0000 (16:57 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 22 Dec 2015 22:57:41 +0000 (16:57 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index f419af570bbc3824fec326405d4ed289a8de5a1e..addffec4b8849941d091893795d8f79daf9b98c3 100644 (file)
@@ -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")) {