[asterisk-users] Having problem getting Asterisk to work on CentOS 7
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Tue Mar 14 13:18:28 CDT 2017
On Tue, Mar 14, 2017 at 05:09:17PM +0000, Dan Cropp wrote:
> Thank you Tzafrir.
>
> I had been using different users in earlier attempts to make this work. Decided to try everything where root is the only user, simply to verify it's working.
>
> For problem 2, where asterisk is writing to the log but doesn't seem to receive the SIP packets even though tcpdump indicates they are making it to the box on 5060, I am starting asterisk while logged in as root.
> /usr/sbin/asterisk -vvvvvvvvdddddddc
>
>
> For problem 1, where it seems to be stuck when running as a service, I simply reboot the machine. Then I log it as root and notice it's not writing to the log.
>
> When running it as a service (after restart). Here is what the output from strace -p $PID_OF_ASTERISK
>
> [root at localhost ~]# strace -p 1470
pkill? nice? That is not asterisk. Are you sure you got the right
process? Maybe you got safe_asterisk instead? If it is safe_asterisk:
1. That script is pointless now that you have systemd. Replace it with a
simple systemd unit (hint: Restart=on-failure gets you most of the way
there).
Isn't there one already included with Asterisk by now?
2. Use the option -f of strace to see the exact error message. What is
error status 34 of asterisk? ERANGE?
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com
More information about the asterisk-users
mailing list