Hi all,<div><br></div><div>I'm wondering what the syntax is to call a shell script from a DTMF command in app_rpt - or even if this is possible?</div><div><br></div><div>What I'm trying to do is a variation on the method described by Steve earlier to inhibit incoming calls.</div>
<div><br></div><div>What I intend to to is this: </div><div><br></div><div>When the user keys a specific DTMF code, have a script run which renames IRLP.conf as somethingelse.conf ad then restart asterisk, so effectively disabling IRLP part of the node. I will do the same with Echolink but with a different code.....</div>
<div><br></div><div>I've tried using the dialplan to call some announcements just to see if it worked - it didnt!</div><div><br></div><div>Here is what I put in my dialplan ( I tried under Default and also Radio-secure stanzas )</div>
<div><div><br></div><div>exten => *990,1,Answer</div><div>exten => *990,n,Wait 1</div><div>exten => *990,n,Playback,rpt/connected</div><div>exten => *990,n,Playback,rpt/functioncomplete</div><div>exten => *990,n,Hangup</div>
<div><br></div></div><div>So, I wonder what I'm doing wrong here - I thought I'd try and get this working before going on to use the *990,n,system(script_directory/script) method.</div><div><br></div><div>Is it possible to call a system command from rpt.conf instead?</div>
<div><br></div><div>Thanks for all your patience!</div><div><br></div><div>Matt</div><div>G4RKY</div>