Summary: | ASTERISK-07737: record should return recorded length in seconds in a variable | ||
Reporter: | Raphaƫl Jacquot (sxpert) | Labels: | |
Date Opened: | 2006-09-13 01:05:19 | Date Closed: | 2011-06-07 14:02:57 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_record |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | there appears to be no way to obtain the length of a recorded message, except doing extremely convoluted things like #!/bin/bash LENGTH=`sox /home/asterisk/confs/$1.wav -e stat 2>&1 | grep Length | sed 's/[^0-9]*//'` echo $LENGTH SERIAL=`echo multi-8700-12 | sed 's/\(multi-[0-9]*-\)\([0-9]*\)/\2/'` echo $SERIAL COMMAND="update conferences set message_length=$LENGTH where conf_serial=$SERIAL" echo $COMMAND #psql -c "$COMMAND" -U asterisk asterisk then going to the database with a func_odbc entry to get the value... it would be much easier to have a ${RECORD_TIME} variable filled with the proper value | ||
Comments: | By: Serge Vecher (serge-v) 2006-09-13 11:58:05 a better place for feature requests is on the wiki at voip-info.org. I am going to suspend this issue for now, but please feel free to reopen when either your or another developer are ready to submit a disclaimed patch that implements this. |