<div dir="ltr">hi,<div style>you have not assign any value to <span style="font-family:arial,sans-serif;font-size:13px">CDR(userfield).</span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">try</span></div>
<div style><span style="font-family:arial,sans-serif;font-size:13px">code => #111,self,SET(CDR(userfield)=</span><span style="font-family:arial,sans-serif;font-size:13px">111)</span><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 12:53 AM, Carlos Chavez <span dir="ltr"><<a href="mailto:cursor@telecomabmex.com" target="_blank">cursor@telecomabmex.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
I am trying to set the CDR(userfield) to a certain vaule using the<br>
application map of features.conf but I am not able to do it. When I<br>
receive a call I would like to tag it with a client code (3 digit<br>
numeric) so I can referenci it later from the CDR. I have edited<br>
features.conf with something like:<br>
<br>
code => #111,self,SET(CDR(userfield(111))<br>
<br>
or<br>
<br>
code => #111,self,AGI(code.agi)<br>
<br>
The DYNAMIC_FEATURES variable is in the globals section and includes<br>
the application map name. When I do a "features reload" I can see<br>
everything loads and when I dial the code during a call I can see a<br>
message like:<br>
<br>
- -- Feature Found: code exten: code<br>
<br>
The problem is that my CDR variable is not being written to. The<br>
first example does not show anything on screen. For the second when I<br>
turn agi debug on I can see:<br>
<br>
<SIP/2001-00000003>AGI Rx << SET VARIABLE CDR(userfield) "111"<br>
<br>
But when I hang up neither my h extension or the CDR itself will show<br>
the value I set, it is empty. I do not know what I am doing wrong or<br>
maybe CDR variables are not available from features?<br>
<br>
- --<br>
Telecomunicaciones Abiertas de México S.A. de C.V.<br>
Carlos Chávez Prats<br>
Director de Tecnología<br>
<a href="tel:%2B52-55-91169161%20ext%202001" value="+525591169161">+52-55-91169161 ext 2001</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)<br>
Comment: GPGTools - <a href="http://gpgtools.org" target="_blank">http://gpgtools.org</a><br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iEYEARECAAYFAlFl7VYACgkQqmNh+MyHzx7SzACggvfeVZEE70JhVUXjzEvCTTg9<br>
d2gAoJWAYR7cBI7DCfbL47s6afIiZB9G<br>
=SJlv<br>
-----END PGP SIGNATURE-----<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></blockquote></div><br></div>