Media offer Video in Originate

Hey, i have setup a conference, i’m adding an local RTSP stream with Originate
But seems there is no video offer ?
I tried adding h264 with the C option, doesnt work
I tried adding media_offer settings, didnt work

How can i make video possible wirh originate? Am i missing something?

exten => 666,1,NoOp()
 same => n,Set(PJSIP_MEDIA_OFFER(video)=h264)
 same => n,Set(PJSIP_SEND_SESSION_REFRESH()=invite)
 same => n,Originate(Local/doorbell_rtsp@from-internal-custom,exten,default,777,1,aC(h264))
 same => n,ConfBridge(1,myconferenceroom,default_user)
 
exten => 777,1,NoOp()
 same => n,ConfBridge(1,myconferenceroom,admin_user)

Also found this:

Is the only way hardcoding it?

ok, a step closer
I tried hardcoding it, i added this line in the .c file of the originat app:
ast_format_cap_append(capabilities, ast_format_h264, 0);
that worked when i hardcoded it

But seems i was missing an “,” in my dialplan:
changed
same => n,Originate(Local/doorbell_rtsp@from-internal-custom,exten,default,888,1,aC(h264))
to
same => n,Originate(Local/doorbell_rtsp@from-internal-custom,exten,default,888,1,aC(h264))

But now i receive:

[May  3 23:09:36] WARNING[630][C-00000001]: translate.c:494 ast_translator_build_path: No translator path: (starting codec is not valid)
[May  3 23:09:36] WARNING[630][C-00000001]: channel.c:5765 set_format: Unable to find a codec translation path: (slin) -> (h264)

What am i missing? isnt h264 not right to add? i dont want to hardcode it :slight_smile:

ok, fixed, seems i also needed to add audio codecs

same => n,Originate(Local/doorbell_rtsp@from-internal-custom,exten,default,888,1,,aC(ulaw,alaw,h264))

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.