🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Dallas (Linux Admin) Mon, 23 Aug 2004 18:43
Asterisk AGI script: calling card script.
#182
Author: Dallas (Linux Admin)
Date: Mon, 23 Aug 2004 18:43
34 lines
2973 bytes
Hello,

I know perl and work with AGI in asterisk. I built a Calling Card System
that has all the features but one.  When the AGI uses the Dial app, we want
to stream a file or playback a sound file to the customers while they are
talking (to tell them they are running out of time).  When the customer has
120 seconds remaining we want to stream a sound file in the conversation(on
the same channel) saying that they have 2 minutes remaining.  We could
implement a *while* statement to check the seconds as they are talking.  I
can do that part but I dont know how to send sound while they are talking.
We will pay you for your help.  Could you please quote me on the price of
adding that feature?


Section of script where it needs to be edited:

# Calling the max timeout
$AGI->exec('AbsoluteTimeout',$timeout);
# Call the number for the customer
$AGI->exec('Dial',"SIP/alvoice.deskmedia.com/$target");
# Start the call timeer
$starttime = time();
# To make sure that we dont execut another command until they hunge up
$AGI->exec('Congestion');
# End the call timer
$endtime = time();
# Find out the time used
$totaltimeused = $endtime - $starttime;
chomp($totaltimeused);
-- 

Dallas Weitzel
Work: 1(507)379-0159
1143 South Broadway
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads