<div dir="ltr"><div><div><div>If you just need the name of the system it may be contained in the variable <span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">${SYSTEMNAME}<span class="">.<br><br></span></span></div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><span class="">This is assuming you have the systemname set in asterisk.conf<br><br><a 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 style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><span class="">That said, for SHELL support you probably need to set :<br><br>live_dangerously = yes <br><br></span></span></div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><span class="">Also in your asterisk.conf<br><br><a 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 style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><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 href="mailto:Michael.Jepson@cm.nl" target="_blank">Michael.Jepson@cm.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a 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 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 href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a 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 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 href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a 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 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 href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a 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 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 href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a 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 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 clear="all"><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>