switch_channel_set_variable(channel, "push_channel_name", "true");
} else if (!strcasecmp(un->un_name, "X-FS-Support")) {
tech_pvt->x_freeswitch_support_remote = switch_core_session_strdup(session, un->un_value);
+ } else if (!strcasecmp(un->un_name, "Geolocation")) {
+ switch_channel_set_variable(channel, "sip_geolocation", un->un_value);
} else if (!strncasecmp(un->un_name, "X-", 2) || !strncasecmp(un->un_name, "P-", 2) || !strcasecmp(un->un_name, "User-to-User")) {
if (!zstr(un->un_value)) {
char new_name[512] = "";
for (; hi; hi = hi->next) {
const char *name = (char *) hi->name;
char *value = (char *) hi->value;
+
+ if (!strcasecmp(name, "sip_geolocation")) {
+ stream.write_function(&stream, "Geolocation: %s\r\n", value);
+ }
if (!strncasecmp(name, prefix, strlen(prefix))) {
if ( !exclude_regex || !(proceed = switch_regex_perform(name, exclude_regex, &re, ovector, sizeof(ovector) / sizeof(ovector[0])))) {