Re: [asterisk-users] how to stop asterisk using a call

2014-04-07 Thread Andres

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 0522xx 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

-- 
_
-- 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

Re: [asterisk-users] how to stop asterisk using a call

2014-04-07 Thread Salaheddine Elharit
thanks a lot it works correctly


2014-04-07 12:08 GMT+00:00 Andres and...@telesip.net:

  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 0522xx 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 Supporthttp://www.cellroute.net


 --
 _
 -- 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

-- 
_
-- 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