Ryan Press
2021-Jun-30 14:10 UTC
[asterisk-users] Combine audio and video from two different sources
I'm trying to combine audio and video from two different sources. The application is a door intercom system with a separate RTSP video camera. I'd like the door intercom to be able to call an extension and that receiving extension will show the video and have two-way audio. Also it would be nice to be able to call the door intercom as the answering device and show the video as well. I have this working when the door intercom is the answering device. I've found some source code which bridges an RTSP stream to an Asterisk channel. Using this I have a working solution with this dialplan: [from-internal-custom] ; Doorbell video bridge exten => doorbell_rtsp,1,Answer() same => n,RTSP-SIP(rtsp:// admin:12345 at 192.168.24.53:554/live/sub,0,asterisk,5060) ; Doorbell combined video/audio incoming exten => 762,1,Answer() same => n,Page(PJSIP/805&Local/doorbell_rtsp at from-internal-custom,qd) The problem comes when I try to get the door intercom to call an extension. Because the calling device (door intercom) does not include video, the video capability is not added to the ConfBridge and therefore when I bridge in the RTSP-SIP channel it does not connect. When I tried to use Originate it had the same problem, no video codec was offered. Is there some way I can create a ConfBridge and force a video codec? Or use Originate with a video codec? I see that Asterisk has included Streams for a while now. Maybe this is the best way forward but I'm not sure this is something I can easily configure without writing a bunch of new code. Thanks, Ryan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210630/da3a8330/attachment.html>
Jean Aunis
2021-Jul-06 06:14 UTC
[asterisk-users] Combine audio and video from two different sources
Le 30/06/2021 à 16:10, Ryan Press a écrit :> [...] > [from-internal-custom] ; Doorbell video bridge > exten => doorbell_rtsp,1,Answer() same => > n,RTSP-SIP(rtsp://admin:12345 at 192.168.24.53:554/live/sub,0,asterisk,5060 > <http://admin:12345 at 192.168.24.53:554/live/sub,0,asterisk,5060>) > ; Doorbell combined video/audio incoming > exten => 762,1,Answer() same => > n,Page(PJSIP/805&Local/doorbell_rtsp at from-internal-custom,qd) > > The problem comes when I try to get the door intercom to call an > extension. Because the calling device (door intercom) does not > include video, the video capability is not added to the ConfBridge and > therefore when I bridge in the RTSP-SIP channel it does not connect. > When I tried to use Originate it had the same problem, no video codec > was offered. > > Is there some way I can create a ConfBridge and force a video codec? > Or use Originate with a video codec? > > I see that Asterisk has included Streams for a while now. Maybe this > is the best way forward but I'm not sure this is something I can > easily configure without writing a bunch of new code. > > Thanks, > Ryan >Hello, Did you try to use ARI's "originate" function with the "format" parameter containing a video codec ? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210706/25d4e173/attachment.html>