Salaheddine Elharit
2014-Apr-07 08:53 UTC
[asterisk-users] how to stop asterisk using a call
hello list, i have a question i don't know if there is any possibility to stop asterisk using a call for exp: when i call a number 0522xxxxxx i want to excute a script or any idea to stop asterisk automatically i use asterisk 1.4.43 NB: with mysql using a database i can insert into table using php without issue. but now with SSH how can i do thanks and regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140407/73619dae/attachment.html>
On 4/7/14, 4:53 AM, Salaheddine Elharit wrote:> hello list, > > i have a question i don't know if there is any possibility to stop > asterisk using a call for exp: > > when i call a number 0522xxxxxx i want to excute a script or any idea > to stop asterisk automatically >Sure, try something like: [custom-stop] exten => 052212345,1,System(sudo /usr/sbin/service asterisk stop) (you need to give the asterisk owner permission to execute 'service' comand via sudo)> i use asterisk 1.4.43 > > NB: with mysql using a database i can insert into table using php > without issue. but now with SSH how can i do > > thanks and regards. > >-- Technical Support http://www.cellroute.net -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140407/86f75736/attachment.html>