Re: [Asterisk-Users] Hotel wake-up

2004-02-28 Thread Rob Fugina
On Sat, Feb 28, 2004 at 08:39:26PM -0500, Bill Michaelson wrote:
> Anybody know how to implement a hotel wake-up call feature with *?

I just wrote an AGI for it.  I literally just got it working the day
before yesterday, so it's not really 'pretty' yet.  I also don't have
all of the voice prompts I need, so it's a little rough there, too.
I don't have time to go into more detail at the moment, but send me a
message directly if you're interested...

Rob 

-- 
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.

Psychoceramics: The study of crackpots.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-28 Thread Michael Welter
Bill, tell us about your system!

How many rooms, what kind of extension set in the rooms, number of 
"outside" lines, front desk capabilities, how you bill back tel charges 
to the room, etc.

Have you worked-out the ratio of guests to outside lines?  IVR? Do you 
use the directory function for guests?

Wow, what a market this could be!

Bill Michaelson wrote:
Anybody know how to implement a hotel wake-up call feature with *?

--
Michael Welter
Introspect Consulting, Inc.
Denver, Colorado
+1 303 674 2575
[EMAIL PROTECTED]
www.introspect.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-28 Thread Eric Wieling
On Sat, 2004-02-28 at 19:39, Bill Michaelson wrote:
> Anybody know how to implement a hotel wake-up call feature with *?

You could modify my callback script.  It would require some pretty
significant changes, but it's a good place to start.  You can find it,
and other scripts, (some good, some bad) at
http://www.fnords.org/~eric/asterisk/

-- 
Eric Wieling <[EMAIL PROTECTED]>
BTEL Consulting

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-28 Thread Nicholas Bachmann
Bill Michaelson wrote:

Anybody know how to implement a hotel wake-up call feature with *?
It seems like it could be accomplished with an AGI and a script that 
wrote call files.  Have the AGI prompt for the wakeup time (or have a 
web interface for a front-desk person do it) and write a file to a 
directory indicating when the wakeup call should occur.  Then, have a 
Perl script that goes through those files and generates a call file in 
/var/spool/asterisk/outgoing at the right time.  Call files make retries 
simple as well, allowing you to space them and choose how many you 
want.  If you wanted to get fancy, you could use a database (perhaps 
with triggers?), voice recognition, or mp3s for the user to wake up to.

If this sounds too complicated, email me off list; I could write 
this very inexpensively for you.

Nick

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-28 Thread Robert Lawrence




I would be interested in the AGI Script.  As for the voice prompts, I
am having Allison record some stuff for me on Monday, including prompts
for such a wake up system, that I plan to donate back to the Asterisk
community.  

This is what I have for Allison:


  

Wake up call! This is your requested wake up call!

  
   

  
  To request a wake-up call, press 1.
  


  
  To confirm a wake-up call, press 2.
  


  
  To cancel a pending wake-up call, press 3.
  

  




Enter the two digit hour of the wake up call.

  
   

  
  Enter the two digit minute of the wake up call.
  


  
  Press 1 for A.M. or press 2 for P.M.
  


  
  You have requested a wake-up call for
  


  
  You do not have a scheduled wake-up call.
  


  
  Your wake up call has been canceled.
  


  
  Hours must be between zero one and one two.
  


  
  Minutes must be between zero zero and five nine.
  

  



Will these prompts be compatible with your script?


Robert

Rob Fugina wrote:

  On Sat, Feb 28, 2004 at 08:39:26PM -0500, Bill Michaelson wrote:
  
  
Anybody know how to implement a hotel wake-up call feature with *?

  
  
I just wrote an AGI for it.  I literally just got it working the day
before yesterday, so it's not really 'pretty' yet.  I also don't have
all of the voice prompts I need, so it's a little rough there, too.
I don't have time to go into more detail at the moment, but send me a
message directly if you're interested...

Rob 

  






Re: [Asterisk-Users] Hotel wake-up

