diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0cf12acd07..a85563bd77 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15771,7 +15771,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) {