Fixes: #1280
UserNote: Enabling the tracking of the
STREAM_BEGIN and the STREAM_END event
types in cel.conf will log media files and
music on hold played to each channel.
The STREAM_BEGIN event's extra field will
contain a JSON with the file details (path,
format and language), or the class name, in
case of music on hold is played. The DTMF
event's extra field will contain a JSON with
the digit and the duration in milliseconds.
ast_log(LOG_WARNING,"Unable to build extradata for sound file STREAM_BEGIN event on channel %s",ast_channel_name(chan));
}
ast_json_unref(cel_event);
if(VERBOSITY_ATLEAST(3)){
ast_channel_lock(chan);
ast_verb(3,"<%s> Playing '%s.%s' (language '%s')\n",ast_channel_name(chan),tmp_filename,ast_format_get_name(ast_channel_writeformat(chan)),preflang?preflang:"default");