[asterisk-users] keep dst cdr record if context change

Warren Selby wcselby at selbytech.com
Sat Mar 31 19:04:31 CDT 2012


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 this
>
> ERROR[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 <http://www.selbytech.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120331/271b7b24/attachment.htm>


More information about the asterisk-users mailing list