Feature #336

Allow Wake up calls to forward to Weather by Zip upon wakeup cancelation

Added by tshif over 1 year ago. Updated over 1 year ago.

Status:Reviewed Start:08/17/2010
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version: Hotel Style Wakeup Calls Future Releases

Description

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.


Related issues

related to Weather by ZIP Code - Feature #337: Allow Weather by Zip to be called from Hotel Wakeup Module Reviewed 08/17/2010

History

Updated by tshif over 1 year ago

  • Status changed from New to Reviewed

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 over 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?

Also available in: Atom PDF