[asterisk-users] Setting a CDR field from using feature codes...

Carlos Chavez cursor at telecomabmex.com
Thu Apr 11 12:07:59 CDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When I execute without using the AGI method I get no output on the CLI
at all.

On 4/11/13 11:54 AM, Asghar Mohammad wrote:
> i am using exten =>
> _XXXXXXX.,n,Set(CDR(cli_name)=${CHANNEL(peerip)}) cli_name is field
> in mysql and it work fine. show me cli output without AGI.
> 
> 
> On Thu, Apr 11, 2013 at 6:41 PM, Carlos Chavez
> <cursor at telecomabmex.com <mailto:cursor at telecomabmex.com>> wrote:
> 
> On 4/11/13 11:18 AM, Asghar Mohammad wrote:
>> hi, you have not assign any value to CDR(userfield). try code => 
>> #111,self,SET(CDR(userfield)=111)
> 
> 
>> On Thu, Apr 11, 2013 at 12:53 AM, Carlos Chavez 
>> <cursor at telecomabmex.com <mailto:cursor at telecomabmex.com>
> <mailto:cursor at telecomabmex.com <mailto:cursor at telecomabmex.com>>> 
> wrote:
> 
>> I am trying to set the CDR(userfield) to a certain vaule using
>> the application map of features.conf but I am not able to do it.
>> When I receive a call I would like to tag it with a client code
>> (3 digit numeric) so I can referenci it later from the CDR.  I
>> have edited features.conf with something like:
> 
>> code => #111,self,SET(CDR(userfield(111))
> 
>> or
> 
>> code => #111,self,AGI(code.agi)
> 
>> The DYNAMIC_FEATURES variable is in the globals section and 
>> includes the application map name.  When I do a "features reload"
>> I can see everything loads and when I dial the code during a call
>> I can see a message like:
> 
>> --  Feature Found: code exten: code
> 
>> The problem is that my CDR variable is not being written to. The 
>> first example does not show anything on screen.  For the second 
>> when I turn agi debug on I can see:
> 
>> <SIP/2001-00000003>AGI Rx << SET VARIABLE CDR(userfield) "111"
> 
>> But when I hang up neither my h extension or the CDR itself will 
>> show the value I set, it is empty.  I do not know what I am
>> doing wrong or maybe CDR variables are not available from
>> features?
> 
> 
> That was a copy/paste error on my part.  The line is as you put it 
> but I cannot get the value after.
> 
> 
> -- 
> _____________________________________________________________________
>
> 
- -- 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
> 
> 
> 
> 
> -- 
> _____________________________________________________________________
>
> 
- -- 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
> 

- -- 
Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlFm7e8ACgkQqmNh+MyHzx6POwCeLtZtIH42LgTPE/N0/l7kpfDP
XpkAnRqtgX6iFhaGzn29B+rjFhXd6tIv
=VW+3
-----END PGP SIGNATURE-----



More information about the asterisk-users mailing list