31
Yate users hangout place / Re: Make Call, Play 2 Audio files and Disconnect ( Hello World script )
« on: January 04, 2015, 01:10:18 PM »Thanks Marian and happy new year !
That makes sense now.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
$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();
Message Header
From: "SB Call - FXO to IVR" <sip:FXOToIVR@192.168.10.143>;tag=673e483b3e861190a7;ref=907817123456