<div dir="ltr">i am using<div>exten => _XXXXXXX.,n,Set(CDR(cli_name)=${CHANNEL(peerip)})<br></div><div style>cli_name is field in mysql and it work fine.</div><div style>show me cli output without AGI.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 6:41 PM, 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>
On 4/11/13 11:18 AM, Asghar Mohammad wrote:<br>
> hi, you have not assign any value to CDR(userfield). try code =><br>
> #111,self,SET(CDR(userfield)=111)<br>
><br>
><br>
> On Thu, Apr 11, 2013 at 12:53 AM, Carlos Chavez<br>
> <<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a> <mailto:<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a>>> wrote:<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<br>
> I receive a call I would like to tag it with a client code (3<br>
> digit numeric) so I can referenci it later from the CDR. I have<br>
> edited 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<br>
> includes the application map name. When I do a "features reload" I<br>
> can see everything loads and when I dial the code during a call I<br>
> can see a 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<br>
> when I 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<br>
> show the value I set, it is empty. I do not know what I am doing<br>
> wrong or maybe CDR variables are not available from features?<br>
><br>
><br>
That was a copy/paste error on my part. The line is as you put it<br>
but I cannot get the value after.<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>
iEYEARECAAYFAlFm56gACgkQqmNh+MyHzx6VpwCePy+X5YzFX68fTbTDtqXRe3PO<br>
kvMAn3mEXOddPyd9wu/HTRu7QjPAv5xJ<br>
=rbhr<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><br>
</blockquote></div><br></div>