- Timestamp:
- 06/06/11 11:16:19 (2 years ago)
- Files:
-
- modules/branches/2.9/directory (modified) (1 prop)
- modules/branches/2.9/directory/agi-bin/directory.agi (modified) (3 diffs)
- modules/branches/2.9/directory/functions.inc.php (modified) (4 diffs)
- modules/branches/2.9/directory/module.xml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/directory
- Property lastpublish changed from 12216 to 12031
modules/branches/2.9/directory/agi-bin/directory.agi
r12215 r12218 99 99 break; 100 100 } 101 } 101 102 } 103 102 104 //wait for a responce before restarting loop 103 if (!isset($ret) || !$ret ) {105 if (!isset($ret) || !$ret || $ret['result'] == '0') { 104 106 $ret = $dir->agi->wait_for_digit(10000); 105 107 if (trim($ret['result'])) { … … 108 110 } 109 111 110 111 debug("got result: ".$ret['result']);112 112 if(trim($ret['result'])){ 113 113 call($matches[$ret['result']-1]); … … 136 136 if($dir->dir['callid_prefix'] != ''){ 137 137 $callid_name = $dir->agi->get_variable('CALLERID(name)'); 138 $dir->agi->set_variable('CALLERID(name)',$dir->dir['callid_prefix'].$callid_name );138 $dir->agi->set_variable('CALLERID(name)',$dir->dir['callid_prefix'].$callid_name['data']); 139 139 } 140 140 $dir->agi->set_variable('DIR_DIAL',$contact['dial']); modules/branches/2.9/directory/functions.inc.php
r12215 r12218 2 2 3 3 function directory_configpageload() { 4 global $currentcomponent, $display;4 global $currentcomponent, $display; 5 5 if ($display == 'directory' && (isset($_REQUEST['action']) && $_REQUEST['action']=='add'|| isset($_REQUEST['id']) && $_REQUEST['id']!='')) { 6 6 if (isset($_REQUEST['action']) && $_REQUEST['action'] == 'add') { … … 29 29 } else { 30 30 $dir = directory_get_dir_details($_REQUEST['id']); 31 32 31 $label = sprintf(_("Edit Directory: %s"), $dir['dirname'] ? $dir['dirname'] : 'ID '.$dir['id']); 33 32 $def_dir = directory_get_default_dir(); … … 51 50 //delete link, dont show if we dont have an id (i.e. directory wasnt created yet) 52 51 $gen_section = _('Directory General Options'); 53 $currentcomponent->addguielem($gen_section, new gui_textbox('dirname', $dir['dirname'], _('Directory Name'), _('Name of this directory.')));54 $currentcomponent->addguielem($gen_section, new gui_textbox('description', $dir['description'], _('Directory Description'), _('Description of this directory.')));55 $currentcomponent->addguielem($gen_section, new gui_textbox('callid_prefix', $dir['callid_prefix'], _('CallerID Name Prefix'), _('Prefix to be appended to current CallerID Name.')));56 $currentcomponent->addguielem($gen_section, new gui_textbox('alert_info', $dir['alert_info'], _('Alert Info'), _('ALERT_INFO to be sent when called from this Directory. Can be used for distinctive ring for SIP devices.')));52 $currentcomponent->addguielem($gen_section, new gui_textbox('dirname', stripslashes($dir['dirname']), _('Directory Name'), _('Name of this directory.'))); 53 $currentcomponent->addguielem($gen_section, new gui_textbox('description', stripslashes($dir['description']), _('Directory Description'), _('Description of this directory.'))); 54 $currentcomponent->addguielem($gen_section, new gui_textbox('callid_prefix', stripslashes($dir['callid_prefix']), _('CallerID Name Prefix'), _('Prefix to be appended to current CallerID Name.'))); 55 $currentcomponent->addguielem($gen_section, new gui_textbox('alert_info', stripslashes($dir['alert_info']), _('Alert Info'), _('ALERT_INFO to be sent when called from this Directory. Can be used for distinctive ring for SIP devices.'))); 57 56 58 57 $section = _('Directory Options (DTMF)'); … … 267 266 268 267 //TODO: could this cause a problem with the '|' separator if a name has a '|' in it? (probably not check for comment where parsed 269 // 270 foreach(core_users_list() as $user){ 268 foreach((array) core_users_list() as $user){ 271 269 $newuser .= '<option value="'.$user[0].'|'.$user[1].'">('.$user[0].') '.$user[1]."</option>\n"; 272 270 } modules/branches/2.9/directory/module.xml
r12217 r12218 3 3 <repo>standard</repo> 4 4 <name>Directory</name> 5 <version>2.9.0. 8</version>5 <version>2.9.0.9</version> 6 6 <publisher>Schmoozecom.com</publisher> 7 7 <license>GPLv2+</license> … … 16 16 </depends> 17 17 <changelog> 18 *2.9.0. 8* #5127, #5054, #5049, #5140, #514218 *2.9.0.9* #5127, #5054, #5049, #5140, #5142 19 19 *2.9.0.7* #5088 20 20 *2.9.0.6* #4973, #4974 … … 41 41 *2.8.0.0alpha0.2* Initial release 42 42 </changelog> 43 <location>release/2.9/directory-2.9.0. 8.tgz</location>44 <md5sum> 96a73f74b11133b37e5908aaf1f9b11f</md5sum>43 <location>release/2.9/directory-2.9.0.7.tgz</location> 44 <md5sum>ae8ccc441fd78cf63f9b992e02691155</md5sum> 45 45 </module>
