Re: [asterisk-users] failing to start asterisk on centos7

2016-12-13 Thread Tzafrir Cohen
On Sat, Dec 10, 2016 at 08:24:09PM +0200, christopher kamutumwa wrote:
> ive installed asterisk but below is what am getting proces gets
> killed.please help
> 
> [root@localhost sounds]# asterisk -c
> Asterisk 13.13.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
> Created by Mark Spencer 
> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for

So now we have asterisk somewhere in the path.

[snip]

>  Asterisk Dynamic Loader Starting:
>   == Parsing '/etc/asterisk/modules.conf': Found
> [Dec 10 20:21:06] NOTICE[16058]: loader.c:1446 load_modules: 263 modules
> will be loaded.
> Killed

Looks odd. My first instict would be to try to run this under strace.

> [root@localhost sounds]# asterisk -c
> -bash: /usr/sbin/asterisk: No such file or directory

It's still in a cache for bash, right? But it's no longer there.
Somebody deleted it?

Or rather (Just a guess) - someone has been messing with the contents of
the disk directly? Disk problems?

> [root@localhost sounds]# asterisk -r
> -bash: /usr/sbin/asterisk: No such file or directory
> [root@localhost sounds]# asterisk
> -bash: /usr/sbin/asterisk: No such file or directory
> [root@localhost sounds]#

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] failing to start asterisk on centos7

2016-12-12 Thread A J Stiles
**  THIS IS NOT WHERE YOUR REPLY BELONGS  **

On Monday 12 Dec 2016, christopher kamutumwa wrote:
> Hello support,
> 
> Am not winning need your help. ive tried putting a different version of
> asterisk on centos 7 and here are below results, after make config;
> 
> [root@localhost asterisk-14.2.1]# make config
> [root@localhost asterisk-14.2.1]# sudo service asterisk start
> Starting asterisk (via systemctl): [  OK  ]
> [root@localhost asterisk-14.2.1]# asterisk -rvv
> bash: asterisk: command not found
> [root@localhost asterisk-14.2.1]# which asterisk
> /usr/bin/which: no asterisk in (/sbin:/bin:/usr/sbin:/usr/bin)
> [root@localhost asterisk-14.2.1]# asterisk c
> bash: asterisk: command not found

You don't appear to have finished the build process!

You need to run
$ make menuselect
$ make
$ sudo make install

(if `make` stops with errors, fix them and run that step again.)

There is no way that `sudo service asterisk start` should be able to start 
anything successfully if there isn't an asterisk binary in the path.  (But 
systemd is a law unto itself.)

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] failing to start asterisk on centos7

2016-12-12 Thread christopher kamutumwa
Hello support,

Am not winning need your help. ive tried putting a different version of
asterisk on centos 7 and here are below results, after make config;

[root@localhost asterisk-14.2.1]# make config
[root@localhost asterisk-14.2.1]# sudo service asterisk start
Starting asterisk (via systemctl): [  OK  ]
[root@localhost asterisk-14.2.1]# asterisk -rvv
bash: asterisk: command not found
[root@localhost asterisk-14.2.1]# which asterisk
/usr/bin/which: no asterisk in (/sbin:/bin:/usr/sbin:/usr/bin)
[root@localhost asterisk-14.2.1]# asterisk c
bash: asterisk: command not found

regards

On Mon, Dec 12, 2016 at 11:30 AM, A J Stiles 
wrote:

> On Saturday 10 Dec 2016, christopher kamutumwa wrote:
> > ive installed asterisk but below is what am getting proces gets
> > killed.please help
> >
>
> Make sure you have libncurses5 and its development files installed,
> otherwise
> this can cause crashes.
>
> Also, how much RAM is in your box?  Check Asterisk is not being killed for
> running out of memory.
>
> --
> 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 --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] failing to start asterisk on centos7

2016-12-12 Thread A J Stiles
On Saturday 10 Dec 2016, christopher kamutumwa wrote:
> ive installed asterisk but below is what am getting proces gets
> killed.please help
> 

Make sure you have libncurses5 and its development files installed, otherwise 
this can cause crashes.

Also, how much RAM is in your box?  Check Asterisk is not being killed for 
running out of memory.

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] failing to start asterisk on centos7

2016-12-11 Thread Tech Support
There aren’t many places where it can be. You can try the commands ‘which 
asterisk’ or ‘whereis asterisk’ and if that doesn’t come up with anything, you 
can try ‘find / -type f –name asterisk -print’.  

Regards;

John V.

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of christopher 
kamutumwa
Sent: Sunday, December 11, 2016 1:21 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] failing to start asterisk on centos7

 

