Exemple #1
0
 public function voicemailToVoicemail($voicemail)
 {
     if (!($vm = $voicemail->getAstVoicemail())) {
         $vm = new VoiceMail();
     }
     $vm->setMailbox($voicemail->getHash());
     $vm->setContext('mailbox');
     $vm->setPassword(rand(1000, 9999));
     $vm->setFullname($voicemail->getSubscription()->getCompany()->getName());
     $vm->setEmail('*****@*****.**');
     return $vm;
 }