Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
salah.elharit200 at gm...
Guest





PostPosted: Mon Apr 07, 2014 3:53 am    Post subject: [asterisk-users] how to stop asterisk using a call Reply with quote

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.
Back to top
andres at telesip.net
Guest





PostPosted: Mon Apr 07, 2014 7:08 am    Post subject: [asterisk-users] how to stop asterisk using a call Reply with quote

On 4/7/14, 4:53 AM, Salaheddine Elharit wrote:

Quote:
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)
Quote:
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
Back to top
salah.elharit200 at gm...
Guest





PostPosted: Mon Apr 07, 2014 8:16 am    Post subject: [asterisk-users] how to stop asterisk using a call Reply with quote

thanks a lot it works correctly 


2014-04-07 12:08 GMT+00:00 Andres <andres@telesip.net (andres@telesip.net)>:
Quote:
On 4/7/14, 4:53 AM, Salaheddine Elharit wrote:

Quote:
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)
Quote:
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.







Quote:
--
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services