lgaetz/Hotel-Style-Wakeup-Calls — Issue #5: Allow Wake up calls to forward to Weather by Zip upon wakeup cancelation
Author: lgaetz
Created: 2011-10-19 13:09:58+00:00
State: open

http://projects.colsolgrp.net/issues/336

Added by tshif about 1 year ago.
Allow Wake up calls to forward to Weather by Zip upon wakeup cancelation.

Add stock phrases one-moment-please.gsm and for-the-weather.gsm, and then transfer the caller to the weather by zip php program.

I further propose that weather by Zipp be changed to include a "default" Zip code to be used if none is entered, and in conjunction will calling from this module.

Updated by tshif about 1 year ago
The changes to the existing php should be trivial IF we can call another agi (php) function from the current one. If so, it should be pretty straightforward - hopefully.

Updated by tshif about 1 year ago
Here is the current agi thats connected to our needs:

execute_agi( "EXEC background \"wakeup-call-cancelled\" ");
execute_agi( "EXEC wait \"1\" ");
execute_agi( "EXEC background \"goodbye\" ");
execute_agi( "HANGUP" );
exit;

It should end up looking something like this:

execute_agi( "EXEC background \"wakeup-call-cancelled\" ");
execute_agi( "EXEC wait \"1\" ");
execute_agi( "EXEC background \"one-moment-please\" ");
execute_agi( "EXEC background \"for-the-weather\" ");
====> *execute_agi( "EXEC AGI \"nvweather-zip.php\" ");*
// execute_agi( "HANGUP" );
exit;

The bold face line is the one where syntax needs to be researched etc - but what needs to happen is we launch the weatherzip application at that time - and I imagine turn over the task of hanging up the caller to that AGI script.

Seems like not to much change on either the Weatherzip or Hotel Wakeup side of this to make it impossible.

Anyone else have thoughts?