[asterisk-users] system cmd + fax line

Danny Nicholas danny at debsinc.com
Wed Oct 7 08:09:28 CDT 2009


I would do something like this:
s/0411000000,1,answer()
s,1,noop
s/0411000000,2,background(message)
s/0411000000,3,wait(10,m)
s/0411000000,4,playback(vm-goodbye) 
s/0411000000,5,hangup
1/0411000000,1,goto(specialcontext,s,1)s,n,wait(60)
s,n,hangup

This would play message to let you know you are connected on the special
number, then run the command when you pressed 1.  If you don't press 1 in 10
seconds, the system says goodbye and hangs up.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Alex Samad
Sent: Wednesday, October 07, 2009 5:22 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] system cmd + fax line

Hi

I have a site that has asterisk install with a tdm410 one port is
connected to a pstn that is used as a backup outbound line when/if the
internet/voip is unavailable.

Currently my dial plan for this line is to ignore it, I just basically
do a 

s,1,noop
s,n,wait (60)
s,n,hangup


what I would like to do is if I call from a certain number be given an
option to run some commands or for the beginning just run a simple
command via system

something like

s/0411000000,1,goto(specialcontext,s,1)
s,1,noop
s,n,wait(60)
s,n,hangup


[specialcontext]
s,1,system(do a linux command)


is that about right.

Alex




More information about the asterisk-users mailing list