<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Out of habit I like to have spaces for readability. When I ran the
    test I ran asterisk from the root prompt as asterisk -vcd. Did you
    get any output from asterisk?<br>
    *CLI> [Jan 22 19:29:53] NOTICE[3303]: app_rpt.c:4008
    function_cmd: cmd param = /tmp/ssz.sh, digitbuf = <br>
    <br>
    <div class="moz-cite-prefix">On 01/22/2016 08:06 PM, Stephen - K1LNX
      wrote:<br>
    </div>
    <blockquote
cite="mid:CABbxpd-Gjgwq=vydEBeszvZ4_ZuwzqUruXcsiywMG_oMQ6CGpQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Steve, followed your example and looks like
        I needed a space between the DTMF definition, the = sign and the
        command itself to work properly, and it ran, but I still can't
        get my script to run in the /root/scripts directory. My scripts
        don't have to live there, but I was setting it there temporarily
        for testing. 
        <div><br>
        </div>
        <div>I'm not sure why this isn't working. <br>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Fri, Jan 22, 2016 at 7:34 PM,
              Steve Zingman <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:szingman@msgstor.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:szingman@msgstor.com">szingman@msgstor.com</a></a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div text="#000000" bgcolor="#FFFFFF"> Stephen,<br>
                  Here is what I have:<br>
                  <br>
                  In rpt.conf:<br>
                  966 = cmd,/tmp/ssz.sh<br>
                  <br>
                  in /tmp/ssz.sh:<br>
                  #! /bin/bash<br>
                  echo "Hello World" >/tmp/ssz.txt<br>
                  <br>
                  from the asterisk cli:<br>
                  *CLI> rpt debug level 0<br>
                  app_rpt Debugging disabled<br>
                  *CLI> rpt fun 2152 *966<br>
                  *CLI> [Jan 22 19:29:53] NOTICE[3303]:
                  app_rpt.c:4008 function_cmd: cmd param = /tmp/ssz.sh,
                  digitbuf = <br>
                  <br>
                  script ran<br>
                  <br>
                  <br>
                  Steve
                  <div>
                    <div><br>
                      <br>
                      <br>
                      <br>
                      <br>
                      <div>On 01/22/2016 06:22 PM, Stephen - K1LNX
                        wrote:<br>
                      </div>
                    </div>
                  </div>
                  <blockquote type="cite">
                    <div>
                      <div>
                        <div dir="ltr">I am trying to get a script to
                          execute based on a DTMF sequence and it's not
                          working for whatever reason. 
                          <div><br>
                          </div>
                          <div>I put the following in rpt.conf under the
                            functions stanza: </div>
                          <div><br>
                          </div>
                          <div>
                            <p><span>[functions2376]</span></p>
                            <p>(default functions removed for
                              readability) </p>
                            <p>; testing script functions<br>
                            </p>
                            <p><span>123=cmd,/root/scripts/test.sh</span></p>
                            <p>The script is nothing more than a simple
                              shell script for testing right now, I
                              validated it worked: </p>
                            <p><span>#!/bin/bash</span></p>
                            <p>echo test1234 > test.out</p>
                            <p>Permissions are set 777 on it to ensure
                              it's able to be executed by anything, but
                              when I go to the Asterisk console and
                              execute: </p>
                            <p>rpt fun 2376 *123</p>
                            <p>The script does not execute. What is it I
                              could be missing here if anything? </p>
                            <p>tnx</p>
                            <p>Stephen</p>
                            <p>K1LNX</p>
                          </div>
                        </div>
                        <br>
                        <fieldset></fieldset>
                        <br>
                      </div>
                    </div>
                    <pre>_______________________________________________
App_rpt-users mailing list
<a moz-do-not-send="true" href="mailto:App_rpt-users@ohnosec.org" target="_blank">App_rpt-users@ohnosec.org</a>
<a moz-do-not-send="true" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a>

To unsubscribe from this list please visit <a moz-do-not-send="true" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. </pre>
                    <span><font color="#888888"> </font></span></blockquote>
                  <span><font color="#888888"> <br>
                      <pre cols="72">-- 
"Anything is possible if you don't know what you are talking about."
1st Law of Logic</pre>
                    </font></span></div>
              </blockquote>
            </div>
            <br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
"Anything is possible if you don't know what you are talking about."
1st Law of Logic</pre>
  </body>
</html>