<div dir="ltr">how you are executing?<div style>show me your full context and how call enter in context.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 11, 2013 at 7:07 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>
When I execute without using the AGI method I get no output on the CLI<br>
at all.<br>
<br>
On 4/11/13 11:54 AM, Asghar Mohammad wrote:<br>
> i am using exten =><br>
> _XXXXXXX.,n,Set(CDR(cli_name)=${CHANNEL(peerip)}) cli_name is field<br>
> in mysql and it work fine. show me cli output without AGI.<br>
><br>
><br>
> On Thu, Apr 11, 2013 at 6:41 PM, 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>
> 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>><br>
> <mailto:<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a> <mailto:<a href="mailto:cursor@telecomabmex.com">cursor@telecomabmex.com</a>>>><br>
> wrote:<br>
><br>
>> I am trying to set the CDR(userfield) to a certain vaule using<br>
>> the application map of features.conf but I am not able to do it.<br>
>> When I receive a call I would like to tag it with a client code<br>
>> (3 digit numeric) so I can referenci it later from the CDR. I<br>
>> have 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"<br>
>> I can see everything loads and when I dial the code during a call<br>
>> I 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<br>
>> doing wrong or maybe CDR variables are not available from<br>
>> 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>
> --<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<br>
> Thurs: <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
><br>
> asterisk-users mailing list To UNSUBSCRIBE or update options<br>
> visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
><br>
><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<br>
> Thurs: <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
><br>
> asterisk-users mailing list To UNSUBSCRIBE or update options<br>
> visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><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>
iEYEARECAAYFAlFm7e8ACgkQqmNh+MyHzx6POwCeLtZtIH42LgTPE/N0/l7kpfDP<br>
XpkAnRqtgX6iFhaGzn29B+rjFhXd6tIv<br>
=VW+3<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>