It seems that you guys are just guessing on this matter which is very unfortunate for me as I took your word for it and spent several more hours trying to make it work as you assert it should.
After enough of that, I dug into the code for app_originate and was not too surprised to find that it is hard-coded with the slin audio formats, which of course can be transcoded into any other audio format. But this excludes all video codecs, no matter whether they are set in dialplan variables, functions, or peer definitions.
A workaround for me is to modify app_originate.c to include h264 format at the end of the list of capabilities:
I must admit that I forgot that you needed a preferred codec before you can initiate an outgoing channel, and originate defaults to slin. AMI originate, which is what we used, does have a codecs parameter, although I don’t know if it honours video ones.
Unless you are very luck and someone has had exactly the same issue, the nature of a forum like this is that you will only get hints, and sometimes those hints will be wrong. People are not going to do detailed research before replying.
We are not guessing, we just give you hints and thoughts and as David said unless some one had the same issue and fixed, you wont find an exact answer.realize that for your fix your issue you went to the source code of the originate app. In a peer forum nobody is diging in the source code to fix others members problems, forums are to exchange hints and thoughts , and working solution you have found before.
I wasn’t asking anyone to do deep research or examine the source code for me. Actually I thought it was reasonable that someone might have initiated video calls from Asterisk before.
So yeah, you were guessing, and I suggest that in the future if you offer help on something for which you do not have direct experience that you mention that. “I haven’t initiated video calls, but here’s something you could check…”
Thanks anyway. My opinion is that forum help is not a race; it’s better to be accurate than fast.