[Home]

Summary:ASTERISK-19637: Userfield variable cannot be correctly set in h extension
Reporter:Eugene (varnav)Labels:
Date Opened:2012-04-04 08:47:30Date Closed:2012-04-12 08:47:32
Priority:MajorRegression?
Status:Closed/CompleteComponents:CDR/General
Versions:10.3.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:After upgrade from 10.0.0 to 10.3.0 this line in dialplan:

exten => h,1,Set(CDR(userfield)=${QEHOLDTIME})

does not work anymore - nothing is written to "userfield" column in database.

The solution is to replace it with

Set(CDR(qeholdtime)=${QEHOLDTIME})

and create a column named qeholdtime

Looks like userfield variable gets eaten at some point in ver 10.3.0 - this never happened in ver 10.0.0
Comments:By: Eugene (varnav) 2012-04-08 11:45:37.791-0500

Probably this commit fixes the bug:

https://code.asterisk.org/code/changelog/asterisk?cs=358978

By: Matt Jordan (mjordan) 2012-04-10 09:13:14.053-0500

Can you test with either the diff from https://reviewboard.asterisk.org/r/1794/ or a checkout from the 10 branch to confirm that this did indeed fix this problem?

By: Eugene (varnav) 2012-04-10 10:47:56.534-0500

I've applied the patch, recompiled from source and replaced asterisk executable with the patched one. And now "userfield" column gets filled again when Set(CDR(userfield)) is called.

By: Matt Jordan (mjordan) 2012-04-12 08:47:32.280-0500

Since this has been fixed and is in 1.8.12.0-rc1 and 10.4.0-rc1, I'm going to go ahead and close this issue as Fixed.