Yes-bash: /usr/sbin/asterisk: No such file or directory”. Where is the asterisk 
binary located? There's a high likelihood that that’s the problem. where is 
itlocated how do i find it and what do i need to do. i tried it on centos 6.8 
and i had same error. where am i going wrong?

 

chris

 

On Sat, Dec 10, 2016 at 10:48 PM, Tech Support <aster...@voipbusiness.us> wrote:

Hello;

Way down at the bottom of your post you're getting an error that says 
“-bash: /usr/sbin/asterisk: No such file or directory”. Where is the asterisk 
binary located? There's a high likelihood that that’s the problem.

Regards;

John V.

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of christopher 
kamutumwa
Sent: Saturday, December 10, 2016 1:24 PM
To: asterisk-users
Subject: [asterisk-users] failing to start asterisk on centos7

 

ive installed asterisk but below is what am getting proces gets killed.please 
help

 

[root@localhost sounds]# asterisk -c

Asterisk 13.13.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.

Created by Mark Spencer <marks...@digium.com>

Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for 
details.

This is free software, with components licensed under the GNU General Public

License version 2 and other licenses; you are welcome to redistribute it under

certain conditions. Type 'core show license' for details.

=

[root@localhost sounds]# asterisk -c

-bash: /usr/sbin/asterisk: No such file or directory

[root@localhost sounds]# asterisk -r

-bash: /usr/sbin/asterisk: No such file or directory

[root@localhost sounds]# asterisk

-bash: /usr/sbin/asterisk: No such file or directory

[root@localhost sounds]#

 


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] failing to start asterisk on centos7

2016-12-10 Thread christopher kamutumwa
Yes-bash: /usr/sbin/asterisk: No such file or directory”. Where is the
asterisk binary located? There's a high likelihood that that’s the problem.
where is itlocated how do i find it and what do i need to do. i tried it on
centos 6.8 and i had same error. where am i going wrong?

chris

On Sat, Dec 10, 2016 at 10:48 PM, Tech Support <aster...@voipbusiness.us>
wrote:

> Hello;
>
> Way down at the bottom of your post you're getting an error that says
> “-bash: /usr/sbin/asterisk: No such file or directory”. Where is the
> asterisk binary located? There's a high likelihood that that’s the problem.
>
> Regards;
>
> John V.
>
>
>
> *From:* asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-
> boun...@lists.digium.com] *On Behalf Of *christopher kamutumwa
> *Sent:* Saturday, December 10, 2016 1:24 PM
> *To:* asterisk-users
> *Subject:* [asterisk-users] failing to start asterisk on centos7
>
>
>
> ive installed asterisk but below is what am getting proces gets
> killed.please help
>
>
>
> [root@localhost sounds]# asterisk -c
>
> Asterisk 13.13.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
>
> Created by Mark Spencer <marks...@digium.com>
>
> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
> details.
>
> This is free software, with components licensed under the GNU General
> Public
>
> License version 2 and other licenses; you are welcome to redistribute it
> under
>
> certain conditions. Type 'core show license' for details.
>
> =
>
> [root@localhost sounds]# asterisk -c
>
> -bash: /usr/sbin/asterisk: No such file or directory
>
> [root@localhost sounds]# asterisk -r
>
> -bash: /usr/sbin/asterisk: No such file or directory
>
> [root@localhost sounds]# asterisk
>
> -bash: /usr/sbin/asterisk: No such file or directory
>
> [root@localhost sounds]#
>
>
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] failing to start asterisk on centos7

2016-12-10 Thread Tech Support
Hello;

Way down at the bottom of your post you're getting an error that says 
“-bash: /usr/sbin/asterisk: No such file or directory”. Where is the asterisk 
binary located? There's a high likelihood that that’s the problem.

Regards;

John V.

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of christopher 
kamutumwa
Sent: Saturday, December 10, 2016 1:24 PM
To: asterisk-users
Subject: [asterisk-users] failing to start asterisk on centos7

 

ive installed asterisk but below is what am getting proces gets killed.please 
help

 

[root@localhost sounds]# asterisk -c

Asterisk 13.13.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.

Created by Mark Spencer <marks...@digium.com>

Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for 
details.

This is free software, with components licensed under the GNU General Public

License version 2 and other licenses; you are welcome to redistribute it under

certain conditions. Type 'core show license' for details.

=

[root@localhost sounds]# asterisk -c

-bash: /usr/sbin/asterisk: No such file or directory

[root@localhost sounds]# asterisk -r

-bash: /usr/sbin/asterisk: No such file or directory

[root@localhost sounds]# asterisk

-bash: /usr/sbin/asterisk: No such file or directory

[root@localhost sounds]#

 

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] failing to start asterisk on centos7

2016-12-10 Thread Bruce Ferrell

You didn't mention any of these and they may seem unimportant but they are:

