No subject
Sun Jul 19 19:54:31 CDT 2009
Exten => h,1,DeadAGI(vol_rest.agi)
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Andy Swing
Sent: Monday, May 03, 2010 3:19 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Run a script after Page application
I am trying to run a script before and after the Page application in
order to mute/un-mute my whole house audio when my phones are being
used as an intercom. Unfortunately, I am unable to get the system call
after the Page line to run (i.e. /bin/vol_restore). I have also tried
running it using the hangup extension, but neither seem to be
executed:
[main_dialplan]
exten => 5,1,Macro(pageall)
[macro-pageall]
exten => s,1,SIPAddHeader(Call-Info: answer-after=0)
exten => s,n,Set(TIMEOUT(absolute)=240)
exten => s,n,System(/bin/vol_save_and_mute_all)
exten => s,n,Page(${ALL_SPKR_PHONES},dis,3)
exten => s,n,System(/bin/vol_restore)
exten => s,n,Hangup
exten => h,1,System(/bin/vol_restore)
Any suggestions? I am running Asterisk 1.6.2.5.
Thanks,
-Andy
--
_____________________________________________________________________
-- 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
More information about the asterisk-users
mailing list