Show
Ignore:
Timestamp:
06/09/07 00:19:11 (6 years ago)
Author:
p_lindheimer
Message:

remove the depends on 2.2.2 requirement and add MailBoxExists? class in the module so that it works with versions before 2.2.2 - core version check appears to be broken for this

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/voicemail/functions.inc.php

    r4023 r4031  
    4040  $ext->add($id, $c, '', new ext_macro('user-callerid')); // $cmd,n,Macro(user-callerid) 
    4141  $ext->add($id, $c, '', new ext_macro('get-vmcontext','${CALLERID(num)}'));  
     42  /* TODO: once depends functionality gets fixed in core this should be put back 
    4243  $ext->add($id, $c, 'check', new ext_vmexists('${CALLERID(num)}@${VMCONTEXT}')); // n,VoiceMailMain(${VMCONTEXT}) 
     44  */ 
     45  $ext->add($id, $c, 'check', new extension('MailBoxExists(${CALLERID(num)}@${VMCONTEXT})')); // n,VoiceMailMain(${VMCONTEXT}) 
    4346  $ext->add($id, $c, '', new ext_vmmain('')); // n,VoiceMailMain(${VMCONTEXT}) 
    4447  $ext->add($id, $c, '', new ext_macro('hangupcall')); // $cmd,n,Macro(user-callerid) 
  • modules/branches/2.2/voicemail/module.xml

    r4027 r4031  
    22  <rawname>voicemail</rawname> 
    33  <name>Voicemail</name> 
    4   <version>1.6.3</version> 
    5   <depends> 
    6     <version>2.2.2</version> 
    7   </depends>  
     4  <version>1.6.4</version> 
    85  <changelog> 
     6    *1.6.4* add class to define MailBoxExists and removed the dependency on 2.2.2 - since 2.2.2 dependency checking is broken 
    97    *1.6.3* #1976 - check if mailbox exists and enter with no arguments if not 
    108    *1.6.2* Remove hardcoded paths to voicemail.conf