From: Brian West Date: Mon, 12 Aug 2013 22:27:31 +0000 (-0500) Subject: doh blonde moment X-Git-Tag: v1.4.1~18^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ec15cce68852fd4dba7336dd7a7a505d143a111;p=thirdparty%2Ffreeswitch.git doh blonde moment --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index c89010ae19..5136eee8fc 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3320,7 +3320,9 @@ static int broadsoft_sla_gather_state_callback(void *pArg, int argc, char **argv } if (!zstr(callee_name)) { - callee_name = switch_sanitize_number(switch_url_decode(switch_core_session_strdup(session, callee_name))); + char *tmp = switch_core_session_strdup(session, callee_name); + switch_url_decode(tmp); + callee_name = switch_sanitize_number(tmp); }