Emit a call.progress from leavemail so the caller hears the "voicemail not set up" prompt.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4780 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-12-20 10:49:31 +00:00
parent 70fb6b9d27
commit f3003924d2
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,7 @@ function checkUser($called,$caller)
function setState($newstate)
{
global $ourcallid;
global $partycallid;
global $state;
global $vm_base;
global $mailbox;
@ -65,6 +66,11 @@ function setState($newstate)
$m->params["source"] = "wave/play/$vm_base/novmail.slin";
$m->params["notify"] = $ourcallid;
$m->Dispatch();
$m = new Yate("call.progress");
$m->id = "";
$m->params["id"] = $ourcallid;
$m->params["peerid"] = $partycallid;
$m->Dispatch();
break;
case "greeting":
$m = new Yate("chan.attach");