<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>hie<br></div>i managed to set up a simple dialplan<br><br></div>exten => 2000,1,Answer()<br></div>exten => 2000,n,Rtsp(rtsp://<a href="http://172.20.20.20/live.sdp">172.20.20.20/live.sdp</a>)<br>
</div>exten => 2000,n, Hangup()<br><br></div>which play a video stream from vlc. Need help with how i include the gotoif(), mp4save() and mp4Play() in a diaplan to perform the<br></div>sequence of functionalities.<br></div>
1.Start a video stream from vlc in asterisk(managed to do the operation)<br></div><div>=>assign a variable to the video stream exten=>2000,1,set(Rtsp(rtsp://<a href="http://172.20.20.20/live.sdp)=stream">172.20.20.20/live.sdp)=stream</a>) not sure if its practical here<br>
</div><div>=>Hangup<br></div>=> if i dial an extension 2001, i intend to check if the resource ${stream} declared is being serviced by a softphone (linphone)<br></div>=> if busy with that resource, using conditional branching execute the gotoif() application that directs to a a step in the<br>
</div> diaplan with the mp4save function,initialise the saving of the video from vlc, and patch the call though, <br></div>=>play hello-world( Playback(hello-world))<br></div><div>=>Hangup()<br></div>=>and finaly reinitialize playing using mp4play on termination of call<br>
<br></div>Thank you..<br><div><div><div><div><br><br><br><div><div><div><div><div><br><div><br><br></div></div></div></div></div></div></div></div></div></div></div>