/** * Emit a DTMF to the other end * @param $dtmf DTMF tones to play * @param $method Method to emit the DTMF, null to use technology default */ function PlayDTMF($dtmf, $method = null) { $m = new Yate("chan.dtmf"); $m->id = ""; $m->SetParam("id", IVR::ChannelID()); $m->SetParam("targetid", IVR::TargetID()); $m->SetParam("text", $dtmf); if ($method !== null) { $m->SetParam("method", $method); } $m->Dispatch(); }