From: surendrasignalwire <56929670+surendrasignalwire@users.noreply.github.com> Date: Fri, 20 Dec 2019 22:06:57 +0000 (+0530) Subject: [mod_sofia] Url encode the sip_to_user before using in 200 ok contact X-Git-Tag: v1.10.6^2~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16ee826e2b8172345aff12ac0c651c46791b5f67;p=thirdparty%2Ffreeswitch.git [mod_sofia] Url encode the sip_to_user before using in 200 ok contact --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 7d8b2fe6eb..32ed268b7e 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -10891,9 +10891,10 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia if (switch_channel_get_variable(channel, "sip_to_uri")) { const char *ipv6; const char *tmp, *at, *url = NULL; - + const char *tmp_user = switch_channel_get_variable(channel, "sip_to_user"); + + user = switch_core_session_url_encode(session, tmp_user); host = switch_channel_get_variable(channel, "sip_to_host"); - user = switch_channel_get_variable(channel, "sip_to_user"); switch_channel_set_variable(channel, "sip_to_comment", sip->sip_to->a_comment);