/[drupal]/contributions/modules/asterisk/drupal_integration/scripts/save_recording_message.agi
ViewVC logotype

Diff of /contributions/modules/asterisk/drupal_integration/scripts/save_recording_message.agi

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5, Sat Aug 4 16:54:33 2007 UTC revision 1.6, Mon Jun 2 08:36:33 2008 UTC
# Line 1  Line 1 
1  #!/usr/bin/php -q  #!/usr/bin/php -q
2  <?php  <?php
3    
4  // $Id: save_recording_message.agi,v 1.4 2007/08/04 16:00:52 thehunmonkgroup Exp $  // $Id: save_recording_message.agi,v 1.5 2007/08/04 16:54:33 thehunmonkgroup Exp $
5    
6  /**  /**
7   * IMPORTANT NOTES:   * IMPORTANT NOTES:
# Line 80  if (file_exists($asterisk_filepath)) { Line 80  if (file_exists($asterisk_filepath)) {
80    
81      if (write_ini_file($message_file, $message)) {      if (write_ini_file($message_file, $message)) {
82        // Make sure the webserver user can read the message file.        // Make sure the webserver user can read the message file.
83        chmod($message_file, 0640);        chmod($message_file, 0777);
84    
85        if (xmlrpc($drupal_xmlrpc_url, 'asterisk.notify.NewMessages', array(basename($message_file)))) {        if (xmlrpc($drupal_xmlrpc_url, 'asterisk.notify.NewMessages', array(basename($message_file)))) {
86    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2