[asterisk-users] SET with pipe symbol
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Tue Jan 29 09:14:08 CST 2008
On Tuesday 29 January 2008 08:32:44 Arjan Kroon | Mobillion wrote:
> I want to place a pipe symbol in a variable by using the command Set
> I tried the following code:
> Set(M_CHANNELVAR=${UNIQUEID}|${CALLERID(number))
>
> When I call to my applicatie I see the following output in my CLI :
> Ignoring entry '612345678' with no = (and not last 'options'
> entry)
> (in my test call ${CALLERID(number) = 061234578)
>
> I tried to escape the pipe symbol by using \ (backslash)
> With the same result
> Also I tried to place the variable between single or double quotes, but
> with the same result.
>
> Does anybody now how place a pipe symbol in variable.
You can't, in 1.4. This is by design. We have removed this restriction in
1.6. As a workaround, in 1.4, use the NoOp instruction with the SET dialplan
function, i.e.
NoOp(${SET(M_CHANNELVAR=${UNIQUEID}|${CALLERID(number))})
--
Tilghman
More information about the asterisk-users
mailing list