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: [email protected]
[mailto:[email protected]] On Behalf Of Alex Samad
Sent: Wednesday, October 07, 2009 5:22 AM
To: [email protected]
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


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to