Was the install from source or rpm?
Is this a new Centos install?

A brand new Centos install has selinux engaged.  selinux will block a 
source installed asterisk.  I think the asterisk RPMs have the necessary 
labeling to bypass selinux... I'm not sure of that. test for selinux with:


the response can be enabled, permissive or disabled

enabled means selinux is possibly the problem and the solution can be 
tested by doing:


setenforce 0

and then attempt to restart asterisk.  If it starts, it's a good 
indication of what is going on and I'll leave the exercise of either 
permenantly disabling selinux or correctly labeling the filesystem to 
allow selinux and asterisk to co-exist.


On 12/10/16 10:24 AM, christopher kamutumwa wrote:
ive installed asterisk but below is what am getting proces gets 
killed.please help


[root@localhost sounds]# asterisk -c
Asterisk 13.13.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer >
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' 
for details.
This is free software, with components licensed under the GNU General 
Public
License version 2 and other licenses; you are welcome to redistribute 
it under

certain conditions. Type 'core show license' for details.
=
[ Initializing Custom Configuration Options ]
  == Parsing '/etc/asterisk/extconfig.conf': Found
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Manager registered action DBGet
  == Manager registered action DBPut
  == Manager registered action DBDel
  == Manager registered action DBDelTree
PBX UUID: 36c0be35-766e-46c4-be1f-96479afa1e2b
  == Registered 'audio' codec 'g723' at sample rate '8000' with id '1'
  == Created cached format with name 'g723'
  == Registered 'audio' codec 'ulaw' at sample rate '8000' with id '2'
  == Created cached format with name 'ulaw'
  == Registered 'audio' codec 'alaw' at sample rate '8000' with id '3'
  == Created cached format with name 'alaw'
  == Registered 'audio' codec 'gsm' at sample rate '8000' with id '4'
  == Created cached format with name 'gsm'
  == Registered 'audio' codec 'g726' at sample rate '8000' with id '5'
  == Created cached format with name 'g726'
  == Registered 'audio' codec 'g726aal2' at sample rate '8000' with id '6'
  == Created cached format with name 'g726aal2'
  == Registered 'audio' codec 'adpcm' at sample rate '8000' with id '7'
  == Created cached format with name 'adpcm'
  == Registered 'audio' codec 'slin' at sample rate '8000' with id '8'
  == Created cached format with name 'slin'
  == Registered 'audio' codec 'slin' at sample rate '12000' with id '9'
  == Created cached format with name 'slin12'
  == Registered 'audio' codec 'slin' at sample rate '16000' with id '10'
  == Created cached format with name 'slin16'
  == Registered 'audio' codec 'slin' at sample rate '24000' with id '11'
  == Created cached format with name 'slin24'
  == Registered 'audio' codec 'slin' at sample rate '32000' with id '12'
  == Created cached format with name 'slin32'
  == Registered 'audio' codec 'slin' at sample rate '44100' with id '13'
  == Created cached format with name 'slin44'
  == Registered 'audio' codec 'slin' at sample rate '48000' with id '14'
  == Created cached format with name 'slin48'
  == Registered 'audio' codec 'slin' at sample rate '96000' with id '15'
  == Created cached format with name 'slin96'
  == Registered 'audio' codec 'slin' at sample rate '192000' with id '16'
  == Created cached format with name 'slin192'
  == Registered 'audio' codec 'lpc10' at sample rate '8000' with id '17'
  == Created cached format with name 'lpc10'
  == Registered 'audio' codec 'g729' at sample rate '8000' with id '18'
  == Created cached format with name 'g729'
  == Registered 'audio' codec 'speex' at sample rate '8000' with id '19'
  == Created cached format with name 'speex'
  == Registered 'audio' codec 'speex' at sample rate '16000' with id '20'
  == Created cached format with name 'speex16'
  == Registered 'audio' codec 'speex' at sample rate '32000' with id '21'
  == Created cached format with name 'speex32'
  == Registered 'audio' codec 'ilbc' at sample rate '8000' with id '22'
  == Created cached format with name 'ilbc'
  == Registered 'audio' codec 'g722' at sample rate '16000' with id '23'
  == Created cached format with name 'g722'
  == Registered 'audio' codec 'siren7' at sample rate '16000' with id '24'
  == Created cached format with name 'siren7'
  == Registered 'audio' codec 'siren14' at sample rate '32000' with id 
'25'

  == Created cached format with name 'siren14'
  == Registered 'audio' codec 'testlaw' at sample rate '8000' with id '26'
  == Created cached format with name 'testlaw'
  == Registered 'audio' codec 'g719' at sample rate '48000' with id '27'
  == Created cached format with 

[asterisk-users] failing to start asterisk on centos7

