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@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:[email protected]
+972-50-7952406           mailto:[email protected]
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

Reply via email to