diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d87a267d46..c1272dfa40 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15662,7 +15662,7 @@ static int get_rdnis(struct sip_pvt *p, struct sip_request *oreq, char **name, c } /* Remove enclosing double-quotes */ if (*reason_param == '"') - ast_strip_quoted(reason_param, "\"", "\""); + reason_param = ast_strip_quoted(reason_param, "\"", "\""); if (!ast_strlen_zero(reason_param)) { sip_set_redirstr(p, reason_param); if (p->owner) {