[asterisk-users] How to give users the capability to set CDR userfield for some calls

Kevin Larsen kevin.larsen at pioneerballoon.com
Thu Jan 17 10:31:18 CST 2013


Possibly switch to using subroutines instead of Macros. Macros are being 
deprecated in place of subroutines.

Kevin Larsen - Systems Analyst - Pioneer Balloon - Ph: 316-688-8208



From:   Olivier <oza_4h07 at yahoo.fr>
To:     Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users at lists.digium.com>, 
Date:   01/17/2013 10:29 AM
Subject:        [asterisk-users] How to give users the capability to set 
CDR     userfield for some calls
Sent by:        asterisk-users-bounces at lists.digium.com



Hello,

To my surprise, with asterisk 1.8 (I've not tried with other versions), it 
seems you cannot set CDR's userfield from within a dialplan macro called 
by dynamic features.

See :

testfeature => *321,self/callee,Macro,toto

[macro-toto]
exten => s,1,Verbose(0,Into macro-toto with CDR(src) set to ${CDR(src)})
exten => s,n,Set(CDR(userfield)=foobar)

I'm planning to use this feature to let users mark in CDR an ongoing call 
as malicious or important or whatever.

Any hint ?

Regards--
_____________________________________________________________________
-- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130117/0f8deec1/attachment.htm>


More information about the asterisk-users mailing list