[asterisk-users] Execute a script outside Asterisk
Jonas Kellens
jonas.kellens at telenet.be
Wed Jan 23 08:32:15 CST 2013
Hello,
thank you for your answer.
The most important here is that Asterisk continues with the rest of the
dialplan, in case the database-connection fails or hangs or ...
I don't think the System()-command makes this true.
Jonas.
On 01/23/2013 03:27 PM, Danny Nicholas wrote:
>
> I would vote for system() on two accounts. #1 AGI requires more
> overhead and protocol #2 you are not expecting a result to return to
> the dialplan.
>
> *From:*asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Jonas
> Kellens
> *Sent:* Wednesday, January 23, 2013 4:10 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] Execute a script outside Asterisk
>
> Hello,
>
> at certain time inside my dialplan I would like to have an external
> php script executed. Asterisk should not wait for the end of the
> execution to continue with the rest of the dialplan. It should just
> start the execution of the php script (which inserts an entry into a
> remote mysql-DB).
>
> What is the best way to work ?
>
> - with AGI inside the dialplan ?
> - with the system()-command inside the dialplan ?
>
>
>
> Kind regards,
> Jonas.
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130123/0c15df92/attachment.htm>
More information about the asterisk-users
mailing list