Asterisk monitor files


We have a problem with asterisk monitor files. They are being saved with default names, however the names of the files differ from the uniqueid fields that we have in our CDR.

For example: In Mysql CDR we have uniqueid: 1381227483.514
The file name is: 1381227411-DAHDI-30-1-out.wav

Previously we were able to construct the name of the monitor file by exploding uniqueid , but since we upgraded asterisk, they are different.

Any idea how can we solve this? Did anyone else had this problem?

Is there other way that we could connect the monitor files and mysql CDR - as we are unable to find the correct file now?

On all extensions we use the same command:
exten => s,n,Monitor(wav,)

Thank you in advance.


14:10 - 10:45 << 24:00!

sorry david, what was that??

I used this piece of code without any problem the cdr userfiled value is equal to the monitor file name.

exten => _8.,1,Answer()
exten => _8.,2,set(calltime=${UNIQUEID})
exten =>_8.,3,Set(CDR(userfield)=${calltime})
exten =>_8.,4,MixMonitor(/var/www/cdr/recording/${calltime}.wav)
exten => _8.,5,Dial(SIP/${EXTEN:1}@didlogic,60,tTR)