Subject: Re: [Sems] sems module
From: harry gaillac <[email-masked]>
To: Stefan Sayer <[email-masked]>
Cc: [email-masked]
Date: Tue, 21 Jun 2005 20:54:26 +0200 (CEST)
List-Id: A list for discussion related to SEMS <sems.iptel.org>

hello,

If i add this code will it play music as in xmms
playlist for example.

what i expect from moh module is to look in the moh
directory for one or more wav file (-this directory is
defined in sems.cfg).

if a least one file is found moh play the same file
(boucle) .

If more than one file is found all playlist is palyed
(boucle)

i expect from moh module it provide something like
xmms
if you want to listen the same music.

I agree i know what the moh should do but translate my
 
need into C++ is a problem for me.

Thanks for help 

Harry  

--- Stefan Sayer <[email-masked]> a écrit :

> pardon:
> Stefan Sayer wrote:
> > and some python documentation (
> www.python.org/docs ).
> www.python.org/doc/
> > ... 
> 
> > If you prefer c++ you can simply extend the
> announcement module
> > // somewhere in onSessionStart
> > while (!getSession()->sess_stopped.get()) {
> >     getSession()->rtp_str.play("file1.wav");
> >     getSession()->rtp_str.play("file2.wav");
> >     getSession()->rtp_str.play("file3.wav");
> > }
> 
> vector<string> files;
> files.push_back("file1.wav");
> files.push_back("file2.wav");
> files.push_back("file3.wav");
> 
> vector<string>::iterator it = files.begin();
> while (!getSession()->sess_stopped.get()) {
> 	getSession()->rtp_str.play(*it);
> 	it++;	
> 	if (it == files.end())
> 	 it = files.begin();
> }
> 
> > 
> > Stefan
> > 
> > 
> >
> > _______________________________________________
> Sems mailing list
> [email-masked]
> http://lists.iptel.org/cgi-bin/mailman/listinfo/sems
> 

	

		
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

_______________________________________________
Sems mailing list
[email-masked]
http://lists.iptel.org/cgi-bin/mailman/listinfo/sems