search for: ast_cdr_setvar

Displaying 5 results from an estimated 5 matches for "ast_cdr_setvar".

2010 Feb 03
1
ast_cdr_setvar: Attempt to set the 'src' read-only variable!
Hello list. I would like to set the CDR(src)-variable to the SIPphone that is initiating the call. When calling out, the src-variable is always the public telephone number. I get the ERROR : ast_cdr_setvar: Attempt to set the 'src' read-only variable! Is there some way to implement this ?? Kind regards, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100203/4b514487/attachment.htm
2013 Sep 14
1
Asterisk-1.8.23.1 mysql cdr
...timestr[128]; ast_localtime(&tv, &tm, ast_str_strlen(cdrzone) ? ast_str_buffer(cdrzone) : NULL); ast_strftime(timestr, sizeof(timestr), "%Y-%m-%d %T", &tm); ast_cdr_setvar(cdr, "calldate", timestr, 0); cdrname = "calldate"; } else { cdrname = "start"; } } else {...
2015 Aug 04
2
Modifying CDR values from a hangup extension in Asterisk 13
...s not modifiable from the "h" extension, because the cdr_object is already in the finalized table. Is there a way how to modify the CDR without hacking the code? How bad idea is it to comment the (it_cdr->fn_table == &finalized_state_fn_table) tests in ast_cdr_setuserfield and ast_cdr_setvar and thus allow the "h" extension write to a finalized CDR? Is there any chance the feature was left out by an accident and if so, is there a plan to add it again? My extensions.conf: exten => h,1,NoOp(${CDR(userfield)}) exten => h,n,Set(CDR(userfield)=changed) exten => h,n,No...
2018 Feb 20
2
Modifying CDR values from a hangup extension in Asterisk 13
...> the finalized table. >> >> Is there a way how to modify the CDR without hacking the code? >> >> > Unfortunately, no. > > >> How bad idea is it to comment the (it_cdr->fn_table == >> &finalized_state_fn_table) tests in ast_cdr_setuserfield and ast_cdr_setvar >> and thus allow the "h" extension write to a finalized CDR? >> >> > Well... I'm not sure :-) > > As the guy who signed himself up for the dubious honour of porting the CDR > code to Asterisk 13 - and trying to figure out a consistent way to make it >...
2015 Aug 03
2
Modifying CDR values from a hangup extension in Asterisk 13
Hi, I'm trying to migrate from Asterisk 1.8 to Asterisk 13 and can't figure this one out. I'm pretty sure the question has been already asked, but I failed to find a solution. Can you modify CDR values in an h-extension? My cdr.conf contains: [general] enable=yes unanswered=yes endbeforehexten=yes initiatedseconds=no batch=no The diaplan contains a simple "h" extension