Bug #134

Wakeup Calls sent the very same second they are created regardless of specified time

Added by tshif over 2 years ago. Updated over 2 years ago.

Status:Closed Start:05/29/2009
Priority:High Due date:06/01/2009
Assigned to:Bitnetix % Done:

100%

Category:-
Target version:Hotel Style Wakeup Calls Maintenance Release v 1.2.1 Estimated time:1.00 hour

Description

Wakeup Calls sent the very same second they are created regardless of specified time.

PBXIAF forum user Bitnetix provides the solution:

In wake.inc, the
temp dir is $param_temp_dir="/tmp";
call dir is $param_call_dir="/var/spool/asterisk/outgoing";

This fails when, /tmp and /var are two separate filesystems. /tmp is on /, and /var is on its on mount point.

User has been using unix since the 80s and doesnt like having one filesystem. They use /, /usr, and /var, and that means /tmp and /var/anything are not sharing inodes.

*So the move becomes a copy, and now it's a new file with NOW as its timestamp, and Asterisk promptly processes it. *
Changing $param_temp_dir to /var/spool/asterisk/tmp fixes this problem and should probably be a permanent fix to wake.inc, since unless someone is really doing weird things, this is guaranteed to be on the same filesystem as /var/spool/asterisk/outgoing and will prevent this problem for occurring...
____________

History

Updated by Bitnetix over 2 years ago

  • Status changed from Reviewed to Assigned
  • Assigned to set to Bitnetix
  • Estimated time set to 1.00

Updated by Bitnetix over 2 years ago

  • Status changed from Assigned to Resolved

Simple fix has been tested on development and production Asterisk servers at Bitnetix. Need someone to peer review the update before it should be considered closed.

Updated by tshif over 2 years ago

  • Due date set to 06/01/2009
  • % Done changed from 0 to 90

QS: PASS. Wakeup calls are correctly sent. Dev tested on environment which highlighted the problem as well, and passed successfully.

Updated by tshif over 2 years ago

  • Status changed from Resolved to Closed
  • Target version changed from Hotel Style Wakeup Calls Future Releases to Hotel Style Wakeup Calls Maintenance Release v 1.2.1
  • % Done changed from 90 to 100

Moved to Maintenance Release 1.2.1 Timeline, and closed for release.

Also available in: Atom PDF