[asterisk-users] pipe character in CDR user field
John Kiniston
johnkiniston at gmail.com
Thu Nov 29 09:32:09 CST 2012
I've not tried this with a pipe but I've done this with a different
character and it works.
Try
Set(CDR(userfield)=${SPRINTF(%c,7C)}usr_r=veri
On Thu, Nov 29, 2012 at 2:54 AM, Vieri <rentorbuy at yahoo.com> wrote:
> I'm trying to set a CDR userfield to a custom value. This value may
> contain a '|' but it's really just part of the value.
> However, Asterisk keeps warning me about the application delimiter not
> being a pipe.
> It's NOT an application delimiter (it's just part of a variable value) so
> I'm expecting Asterisk not to warn me about it.
> Is it expected behavior? Why?
>
> See the following log:
>
> <SIP/4053-0000007b>AGI Rx << EXEC Set CDR(userfield)="|usr_r=vieri"
> -- AGI Script Executing Application: (Set) Options:
> (CDR(userfield)=|usr_r=vieri)
> [Nov 29 10:53:08] WARNING[4815]: pbx.c:1563 pbx_exec: The application
> delimiter is now the comma, not the pipe. Did you forget to convert your
> dialplan? (Set(CDR(userfield)=|usr_r=vieri))
> <SIP/4053-0000007b>AGI Tx >> 200 result=0
>
> <SIP/4053-0000007d>AGI Rx << EXEC Set CDR(userfield)=\"|usr_r=vieri\"
> -- AGI Script Executing Application: (Set) Options:
> (CDR(userfield)="|usr_r=vieri")
> [Nov 29 10:54:57] WARNING[4838]: pbx.c:1563 pbx_exec: The application
> delimiter is now the comma, not the pipe. Did you forget to convert your
> dialplan? (Set(CDR(userfield)="|usr_r=vieri"))
> <SIP/4053-0000007d>AGI Tx >> 200 result=0
>
> Thanks,
>
> Vieri
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
A human being should be able to change a diaper, plan an invasion, butcher
a hog, conn a ship, design a building, write a sonnet, balance accounts,
build a wall, set a bone, comfort the dying, take orders, give orders,
cooperate, act alone, solve equations, analyze a new problem, pitch manure,
program a computer, cook a tasty meal, fight efficiently, die gallantly.
Specialization is for insects.
---Heinlein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121129/c67c333e/attachment.htm>
More information about the asterisk-users
mailing list