[ previous ] [ next ] [ threads ]
 To :  Brian Gough <bjg@g...>
 From :  Monica Tepelus <monica@v...>
 Subject :  Re: [yate] recipes for conference setup?
 Date :  Thu, 29 Apr 2010 15:25:32 +0300

The best way to have control over the conference is to have an external 
script connect to it and that script to receive the notifications that 
happen in that conference.

When first call is sent to the conference you can add param "record" 
with value name of the script:
$location->params["record"] = "external/nodata/conf_recorder.php";      
// external/nodata marks that it's an external script

I also added:
$location->params["notify"] = "ivr_conf/cs-".$conference_id;

to tell i want the notifications for events in that conference to be 
sent to the id: "ivr_conf/cs-".$conference_id;

Then in script conf_recorder.php  you have to set the above id. This is 
different depending if you want to use libyateivr.php or directly 
libyate.php for the ivr script.

To record you need to send a chan.attach from conf_recorder.php
$path_to_file_to_record_into = "/var/spool/test.slin";
$m = new Yate("chan.attach");
$m->params["consumer"] = "wave/record/$path_to_file_to_record_into";

To play something to the conference:
$m = new Yate("chan.masquerade");
$m->params["message"] = "chan.attach";
$m->params["override"] = "wave/play/$vm_base/recording.u";

Monica Tepelus

Brian Gough wrote:
> Hi
> Does anyone have any simple cookbook examples of how to set up
> additional features on conferences?
> We are testing Yate 2.2 for conference calls within the GNU Project.
> The basic conference room functionality is up and running, and we
> would like to do some simple extra things like:
>  - record conference calls into a directory as .wav files, with a
>    filename based on the date/time of each call.
>    (From the docs, I see I can add a "record" parameter to the
>    conference in regexroute.conf but I'm not sure what to do with it
>    ^701$ = conf/testroom;record=...).
>  - play a sound when someone enters/leaves the conference room (if
>    it's possible to record their name and play that, it would be
>    amazing)
> I'm very new to Yate so I was not able to figure this out directly
> from the docs.  Thanks for any help!