<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Maybe Asterisk dialplan apps and functions don't work in the
      [globals] section.  </tt><br>
    <br>
    <div class="moz-cite-prefix">On 07/05/2016 11:40 AM, John Kiniston
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFJQOGdKzXCRH6+=k_OFF00FyCLrRDgEpuqhEwUp+QNwEsDhEg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>
          <div>
            <div>If you just need the name of the system it may be
              contained in the variable <span>${SYSTEMNAME}<span
                  class="">.<br>
                  <br>
                </span></span></div>
            <span><span class="">This is assuming you have the
                systemname set in asterisk.conf<br>
                <br>
                <a moz-do-not-send="true"
href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Main+Configuration+File">https://wiki.asterisk.org/wiki/display/AST/Asterisk+Main+Configuration+File</a><br>
                <br>
              </span></span></div>
          <span><span class="">That said, for SHELL support you probably
              need to set :<br>
              <br>
              live_dangerously = yes <br>
              <br>
            </span></span></div>
        <span><span class="">Also in your asterisk.conf<br>
            <br>
            <a moz-do-not-send="true"
href="https://wiki.asterisk.org/wiki/display/AST/Privilege+Escalations+with+Dialplan+Functions">https://wiki.asterisk.org/wiki/display/AST/Privilege+Escalations+with+Dialplan+Functions</a><br>
          </span></span>
        <div>
          <div><span><span class=""><br>
              </span></span></div>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Tue, Jul 5, 2016 at 7:27 AM, Michael
          Jepson <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:Michael.Jepson@cm.nl" target="_blank">Michael.Jepson@cm.nl</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote">Even weirder, when I check in
            asterisk, using "core show functions", I can see the
            function SHELL right there.<br>
            From what I can find, the call is made from a conf. file, as
            grep shows:<br>
            <br>
            globals.conf: G_server=${SHELL(hostname)}<br>
            <br>
            Is this even correct? The config files are from a much older
            version of asterisk, which I am trying to update.<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                -----Original Message-----<br>
                From: <a moz-do-not-send="true"
                  href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
                [mailto:<a moz-do-not-send="true"
                  href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]
                On Behalf Of Michael Jepson<br>
                Sent: dinsdag 5 juli 2016 16:07<br>
                To: Asterisk Users Mailing List - Non-Commercial
                Discussion <<a moz-do-not-send="true"
                  href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
                Subject: Re: [asterisk-users] Function SHELL not
                registered<br>
                <br>
                I have rebuilt a new version, making sure func_shell was
                selected, but I am still getting this error.<br>
                <br>
                -----Original Message-----<br>
                From: <a moz-do-not-send="true"
                  href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>
                [mailto:<a moz-do-not-send="true"
                  href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>]
                On Behalf Of A J Stiles<br>
                Sent: maandag 4 juli 2016 09:34<br>
                To: Asterisk Users Mailing List - Non-Commercial
                Discussion <<a moz-do-not-send="true"
                  href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
                Subject: Re: [asterisk-users] Function SHELL not
                registered<br>
                <br>
                On Monday 04 Jul 2016, Michael Jepson wrote:<br>
                > Hi all,<br>
                ><br>
                > I am getting the following error when starting
                asterisk:<br>
                > pbx_functions.c: Function SHELL not registered<br>
                ><br>
                > Some of my conf files use a SHELL command, which
                used to work with an<br>
                > older version of asterisk, but now with version
                13.9.1 I see this<br>
                > warning in the error log. How can I register the
                SHELL function? From<br>
                > what I can find in the wiki's, it should just be
                available?<br>
                ><br>
                > Best regards,<br>
                ><br>
                > Michael Jepson<br>
                <br>
                Did you include func_shell in your Asterisk build?<br>
                <br>
                Fortunately, it's no biggie to build a missing module,
                because the "make"<br>
                command explicitly keeps track of everything it has
                already done and does not need to do again.  Just cd
                into the folder with your Asterisk source, run `make
                menuselect` and select "func_shell"  (under dialplan
                functions).  Then run `make` and finally `make install`.<br>
                <br>
                --<br>
                AJS<br>
                <br>
                Note:  Originating address only accepts e-mail from
                list!  If replying off- list, change address to
                asterisk1list at earthshod dot co dot uk .<br>
                <br>
                --<br>
_____________________________________________________________________<br>
                -- Bandwidth and Colocation Provided by <a
                  moz-do-not-send="true"
                  href="http://www.api-digital.com" rel="noreferrer"
                  target="_blank"><a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a></a> -- New
                to Asterisk? Join us for a live introductory webinar
                every Thurs:<br>
                               <a moz-do-not-send="true"
                  href="http://www.asterisk.org/hello" rel="noreferrer"
                  target="_blank">http://www.asterisk.org/hello</a><br>
                <br>
                asterisk-users mailing list<br>
                To UNSUBSCRIBE or update options visit:<br>
                   <a moz-do-not-send="true"
                  href="http://lists.digium.com/mailman/listinfo/asterisk-users"
                  rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
                <br>
                --<br>
_____________________________________________________________________<br>
                -- Bandwidth and Colocation Provided by <a
                  moz-do-not-send="true"
                  href="http://www.api-digital.com" rel="noreferrer"
                  target="_blank"><a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a></a> -- New
                to Asterisk? Join us for a live introductory webinar
                every Thurs:<br>
                               <a moz-do-not-send="true"
                  href="http://www.asterisk.org/hello" rel="noreferrer"
                  target="_blank">http://www.asterisk.org/hello</a><br>
                <br>
                asterisk-users mailing list<br>
                To UNSUBSCRIBE or update options visit:<br>
                   <a moz-do-not-send="true"
                  href="http://lists.digium.com/mailman/listinfo/asterisk-users"
                  rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
                <br>
                --<br>
_____________________________________________________________________<br>
                -- Bandwidth and Colocation Provided by <a
                  moz-do-not-send="true"
                  href="http://www.api-digital.com" rel="noreferrer"
                  target="_blank"><a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a></a> --<br>
                New to Asterisk? Join us for a live introductory webinar
                every Thurs:<br>
                               <a moz-do-not-send="true"
                  href="http://www.asterisk.org/hello" rel="noreferrer"
                  target="_blank">http://www.asterisk.org/hello</a><br>
                <br>
                asterisk-users mailing list<br>
                To UNSUBSCRIBE or update options visit:<br>
                   <a moz-do-not-send="true"
                  href="http://lists.digium.com/mailman/listinfo/asterisk-users"
                  rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br>
        <br>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">A
          human being should be able to change a diaper, plan an
          invasion, butcher a hog, conn a ship, design a building, write
          a sonnet, balance accounts, build a wall, set a bone, comfort
          the dying, take orders, give orders, cooperate, act alone,
          solve equations, analyze a new problem, pitch manure, program
          a computer, cook a tasty meal, fight efficiently, die
          gallantly. Specialization is for insects.<br>
          ---Heinlein</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
if at first you don't succeed, skydiving isn't for you</pre>
  </body>
</html>