<div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I can create an audio call file and specify Application: Playback and Data: a path to the audio file, it calls the phone and plays the audio message just fine.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I am trying to do the same with a video file. I specify Application: Playback and Data: the path to the video file (no ending of course), and I do specify also the Codecs: h264,h263 etc...</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Asterisk reports:</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">*File /tmp/video does not exist in any format
*>* Unable to open /tmp/video (format ulaw|h263|h264)*
Looking then at the code and attaching with the debugger.
the ast_openstream_full() function has this condition:</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"> if (!fileexists_core(filename, NULL, preflang, buf, buflen,
file_fmt_cap) || !ast_format_cap_has_type(file_fmt_cap, AST_MEDIA_TYPE_AUDIO)) {</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"> }</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">So fileexists_core() returns 1 but the next call to ast_format_cap_has_type() fails. because its looking for AST_MEDIA_TYPE_AUDIO and the file is a video file. Nowhere is the an AST_MEDIA_TYPE_VIDEO.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">I can use the call file to setup a video call between two video softphones just fine. However using the call file to call a phone and play a video is not working at all for me.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Am I on the right track?</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Is this supposed to work? if so how since there is no check of the AST_MEDIA_TYPE_VIDEO?</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Thanks,</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Jerry</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><br></pre></div>