TIPS Can I make an extension to run a system script?

wlraider70

New Member
Joined
Jun 1, 2013
Messages
26
Reaction score
1
I don't have an actual scenario, but I was wondering if I can make an phone extension that will in turn run a system program or script when dialed.

Maybe dial 360 to rotate a security camera.
Dial 52 to turn on a web stream

Is this a crazy idea?
 

TheMole

Guru
Joined
Aug 28, 2008
Messages
96
Reaction score
9
yes.

you can view some samples in your own asterisk setup by looking for "System" in the extensions*.conf. So type:

Code:
cat /etc/asterisk/ex*| grep System

to get a run of all of them. you can probably figure it out from there.

but a basic example would be this:

Code:
exten => 4242,1,System(/bin/touch /path/to/some/file/here)
 

Members online

No members online now.

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top