Exemplo n.º 1
0
 /**
  * Acknowledge the processing of a message passed from Yate
  * @param $handled (optional) True if Yate should stop processing, default false
  */
 function Acknowledge()
 {
     if ($this->type != "incoming") {
         Yate::Output("PHP bug: attempt to acknowledge message type: " . $this->type);
         return;
     }
     $i = Yate::Escape($this->id);
     $k = Yate::Bool2str($this->handled);
     $n = Yate::Escape($this->name);
     $r = Yate::Escape($this->retval);
     $p = "";
     $pa = array(&$p);
     array_walk($this->params, "_yate_message_walk", $pa);
     _yate_print("%%<message:{$i}:{$k}:{$n}:{$r}{$p}\n");
     $this->type = "acknowledged";
 }