2016-12-10 Thread christopher kamutumwa
ive installed asterisk but below is what am getting proces gets
killed.please help

[root@localhost sounds]# asterisk -c
Asterisk 13.13.1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
Created by Mark Spencer 
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=
[ Initializing Custom Configuration Options ]
  == Parsing '/etc/asterisk/extconfig.conf': Found
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Manager registered action DBGet
  == Manager registered action DBPut
  == Manager registered action DBDel
  == Manager registered action DBDelTree
PBX UUID: 36c0be35-766e-46c4-be1f-96479afa1e2b
  == Registered 'audio' codec 'g723' at sample rate '8000' with id '1'
  == Created cached format with name 'g723'
  == Registered 'audio' codec 'ulaw' at sample rate '8000' with id '2'
  == Created cached format with name 'ulaw'
  == Registered 'audio' codec 'alaw' at sample rate '8000' with id '3'
  == Created cached format with name 'alaw'
  == Registered 'audio' codec 'gsm' at sample rate '8000' with id '4'
  == Created cached format with name 'gsm'
  == Registered 'audio' codec 'g726' at sample rate '8000' with id '5'
  == Created cached format with name 'g726'
  == Registered 'audio' codec 'g726aal2' at sample rate '8000' with id '6'
  == Created cached format with name 'g726aal2'
  == Registered 'audio' codec 'adpcm' at sample rate '8000' with id '7'
  == Created cached format with name 'adpcm'
  == Registered 'audio' codec 'slin' at sample rate '8000' with id '8'
  == Created cached format with name 'slin'
  == Registered 'audio' codec 'slin' at sample rate '12000' with id '9'
  == Created cached format with name 'slin12'
  == Registered 'audio' codec 'slin' at sample rate '16000' with id '10'
  == Created cached format with name 'slin16'
  == Registered 'audio' codec 'slin' at sample rate '24000' with id '11'
  == Created cached format with name 'slin24'
  == Registered 'audio' codec 'slin' at sample rate '32000' with id '12'
  == Created cached format with name 'slin32'
  == Registered 'audio' codec 'slin' at sample rate '44100' with id '13'
  == Created cached format with name 'slin44'
  == Registered 'audio' codec 'slin' at sample rate '48000' with id '14'
  == Created cached format with name 'slin48'
  == Registered 'audio' codec 'slin' at sample rate '96000' with id '15'
  == Created cached format with name 'slin96'
  == Registered 'audio' codec 'slin' at sample rate '192000' with id '16'
  == Created cached format with name 'slin192'
  == Registered 'audio' codec 'lpc10' at sample rate '8000' with id '17'
  == Created cached format with name 'lpc10'
  == Registered 'audio' codec 'g729' at sample rate '8000' with id '18'
  == Created cached format with name 'g729'
  == Registered 'audio' codec 'speex' at sample rate '8000' with id '19'
  == Created cached format with name 'speex'
  == Registered 'audio' codec 'speex' at sample rate '16000' with id '20'
  == Created cached format with name 'speex16'
  == Registered 'audio' codec 'speex' at sample rate '32000' with id '21'
  == Created cached format with name 'speex32'
  == Registered 'audio' codec 'ilbc' at sample rate '8000' with id '22'
  == Created cached format with name 'ilbc'
  == Registered 'audio' codec 'g722' at sample rate '16000' with id '23'
  == Created cached format with name 'g722'
  == Registered 'audio' codec 'siren7' at sample rate '16000' with id '24'
  == Created cached format with name 'siren7'
  == Registered 'audio' codec 'siren14' at sample rate '32000' with id '25'
  == Created cached format with name 'siren14'
  == Registered 'audio' codec 'testlaw' at sample rate '8000' with id '26'
  == Created cached format with name 'testlaw'
  == Registered 'audio' codec 'g719' at sample rate '48000' with id '27'
  == Created cached format with name 'g719'
  == Registered 'audio' codec 'opus' at sample rate '48000' with id '28'
  == Created cached format with name 'opus'
  == Registered 'image' codec 'jpeg' at sample rate '0' with id '29'
  == Created cached format with name 'jpeg'
  == Registered 'image' codec 'png' at sample rate '0' with id '30'
  == Created cached format with name 'png'
  == Registered 'video' codec 'h261' at sample rate '1000' with id '31'
  == Created cached format with name 'h261'
  == Registered 'video' codec 'h263' at sample rate '1000' with id '32'
  == Created cached format with name 'h263'
  == Registered 'video' codec 'h263p' at sample rate '1000' with id '33'
  == Created cached format with name 'h263p'
  == Registered 'video' codec 'h264' at sample rate '1000' with id '34'
  == Created cached format with name 'h264'
  == Registered 'video' codec 'mpeg4' at