2004-02-28 Thread William Suffill
All the digits should already be recorded so you could easily skip that
part and play back any digit from the AGI 1-9 that it was assigned.
On Sun, 2004-02-29 at 00:03, Robert Lawrence wrote:
> I would be interested in the AGI Script.  As for the voice prompts, I
> am having Allison record some stuff for me on Monday, including
> prompts for such a wake up system, that I plan to donate back to the
> Asterisk community.  
> 
> This is what I have for Allison:
> 
> 
> Wake up call! This is your requested wake up call!
> 
> To request a wake-up call, press 1.
> 
> To confirm a wake-up call, press 2.
> 
> To cancel a pending wake-up call, press 3.
> 
> 
> Enter the two digit hour of the wake up call.
> 
> Enter the two digit minute of the wake up call.
> 
> Press 1 for A.M. or press 2 for P.M.
> 
> You have requested a wake-up call for
> 
> You do not have a scheduled wake-up call.
> 
> Your wake up call has been canceled.
> 
> Hours must be between zero one and one two.
> 
> Minutes must be between zero zero and five nine.
> 
> 
> Will these prompts be compatible with your script?
> 
> 
> Robert
> 
> Rob Fugina wrote: 
> > On Sat, Feb 28, 2004 at 08:39:26PM -0500, Bill Michaelson wrote:
> >   
> > > Anybody know how to implement a hotel wake-up call feature with *?
> > > 
> > I just wrote an AGI for it.  I literally just got it working the day
> > before yesterday, so it's not really 'pretty' yet.  I also don't have
> > all of the voice prompts I need, so it's a little rough there, too.
> > I don't have time to go into more detail at the moment, but send me a
> > message directly if you're interested...
> > 
> > Rob 
> > 
> >   
> 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Bob Knight
Nicholas Bachmann wrote:

Bill Michaelson wrote:

Anybody know how to implement a hotel wake-up call feature with *?


It seems like it could be accomplished with an AGI and a script that 
wrote call files.  Have the AGI prompt for the wakeup time (or have a 
web interface for a front-desk person do it) and write a file to a 
directory indicating when the wakeup call should occur.  Then, have a 
Perl script that goes through those files and generates a call file in 
/var/spool/asterisk/outgoing at the right time.  Call files make 
retries simple as well, allowing you to space them and choose how many 
you want.  If you wanted to get fancy, you could use a database 
(perhaps with triggers?), voice recognition, or mp3s for the user to 
wake up to. 
Good old at job may be able to help with this (man at).

--
Bob Knight
[-w] the work option
[EMAIL PROTECTED]
925-449-9163
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Nicholas Bachmann
Bob Knight wrote:

Nicholas Bachmann wrote:

Bill Michaelson wrote:

Anybody know how to implement a hotel wake-up call feature with *?


It seems like it could be accomplished with an AGI and a script that 
wrote call files.  Have the AGI prompt for the wakeup time (or have a 
web interface for a front-desk person do it) and write a file to a 
directory indicating when the wakeup call should occur.  Then, have a 
Perl script that goes through those files and generates a call file 
in /var/spool/asterisk/outgoing at the right time.  Call files make 
retries simple as well, allowing you to space them and choose how 
many you want.  If you wanted to get fancy, you could use a database 
(perhaps with triggers?), voice recognition, or mp3s for the user to 
wake up to. 


Good old at job may be able to help with this (man at).
I thought about cron, but not about at, since I usually turn atd off on 
servers, but you're right, it would great here:

[EMAIL PROTECTED] root]# echo wakeup 1234 | at 6:30
   or in Perl
open(AT, "|at 6:30") or die "$!";
print AT "wakeup 1234";
close( AT);
Nick

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Rob Fugina
On Sat, Feb 28, 2004 at 11:03:41PM -0600, Robert Lawrence wrote:
> I would be interested in the AGI Script.  As for the voice prompts, I am 
> having Allison record some stuff for me on Monday, including prompts for 
> such a wake up system, that I plan to donate back to the Asterisk 
> community. 

Sound great!
 
> Will these prompts be compatible with your script?

Yes, absolutely!

In brief, the AGI script handle the prompting, and creates the call
file in a 'pending wakeup calls' directory.  The name of the call file
is formateed as HHMM.EXTEN.call.  The call scheduling is handled by
running the following via cron every minute:

/bin/mv $PENDING/$(/bin/date +%H%M).*.call $OUTGOING/ 2>/dev/null

