[ previous ] [ next ] [ threads ]
 To :  Monica Tepelus <monica@v...>
 From :  Brian Gough <bjg@g...>
 Subject :  Re: [yate] recipes for conference setup?
 Date :  Thu, 29 Apr 2010 12:50:15 -0400
At Thu, 29 Apr 2010 15:25:32 +0300,
Monica Tepelus wrote:
> 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";
> $m->Dispatch();
> 
> 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";
> $m->Dispatch();

Thank you. I will look the example scripts and see if I can figure it
out.

-- 
Brian Gough