[Asterisk-Users] A General question
Scott Stingel
scott at evtmedia.com
Sun Feb 29 08:42:49 MST 2004
Hi AR-
(I've converted your message to plain text from HTML, preferred by some of
the members of this group)
In response to your general question, I think the answer is "yes". I think
of asterisk as primarily "call-driven". By this I mean that most actions in
the system are triggered by either an incoming call (from the PSTN, VoIP
etc) or an outbound call request (example: the user picking up a phone
connected to a digium hardware channel) on some type of channel. The
dialplan defines how asterisk responds to and controls what happens for each
call. For things that are not handled in the standard included commands,
there is an AGI facility which allows control of a call by a user-written
program external to asterisk, which can read/write a database or other
things flexibly.
To implement a desired function operating asynchronously from a call, for
example the hotel wakeup function, there is a facility that uses the
/var/spool/asterisk/outgoing directory. You can write a program independent
of asterisk to watch for certain events and when appropriate dump a text
file into the outgoing directory. Asterisk picks up these files and causes
outbound calls to be made, again using actions defined in the dialplan.
Hope this helps,
Scott M. Stingel
Emerging Voice Technology Inc.
Palo Alto, California and London, England
Email: scott "at" evtmedia.com
URL: www.evtmedia.com
________________________________
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of AR Tarzi
Sent: Sunday, February 29, 2004 3:16 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] A General question
Could someone find the time to tell me whether ALL functions in
Asterisk are programmed using scripts and contexts ?
What I need to find out is whether the user CAN configure services
for themselves.. Below, I chose a sampling of a fresh question and answer
(just as an example).
In this example: Is it not possible for each user to configure (say)
the voicemail so that whenever there's a message (data which probably
affects the dialtone or a light on the recipient phone), an action is
taken.. A daemon could then check a database to find out the action
(dialout, sms message.. or whatever) and the target number.
I cannot imagine the size of user installations (observed in user
messages) being managed centrally..
I hope this is not too much to ask, but all I need is a cryptic yes
or no at this stage.
----- Original Message -----
From: Andrew Kohlsmith
<mailto:akohlsmith-asterisk at benshaw.com>
To: asterisk-users at lists.digium.com
Sent: Sunday, February 29, 2004 17:33
Subject: Re: [Asterisk-Users] Dialing out after caller
leaves message
> I cannot use Dial after the Voicemail application, e.g.,
>
> [Step 1] exten => 100, 1, Dial( SIP/100, 15 )
> [Step 2] exten => 100, 2, Voicemail( u100 )
> [Step 3] exten => 100, 3, Dial( Zap/g1/CELL_PHONE )
>
> because the caller will hang up after leaving the voice
mail in Step 2
> above, and Asterisk will terminate the script, so Step 3
will get never
> get executed.
What about putting this in a special context and using 'h'?
i.e.
exten => 100, 1, Dial(SIP/100, 15)
exten => 100, 2, Voicemail(u100)
exten => h,1,Dial(Zap/g1/CELL_PHONE)
? h will get executed on hangup. The only caveat is that
if no voicemail
was left, you will still get called. Is there some way to
check if there
are new messages and use that in h along with the Dial()?
Regards,
Andrew
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list