[asterisk-users] Re: Re: 911 versus 9.911
asterisk at tescogroup.com
Fri Sep 1 08:40:35 MST 2006
I suppose I could use TrySystem() http://www.voip-info.org/wiki/view/Asterisk+cmd+TrySystem with a command that spawns its own shell
to send the email.
Therefore it would always return "0" and be as fast as possible in the dialplan.
My concern is that any priority jumping, out timeouts will adversely affect the 911 call.
It would be great to see a cmd SystemSpawn() or an option to System(), that would NOT wait for it to finish the System call, but to
just fire it off and continue in the dialplan.
More like a NoOp() as far as the dialplan is concerned, but run a script in a new shell.
"Dave Fullerton" <dfullertasterisk at shorelinecontainer.com> wrote in message news:44F84355.90108 at shorelinecontainer.com...
> Steven wrote:
>> I have been thinking of sending a page when asterisk dials 911.
>> beep "Attention, 911 has been dialed by " dialing-extension " whose callerID is " callerID.
>> I think an email would also be appropriate for HR/facility records.
>> Does anyone know how to send an email from the dialplan?
>> I assume I would need an agi for this, but I would want to spawn it off and not affect the call to 911, but also not wait for the
>> call to finish either.
>> So, the second question is, how do I spawn a second call flow without affecting the first?
> I like the idea of an email being generated when 911 is dialed. I'll have to keep that in mind when I set up the system I'm
> currently planning. But, to your question... I have asterisk send me an email under certain conditions. What I did was create a
> shell script that did the work of sending the email which accepted arguments to pass along the info I needed. Then I just used the
> System app in the dialplan to execute the script. It's actually pretty simple to do. It gets a little more difficult if you don't
> have sendmail/postfix/etc installed on your asterisk server. I ended up using an smtp client program that behaved like the
> sendmail command to send the mail through another server.
> --Bandwidth and Colocation provided by Easynews.com --
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
More information about the asterisk-users