<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
</div>
<blockquote cite="mid:55BF7AB0.2050507@kerio.com" type="cite">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.
<br>
<br>
Can you modify CDR values in an h-extension?
<br>
<br>
My cdr.conf contains:
<br>
[general]
<br>
enable=yes
<br>
unanswered=yes
<br>
endbeforehexten=yes
<br>
initiatedseconds=no
<br>
batch=no
<br>
<br>
The diaplan contains a simple "h" extension
<br>
exten => h,1,NoOp(${CDR(userfield)})
<br>
exten => h,n,Set(CDR(userfield)=changed)
<br>
exten => h,n,NoOp(${CDR(userfield)})
<br>
<br>
In the same context I execute:
<br>
exten => 10,1,Set(CDR(userfield)=empty)
<br>
exten => 10,n,Dial(SIP/10)
<br>
<br>
The "h" extension outputs two lines with userfield set to "empty".
I would expect the second one to be "changed". It seems that I can
read the CDR values, but I can't change them. Is it a bug or a
design thing? Am I missing something?
<br>
</blockquote>
I am not working with h-extensions myself, but the docs
(<a class="moz-txt-link-freetext" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_cdr">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_cdr</a>)
say something like this:<br>
<br>
<table class="confluenceTable tablesorter" style="color: rgb(51, 51,
51); border-collapse: collapse; margin: 0px; overflow-x: auto;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: 20px;
orphans: auto; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<tbody>
<tr style="color: rgb(51, 51, 51);">
<td class="confluenceTd" style="color: rgb(51, 51, 51);
border: 1px solid rgb(221, 221, 221); padding: 7px 10px;
vertical-align: top; text-align: left;">
<p style="margin: 0px; padding: 0px; color: rgb(51, 51, 51);
background-color: transparent;"><a
href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_cdr#Asterisk13Configuration_cdr-general_endbeforehexten"
style="color: rgb(25, 46, 132); text-decoration: none;"><code
style="font-family: monospace;">endbeforehexten</code></a></p>
</td>
<td class="confluenceTd" style="color: rgb(51, 51, 51);
border: 1px solid rgb(221, 221, 221); padding: 7px 10px;
vertical-align: top; text-align: left;">
<p style="margin: 0px; padding: 0px; color: rgb(51, 51, 51);
background-color: transparent;"><code style="font-family:
monospace;">Boolean</code></p>
</td>
<td class="confluenceTd" style="color: rgb(51, 51, 51);
border: 1px solid rgb(221, 221, 221); padding: 7px 10px;
vertical-align: top; text-align: left;">
<p style="margin: 0px; padding: 0px; color: rgb(51, 51, 51);
background-color: transparent;"><code style="font-family:
monospace;">1</code></p>
</td>
<td class="confluenceTd" style="color: rgb(51, 51, 51);
border: 1px solid rgb(221, 221, 221); padding: 7px 10px;
vertical-align: top; text-align: left;">
<p style="margin: 0px; padding: 0px; color: rgb(51, 51, 51);
background-color: transparent;"><code style="font-family:
monospace;">false</code></p>
</td>
<td class="confluenceTd" style="color: rgb(51, 51, 51);
border: 1px solid rgb(221, 221, 221); padding: 7px 10px;
vertical-align: top; text-align: left;">
<p style="margin: 0px; padding: 0px; color: rgb(51, 51, 51);
background-color: transparent;">Don't produce CDRs while
executing hangup logic</p>
</td>
</tr>
</tbody>
</table>
<br>
This would indicate that at least writing is disabled.<br>
<br>
jg<br>
</body>
</html>