I haven't figured out yet how to make * wait until the call in answered
before playing a recording (without the recipient pressing #).

Also, I was thinking of adding a snooze feature.  This would require
the outgoing wakeup call to run another AGI that says something like
"to acknowlege the wakeup call, press 1; to snooze 5 minutes, press 2;
to snooze 15 minutes, press 3".

I'll cleanup the AGI and post in the next 24 hours...

Rob


-- Rob Fugina, Systems Guy [EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.

paranoia: believing this tagline is about you.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Matthew B Marlowe
 
I haven't figured out yet how to make * wait until the call in answered
before playing a recording (without the recipient pressing #).

Show application dial.

Use option A

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob Fugina
Sent: Sunday, February 29, 2004 6:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Hotel wake-up

On Sat, Feb 28, 2004 at 11:03:41PM -0600, Robert Lawrence wrote:
> I would be interested in the AGI Script.  As for the voice prompts, I 
> am having Allison record some stuff for me on Monday, including 
> prompts for such a wake up system, that I plan to donate back to the 
> Asterisk community.

Sound great!
 
> Will these prompts be compatible with your script?

Yes, absolutely!

In brief, the AGI script handle the prompting, and creates the call file
in a 'pending wakeup calls' directory.  The name of the call file is
formateed as HHMM.EXTEN.call.  The call scheduling is handled by running
the following via cron every minute:

/bin/mv $PENDING/$(/bin/date +%H%M).*.call $OUTGOING/ 2>/dev/null

I haven't figured out yet how to make * wait until the call in answered
before playing a recording (without the recipient pressing #).

Also, I was thinking of adding a snooze feature.  This would require the
outgoing wakeup call to run another AGI that says something like "to
acknowlege the wakeup call, press 1; to snooze 5 minutes, press 2; to
snooze 15 minutes, press 3".

I'll cleanup the AGI and post in the next 24 hours...

Rob


-- Rob Fugina, Systems Guy [EMAIL PROTECTED] --
http://www.geekthing.com My firewall filters MS Office attachments.

paranoia: believing this tagline is about you.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Rob Fugina
On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:
>  
> I haven't figured out yet how to make * wait until the call in answered
> before playing a recording (without the recipient pressing #).
> 
> Show application dial.
> 
> Use option A

Unfortunately, there doesn't seem to be anywhere to put options such as
that in a call file.  I've tried several things, but haven't found the
majick yet...

Rob


-- 
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.

!edis gnorw eht morf siht ta gnikool era uoY
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Matthew B Marlowe
That's right, my mistake.  Forgot you were using a call file.  Sorry :)

Definitely looking forward to previewing your script though!

Good luck. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob Fugina
Sent: Sunday, February 29, 2004 6:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Hotel wake-up

On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:
>  
> I haven't figured out yet how to make * wait until the call in 
> answered before playing a recording (without the recipient pressing
#).
> 
> Show application dial.
> 
> Use option A

Unfortunately, there doesn't seem to be anywhere to put options such as
that in a call file.  I've tried several things, but haven't found the
majick yet...

Rob


--
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com My firewall filters MS
Office attachments.

!edis gnorw eht morf siht ta gnikool era uoY
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Nicholas Bachmann
Rob Fugina wrote:

On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:
 

I haven't figured out yet how to make * wait until the call in answered
before playing a recording (without the recipient pressing #).
Show application dial.

Use option A
   

Unfortunately, there doesn't seem to be anywhere to put options such as
that in a call file.  I've tried several things, but haven't found the
majick yet...
 

How about an EAGI that detects hellos, or background noise?

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Matthew B Marlowe
I never tried out call files so I just tried one out and when I tried it
as soon as I picked up on my cell phone the audible file started to play
and didn't require a # to start playing.

I wonder why yours operates differently 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew B
Marlowe
Sent: Sunday, February 29, 2004 6:58 PM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] Hotel wake-up

That's right, my mistake.  Forgot you were using a call file.  Sorry :)

Definitely looking forward to previewing your script though!

Good luck. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob Fugina
Sent: Sunday, February 29, 2004 6:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Hotel wake-up

On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:
>  
> I haven't figured out yet how to make * wait until the call in 
> answered before playing a recording (without the recipient pressing
#).
> 
> Show application dial.
> 
> Use option A

Unfortunately, there doesn't seem to be anywhere to put options such as
that in a call file.  I've tried several things, but haven't found the
majick yet...

Rob


--
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com My firewall filters MS
Office attachments.

!edis gnorw eht morf siht ta gnikool era uoY
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Rob Fugina
On Sat, Feb 28, 2004 at 11:03:41PM -0600, Robert Lawrence wrote:
> I would be interested in the AGI Script.

Here it is, along with the shell script I run from cron every minute.
It's sloppy -- I didn't expect to be sharing it so quickly.

Rob

-- 
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.

IBM = Institute of Black Magic
#!/bin/bash

PENDING=/tmp/wakeups
OUTGOING=/var/spool/asterisk/outgoing
SLEEP=5

TIME=$(/bin/date +%H%M)

for fn in $PENDING/$TIME.*.call
do
if [ -r $fn ]
then
/bin/mv -vf $fn $OUTGOING/
sleep $SLEEP
fi
done

#!/usr/bin/perl

use Asterisk::AGI;
use Date::Manip;

use strict;

#

# Settings:

my $pending_dir = '/tmp/wakeups';

my $local_context = 'inside';

# values for the call file:
my $maxretries = 3;
my $retrytime = 60;
my $waittime =  30;

my $application = 'MusicOnHold';
my $data = 'default';

my $callerid = 'Wakeup Call Service <297>';

#

my $agi = new Asterisk::AGI;
my %stuff = $agi->ReadParse;# MUST DO THIS! -- (add this to constructor!)

# this says "1 to create, 2 to confirm, 3 to cancel"
my $func = $agi->get_data('wakeup-menu', 2, 1);

exit if $func == -1;

my ($caller) = $stuff{callerid} =~ /<(\d+)>/;

if ($func == 1)
{
my $time = $agi->get_data('time', 15000, 4);
exit if $func == -1;

if ($time =~ /^(\d{2})(\d{2})$/)
{
my $hour = $1 * 1;
my $min = $2;

if ($hour > 0 && $hour <= 12 && $min < 60)
{
my $time;

$agi->stream_file('digits/1');
$agi->stream_file('digits/a-m');
$agi->stream_file('digits/2');
my $ampm = $agi->get_data('digits/p-m', 15000, 1);
exit if $ampm == -1;

if ($ampm == 1)
{
$time = ParseDate(sprintf("%s:%02s AM", $hour, $min));
}
elsif ($ampm == 2)
{
$time = ParseDate(sprintf("%s:%02s PM", $hour, $min));
}
else
{
$agi->stream_file('vm-sorry');
}

if ($time)
{
my $h = UnixDate($time, "%I") * 1;
my $m = UnixDate($time, "%M");
my $a = UnixDate($time, "%p");

foreach my $fn (<$pending_dir/*.$caller.call>)
{
unlink $fn;
}

my $filename = sprintf("%s/%04s.%s.call", 
$pending_dir, UnixDate($time, "%H%M"), $caller);

open(FILE, ">$filename");

printf FILE q{#
Channel: Local/[EMAIL PROTECTED]

MaxRetries: %s
RetryTime: %s
WaitTime: %s

Application: %s
Data: %s

Callerid: %s
},
$caller, $local_context,
$maxretries,
$retrytime,
$waittime,
$application,
$data,
$callerid,
;

close(FILE);

# say "Your wakeup call"
$agi->stream_file('has-been-set-to');
$agi->exec('SayUnixTime', sprintf("%s||IMp", 
UnixDate($time, "%s")));

$agi->stream_file('for');
$agi->stream_file('extension');
$agi->say_digits($caller);

$agi->stream_file('auth-thankyou');
}
}
else
{
$agi->stream_file('vm-sorry');
}

}
else
{
$agi->stream_file('vm-sorry');
}
}
elsif ($func == 2)
{
# say "Your wakeup call"

my ($fn) = <$pending_dir/*.$caller.call>;

if ($fn)
{
my ($time) = $fn =~ /\/(\d{4})\.\d+\.call/;
$time =~ s/(\d\d)(\d\d)/$1:$2/;

$agi->stream_file('is-set-to');

$agi->exec('SayUnixTime', sprintf("%s||IMp", 
UnixDate(ParseDate($time), "%s")));
}
else
{
$agi->stream_file('is-not-set');
}

$agi->stream_file('auth-thankyou');
}
elsif ($func == 3)
{

foreach my $fn (<$pending_dir/*.$caller.call>)
{
unlink $fn;
}

# say "Your wakeup call"
$agi->stream_file('has-been-cleared');
$agi->stream_file('auth-thankyou');
}
elsif ($func eq '*')
{
$agi->stream_file('vm-

Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Rob Fugina
On Sun, Feb 29, 2004 at 07:10:07PM -0500, Matthew B Marlowe wrote:
> I never tried out call files so I just tried one out and when I tried it
> as soon as I picked up on my cell phone the audible file started to play
> and didn't require a # to start playing.
> 
> I wonder why yours operates differently 

Just noticed...

The behavior I was noticing was because I had the outgoing call connecting
to (from?)  an extension defined in the dialplan.  When specifying an
'application' and 'data' in the ougoing call file, the application isn't
executed until the outgoing call is answered.

This will work great when I write another AGI for the outgoing wakeup
calls.  This will allow for snoozing as well as reading the time, weather,
and maybe messages waiting...

Rob

-- 
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.

2 x 4 x 666   The Lumber of the Beast.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Eric Wieling
It should not be too tough to make it wait if you are dialing a channel
that supports answer supervision (like an analog FXS port or a digital
FXO port).  Analog FXO ports don't support answer supervision, of
course.

On Sun, 2004-02-29 at 17:52, Rob Fugina wrote:
> On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:
> >  
> > I haven't figured out yet how to make * wait until the call in answered
> > before playing a recording (without the recipient pressing #).
> > 
> > Show application dial.
> > 
> > Use option A
> 
> Unfortunately, there doesn't seem to be anywhere to put options such as
> that in a call file.  I've tried several things, but haven't found the
> majick yet...
> 
> Rob
-- 
For Asterisk PBX related documentation go to
http://www.digium.com/index.php?menu=documentation and look at the
"Unofficial Links" section also see
http://www.voip-info.org/wiki-Asterisk also see my site at
http://www.fnords.org/~eric/asterisk/

BTEL Consulting

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread Rob Fugina
On Sun, Feb 29, 2004 at 06:58:01PM -0600, Eric Wieling wrote:
> It should not be too tough to make it wait if you are dialing a channel
> that supports answer supervision (like an analog FXS port or a digital
> FXO port).  Analog FXO ports don't support answer supervision, of
> course.

In my situation, I'm using Zap FXS ports and SIP hardphones.

I've got it working, as I mentioned in a previous email to the list.
The premature answer problem must have had something to do with the
local extension I was using and how I was specifying it in the call file.

Rob

-- 
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.

Southern DOS: Y'all reckon? (Yep/Nope)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-02-29 Thread John Fraizer
This will definitely work for a wakeup call, processed from a call file:

;file sample.call
Channel: SIP/1234
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: wakeup
Extension: s
Priority: 1
In extensions.conf:

[wakeup]
exten => s,1,Wait(2)
exten => s,2,Playback(tt-monkeys)
exten => s,3,Hangup
It will wait for the user to answer the phone and then play back the 
monkey-fest.

John

Matthew B Marlowe wrote:
That's right, my mistake.  Forgot you were using a call file.  Sorry :)

Definitely looking forward to previewing your script though!

Good luck. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rob Fugina
Sent: Sunday, February 29, 2004 6:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Hotel wake-up
On Sun, Feb 29, 2004 at 06:35:54PM -0500, Matthew B Marlowe wrote:

I haven't figured out yet how to make * wait until the call in 
answered before playing a recording (without the recipient pressing
#).

Show application dial.

Use option A


Unfortunately, there doesn't seem to be anywhere to put options such as
that in a call file.  I've tried several things, but haven't found the
majick yet...
Rob

--
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com My firewall filters MS
Office attachments.
!edis gnorw eht morf siht ta gnikool era uoY
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-03-08 Thread David Hickman
Small world.  I have been running * for about 6 months.  I really 
like it.

I use it to connect my mother in law in arkansas and to integrate into 
fwd and iaxtel.

I also have a hidden menu that give me the status of key network 
servers and by using x10 a way to kill the power supply of my echolink 
transceiver.   So I can have remote control op of it.

73 de KB0FHF

when you get a chance call one of the numbers below and check out my 
ivr menus.  I found a site on the net with some really cool computer 
voices.

-- David Hickman

Pots314-865-4752x1 business  x31 home
FWD 23633   """"
IAXTEL  700-865-4752""""
AOLIM   fsckrmrf
ICQ 7059948
Yahoo   dhickman
THIS IS INSANE! I THOUGHT TECHNOLOGY WAS SUPPOSED TO SIMPLIFY MY 
LIFE!!
On Feb 28, 2004, at 7:49 PM, Rob Fugina wrote:

On Sat, Feb 28, 2004 at 08:39:26PM -0500, Bill Michaelson wrote:
Anybody know how to implement a hotel wake-up call feature with *?
I just wrote an AGI for it.  I literally just got it working the day
before yesterday, so it's not really 'pretty' yet.  I also don't have
all of the voice prompts I need, so it's a little rough there, too.
I don't have time to go into more detail at the moment, but send me a
message directly if you're interested...
Rob

--
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.
Psychoceramics: The study of crackpots.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-03-08 Thread David Hickman
man I am tired.  I did not mean for my last email to go out to the 
whole list :(

sorry about that.  I just seen alot of people call me via iaxtel.

dhh

-- David Hickman

Pots314-865-4752x1 business  x31 home
FWD 23633   """"
IAXTEL  700-865-4752""""
AOLIM   fsckrmrf
ICQ 7059948
Yahoo   dhickman
THIS IS INSANE! I THOUGHT TECHNOLOGY WAS SUPPOSED TO SIMPLIFY MY 
LIFE!!
On Feb 29, 2004, at 7:03 PM, Rob Fugina wrote:

On Sun, Feb 29, 2004 at 06:58:01PM -0600, Eric Wieling wrote:
It should not be too tough to make it wait if you are dialing a 
channel
that supports answer supervision (like an analog FXS port or a digital
FXO port).  Analog FXO ports don't support answer supervision, of
course.
In my situation, I'm using Zap FXS ports and SIP hardphones.

I've got it working, as I mentioned in a previous email to the list.
The premature answer problem must have had something to do with the
local extension I was using and how I was specifying it in the call 
file.

Rob

--
Rob Fugina, Systems Guy
[EMAIL PROTECTED] -- http://www.geekthing.com
My firewall filters MS Office attachments.
Southern DOS: Y'all reckon? (Yep/Nope)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Hotel wake-up

2004-03-08 Thread Brian Capouch
David Hickman wrote:
man I am tired.  I did not mean for my last email to go out to the whole 
list :(

Don't worry about it man; the list is set up to cause that sort of thing 
to happen, and if you read it for a while, you'll see that it's an 
almost-daily occurrence.

Sort of like a free soap opera that comes with every subscription. 
Every list I'm on that uses this popular but idiotic tactic suffers from 
this same effect.

B.
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Hotel wake-up

2004-03-08 Thread Paul Mahler
So where on the net???  ;-)

Paul

 
Paul Mahler 
mail:[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Hickman
Sent: Monday, March 08, 2004 11:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] Hotel wake-up


Small world.  I have been running * for about 6 months.  I really 
like it.

I use it to connect my mother in law in arkansas and to integrate into 
fwd and iaxtel.

I also have a hidden menu that give me the status of key network 
servers and by using x10 a way to kill the power supply of my echolink 
transceiver.   So I can have remote control op of it.

73 de KB0FHF

when you get a chance call one of the numbers below and check out my 
ivr menus.  I found a site on the net with some really cool computer 
voices.

-- David Hickman

Pots314-865-4752x1 business  x31 home
FWD 23633   ""  ""
IAXTEL  700-865-4752""  ""
AOLIM   fsckrmrf
ICQ 7059948
Yahoo   dhickman

THIS IS INSANE! I THOUGHT TECHNOLOGY WAS SUPPOSED TO SIMPLIFY MY 
LIFE!!
On Feb 28, 2004, at 7:49 PM, Rob Fugina wrote:

> On Sat, Feb 28, 2004 at 08:39:26PM -0500, Bill Michaelson wrote:
>> Anybody know how to implement a hotel wake-up call feature with *?
>
> I just wrote an AGI for it.  I literally just got it working the day 
> before yesterday, so it's not really 'pretty' yet.  I also don't have 
> all of the voice prompts I need, so it's a little rough there, too. I 
> don't have time to go into more detail at the moment, but send me a 
> message directly if you're interested...
>
> Rob
>
> --
> Rob Fugina, Systems Guy
> [EMAIL PROTECTED] -- http://www.geekthing.com
> My firewall filters MS Office attachments.
>
> Psychoceramics: The study of crackpots. 
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED] 
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users