Hi
Please could I ask for for help ?
As a simple training exercise for myself, I'm trying to achieve the following:
1. Make a Call
2. Wait for answer
3. Play 2 or more prompts, one after the other.
4. Disconnect
This is in a global php script on a Windows machine.
I've been loosely following an example suggested by Monica Tepelus here:
http://yate.null.ro/archive/?action=show_msg&actionargs%5B%5D=81&actionargs%5B%5D=79I understand the theory ok, but I'm having some difficulties implementing it.
The first step suggests to call execute to a dumb channel, then chan.masquerade a real destination on behalf of the dumb channel.
So, this is what I started with:
$m = new Yate("call.execute");
$m->SetParam("callto","dumb/");
$m->Dispatch();
$m = new Yate("chan.masquerade");
$m->SetParam("message","call.execute");
$m->SetParam("id", $id_from_above_call_execute );
$m->SetParam( "target", 'test2' );
$m->SetParam( "caller", 'test5');
$m->Dispatch();
----- listen for call.answer -----
$m = new Yate("chan.masquerade");
$m->SetParam("message","chan.attach");
$m->SetParam("id", $id_from_above_call_execute );
$m->SetParam("source", 'wave/play/C:\Program Files\Yate\share\sounds/welcome.au' );
$m->Dispatch();
( test2 and test5 are two registered users )
but on running this, unfortunately I can't get past:
<dumb:WARN> Outgoing call with no target!
which appears to be generated from the call.execute to the dumb channel.
From getting 'call.answered' I was going to use the following
Multiple prompts using the notify and listening for 'eof'
http://yate.null.ro/archive/?action=show_msg&actionargs%5B%5D=54&actionargs%5B%5D=87Some help on getting me going on this would really be appreciated,
Thank you!
Jamie