1 Apr 2012 02:04
Re: keep dst cdr record if context change
Warren Selby <wcselby <at> selbytech.com>
2012-04-01 00:04:31 GMT
2012-04-01 00:04:31 GMT
On Fri, Mar 30, 2012 at 4:51 PM, Daniel Knoll <daniel <at> danielknoll.de> wrote:
Looks nice, was also my first idea, but field dst is read only. I can't overwrite this and get an error like thisERROR[2474]: cdr.c:345 ast_cdr_setvar: Attempt to set the 'dst' read-only variable!.
I was afraid of that. Does it absolutely have to be dst that you store this information in? You can create custom cdr fields that are both readable and writeable. Something like:
[incoming]
exten => _X.,1,Verbose(New call coming in)
exten => _X.,n,Set(CDR(original_dst)=${EXTEN})
exten => _X.,n,Goto(mainmenu,s,1)
--
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com
-- _____________________________________________________________________ -- 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
RSS Feed