Adding live_dangerously did the trick. Thanks! But how dangerous is Asterisk 
living now ?

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of John Kiniston
Sent: dinsdag 5 juli 2016 17:41
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Function SHELL not registered

If you just need the name of the system it may be contained in the variable 
${SYSTEMNAME}.
This is assuming you have the systemname set in asterisk.conf

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Main+Configuration+File
That said, for SHELL support you probably need to set :

live_dangerously = yes
Also in your asterisk.conf

https://wiki.asterisk.org/wiki/display/AST/Privilege+Escalations+with+Dialplan+Functions


On Tue, Jul 5, 2016 at 7:27 AM, Michael Jepson 
<michael.jep...@cm.nl<mailto:michael.jep...@cm.nl>> wrote:
Even weirder, when I check in asterisk, using "core show functions", I can see 
the function SHELL right there.
From what I can find, the call is made from a conf. file, as grep shows:

globals.conf: G_server=${SHELL(hostname)}

Is this even correct? The config files are from a much older version of 
asterisk, which I am trying to update.

-----Original Message-----
From: 
asterisk-users-boun...@lists.digium.com<mailto:asterisk-users-boun...@lists.digium.com>
 
[mailto:asterisk-users-boun...@lists.digium.com<mailto:asterisk-users-boun...@lists.digium.com>]
 On Behalf Of Michael Jepson
Sent: dinsdag 5 juli 2016 16:07
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com<mailto:asterisk-users@lists.digium.com>>
Subject: Re: [asterisk-users] Function SHELL not registered

I have rebuilt a new version, making sure func_shell was selected, but I am 
still getting this error.

-----Original Message-----
From: 
asterisk-users-boun...@lists.digium.com<mailto:asterisk-users-boun...@lists.digium.com>
 
[mailto:asterisk-users-boun...@lists.digium.com<mailto:asterisk-users-boun...@lists.digium.com>]
 On Behalf Of A J Stiles
Sent: maandag 4 juli 2016 09:34
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com<mailto:asterisk-users@lists.digium.com>>
Subject: Re: [asterisk-users] Function SHELL not registered

On Monday 04 Jul 2016, Michael Jepson wrote:
> Hi all,
>
> I am getting the following error when starting asterisk:
> pbx_functions.c: Function SHELL not registered
>
> Some of my conf files use a SHELL command, which used to work with an
> older version of asterisk, but now with version 13.9.1 I see this
> warning in the error log. How can I register the SHELL function? From
> what I can find in the wiki's, it should just be available?
>
> Best regards,
>
> Michael Jepson

Did you include func_shell in your Asterisk build?

Fortunately, it's no biggie to build a missing module, because the "make"
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`.

--
AJS

Note:  Originating address only accepts e-mail from list!  If replying off- 
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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

--
_____________________________________________________________________
-- 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

--
_____________________________________________________________________
-- 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



--
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.
---Heinlein
-- 
_____________________________________________________________________
-- 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

Reply via email to