Custom IVR - Replace "}"


How can I replace “}” sign in Asterisk IVR

same => n,Set(remove_brace=${STRREPLACE(var_brace,"}","")})
but this is not working
In CLI i have this error

Can’t find trailing parenthesis for function ‘STRREPLACE(var_brace,"’?

Ok i found the answer

So you must create variable with the special sign
same => n,Set(sign="}"
same => n,Set(remove_brace=${STRREPLACE(var_brace,${sign},"")})

And it works ! :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.