|Summary:||ASTERISK-03267: [patch] a playlist function for ast_streamfile|
|Date Opened:||2005-01-13 23:39:31.000-0600||Date Closed:||2011-06-07 14:05:29|
|Environment:||Attachments:||( 0) app_pl.c_rev1.txt|
|Description:||This patch allow you easily do playback of multiple file from the code using clean, small call.|
you need to define, a struct, add item to the struct and play it back, sample example of a call
struct ast_playlist *pl=NULL;
pl = ast_playlist(pl,"digits/1",1000,chan->language);
pl = ast_playlist(pl,"digits/2",2000,chan->language);
pl = ast_playlist(pl,"digits/3",3000,chan->language);
pl = ast_playlist(pl,"digits/4",4000,chan->language);
****** ADDITIONAL INFORMATION ******
This first patch is as a APP(for easy testing), but the function ast_ will be in the app.c , and the struct should be defined in app.h in the final stage
This patch is to allow to remove from voicemail,meetme and other, those static Menu, like conf-admin. So you can build those menu easily in the code.
|Comments:||By: Clod Patry (junky) 2005-01-31 22:26:41.000-0600|
not sure to get the goal in here.
Can you add more details moc?
By: Olle Johansson (oej) 2005-02-13 13:06:41.000-0600
Is this patch still relevant? Any more information about it?
By: mochouinard (mochouinard) 2005-02-13 13:12:35.000-0600
I find it usefull, but if no one else want something like this, that fine
By: Olle Johansson (oej) 2005-02-13 13:31:40.000-0600
Junky asked for more information - can you please write a bit more on it so people will understand what you are trying to accomplish here!
By: mochouinard (mochouinard) 2005-02-13 15:15:51.000-0600
This is just to help building audio from multiple file in a easy way for 1 easy playback. For example, you got multiple IF that go in depending if the feature is available. So you can build the playlist before that, and add in every if, the prompt for each function, and then at the end, we can play it if we want or not. For example, the MeetMe User and Admin menu, it currently 1 recording that contain all the options, so this playlist could be a easy way to build within the code that menu using multiple file.
By: Mark Spencer (markster) 2005-03-02 00:15:53.000-0600
Already mostly done in app.c with the new ivr_menu stuff, although not yet dynamic.
By: mochouinard (mochouinard) 2005-03-25 23:48:47.000-0600
Ok Ive looked at ivr menu finally, and ivr menu might be ok for basic stuff, but for more advanced ivr, this playlist function is very usefull.
ivr menu code seem to be only a representation of extentions.conf line but in a C structure. ok a LITTLE more than that, you can call function and stuff.. but it basicly that.
edited on: 03-25-05 23:49
By: Mark Spencer (markster) 2005-03-26 01:15:59.000-0600
What can you do with the attached API that cannot be done with the static API?
By: Michael Jerris (mikej) 2005-05-02 08:07:50
MOC: Do you still want to persue this?
By: mochouinard (mochouinard) 2005-05-14 19:36:42
not for the moment, but I'll have to BUG mark again about this im sure in the near future !!! I hate wasting my time ...