Hello, o Jason Penton [06/12/08 10:37]:
Hi StefanOn Tue, 2008-06-10 at 20:47 +0200, Stefan Sayer wrote:Hello, o Jason Penton [06/10/08 20:36]:have a look at AmAudioQueue (AmAdvancedAudio.h, well, its not so advanced), you can attach two or more AmAudios to the input, e.g. one AmConferenceChannel and one AmAudioFile. Audio is written to (or read from, if you push them in output queue) both.Hi All, what is the best way to record a SIP call using SEMS??I was thinking something like the conference app with a call being made out automatically and attaching a writable audio file for the 'recording channel'If we take the simpleconference example. Would we still use the AmPlaylist and add the audioqueue to the playlist.
i'd do it the other way round, put the playlist in the audio queue (see attached pic). if i am not mistaken now, the front of the queue is at the right, the back at the left ('front' is always first read/written).
so this would be like
audio_file.open("file.wav", AmAudio::write);
playlist.addToPlaylist(new AmPlaylistItem(channel.get(), channel.get()));
audio_queue.pushAudio(&audio_file,AmAudioQueue::OutputQueue,AmAudioQueue::Front,true,false);
audio_queue.pushAudio(&playlist,AmAudioQueue::OutputQueue,AmAudioQueue::Front,false,true);
setInput(&playlist); setOutput(&audio_queue); let us know whether this works... Stefan
I tried substituting the AmPlayList in the simepleconference with AmAudioQueue. So if I just do the following: setInOut(&audio_queue,&audio_queue); i get echo when you dial in, and if I add something like:audio_queue.pushAudio(channel.get(),AmAudioQueue::OutputQueue,AmAudioQueue::Front,true,false);i get a bunch of noise with debug saying: (17465) DEBUG: write (AmPlayoutBuffer.cpp:79): resync needed: reference ts = 92240; write ts = 986062047 Could you please guide me in the right direction. Kind regards Jasonhope this gets you started. Stefanany feedback / ideas ???p.s. i did search the archives and found a previous question similar to this but unfortunately it was not answered........Kind regards ------------------------------------------------------------------------ _______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
-- Stefan Sayer VoIP Services [EMAIL PROTECTED] www.iptego.com iptego GmbH Am Borsigturm 40 13507 Berlin Germany Amtsgericht Charlottenburg, HRB 101010 Geschaeftsfuehrer: Alexander Hoffmann
<<inline: audioqueue_recording.png>>
_______________________________________________ Sems mailing list [email protected] http://lists.iptel.org/mailman/listinfo/sems
