Changeset 13926
- Timestamp:
- 03/27/12 11:56:48 (1 year ago)
- Files:
-
- freepbx/branches/2.6 (modified) (2 props)
- freepbx/branches/2.6/amp_conf/htdocs/recordings/includes/callme.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.6
- Property svn:mergeinfo changed from
/freepbx/branches/2.10:13870,13876
/freepbx/branches/2.7:13873,13879,13883
/freepbx/branches/2.8:13872,13878,13882
/freepbx/branches/2.9:13871,13875-13877,13881 to
/freepbx/branches/2.10:13870,13876,13922
/freepbx/branches/2.7:13873,13879,13883,13925
/freepbx/branches/2.8:13872,13878,13882,13924
/freepbx/branches/2.9:13871,13875-13877,13881,13923 - Property svnmerge-integrated changed from /freepbx/branches/2.5:1-7770,8119,8161 /freepbx/branches/2.7:1-9517,10464,11466,11744,13873,13879,13883 to /freepbx/branches/2.7:1-9517,10464,11466,11744,13873,13879,13883,13925 /freepbx/branches/2.5:1-7770,8119,8161
- Property svn:mergeinfo changed from
freepbx/branches/2.6/amp_conf/htdocs/recordings/includes/callme.php
r7042 r13926 53 53 function callme_getnum($exten) 54 54 { 55 global $astman;56 $cmd = "database get AMPUSER $exten/callmenum";55 global $astman; 56 $cmd = "database get AMPUSER $exten/callmenum"; 57 57 $callme_num = ''; 58 $results = $astman->Command($cmd);58 $results = $astman->Command($cmd); 59 59 60 60 if (is_array($results)) … … 79 79 global $astman; 80 80 81 $callme_num = preg_replace("/[^0-9*#+]/", "", $callme_num); 81 82 $cmd = "database put AMPUSER $exten/callmenum $callme_num"; 82 83 $astman->Command($cmd); … … 89 90 { 90 91 global $astman; 92 93 if (!preg_match("/^[0-9*#+]+$/",$to)) { 94 return false; 95 } 96 if (!preg_match("/^[0-9]+$/",$from)) { 97 return false; 98 } 99 // TODO: should I check that new_path is a valid sound file to play and bomb out if not as possible security protection? 100 91 101 $channel = "Local/$to@from-internal/n"; 92 102 $context = "vm-callme";
