mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 15:24:13 +00:00
add geolocation header parser
This commit is contained in:
1 parent
c8a6c99f84
commit
b0cdad5d5d
2 files changed
+6
No files matched your search
@@ -8702,6 +8702,8 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
|
||||
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] = "";
|
||||
|
||||
Reference in new issue
Block a user