I've not tried this with a pipe but I've done this with a different character and it works.<div><br></div><div>Try</div><div><br></div><div>Set(CDR(userfield)=${SPRINTF(%c,7C)}usr_r=veri</div><div><div class="gmail_extra">
<br><div class="gmail_quote">On Thu, Nov 29, 2012 at 2:54 AM, Vieri <span dir="ltr"><<a href="mailto:rentorbuy@yahoo.com" target="_blank">rentorbuy@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
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.<br>
However, Asterisk keeps warning me about the application delimiter not being a pipe.<br>
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.<br>
Is it expected behavior? Why?<br>
<br>
See the following log:<br>
<br>
<SIP/4053-0000007b>AGI Rx << EXEC Set CDR(userfield)="|usr_r=vieri"<br>
-- AGI Script Executing Application: (Set) Options: (CDR(userfield)=|usr_r=vieri)<br>
[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))<br>
<SIP/4053-0000007b>AGI Tx >> 200 result=0<br>
<br>
<SIP/4053-0000007d>AGI Rx << EXEC Set CDR(userfield)=\"|usr_r=vieri\"<br>
-- AGI Script Executing Application: (Set) Options: (CDR(userfield)="|usr_r=vieri")<br>
[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"))<br>
<SIP/4053-0000007d>AGI Tx >> 200 result=0<br>
<br>
Thanks,<br>
<br>
Vieri<br>
<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>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.<br>
---Heinlein<br>
</div></div>