[asterisk-users] How to give users the capability to set CDR userfield for some calls
Danny Nicholas
danny at debsinc.com
Fri Jan 18 09:45:10 CST 2013
Since Gosub is technically an application, you should be able to modify this
snippet in features.conf
testfeature => #9,peer,Playback,tt-monkeys ;Allow both the caller and
callee to play
; ;tt-monkeys to the opposite
channel
To this
testfeature => #9,peer,Gosub,play-monkeys,s,1 ;Allow both the caller and
callee to play
; ;tt-monkeys to the opposite
channel
And in extensions.conf add
[play-monkeys]
Exten => s,1,playback(tt-monkeys)
Exten => s,n,return()
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier
Sent: Friday, January 18, 2013 3:35 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] How to give users the capability to set CDR
userfield for some calls
2013/1/17 Kevin Larsen <kevin.larsen at pioneerballoon.com>
Possibly switch to using subroutines instead of Macros. Macros are being
deprecated in place of subroutines.
Interesting thing to try.
The trouble is I can't find any usable example of calling Gosub routines
from features.conf's application map.
I've found old references explaining that this is not supported but I don't
if it's still valid or not.
Any ex
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/>
http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
<http://www.asterisk.org/hello> http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<http://lists.digium.com/mailman/listinfo/asterisk-users>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130118/6037983b/attachment-0001.htm>
More information about the asterisk-users
mailing list