From 3ec15cce68852fd4dba7336dd7a7a505d143a111 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 12 Aug 2013 17:27:31 -0500 Subject: [PATCH] doh blonde moment --- src/mod/endpoints/mod_sofia/sofia_presence.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }