<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>Did you disable selinux ? It usually causes troubles when
starting asterisk as a service. You can do this with : <tt>setenforce
0</tt> (this will not totally disable selinux, but switch it to
a permissive mode).</p>
<p>For your second point, maybe you should check that firewalld is
either stopped or configured properly. By default it has quite
restrictive rules.</p>
<p>Best regards</p>
<p>Jean Aunis<br>
</p>
<br>
<div class="moz-cite-prefix">Le 14/03/2017 à 17:45, Dan Cropp a
écrit :<br>
</div>
<blockquote
cite="mid:41223E927281D842A48CC18032B36CC30118FBE15E@mail2010c.amtelco.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Some background information.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have used Debian with Asterisk for
several years. Have encountered zero problems.<o:p></o:p></p>
<p class="MsoNormal">I am now trying to setup an Asterisk on a
CentOS7 box using VMWare Workstation. I am brand new to
CentOS and RHEL so I may be missing something obvious.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am installing CentOS Minimal Install and
Asterisk from Source. (I have installed Asterisk from Source
on Debian hundreds of times without any problems).<o:p></o:p></p>
<p class="MsoNormal">After installing CentOS (only root user), I
update CentOS. I then install the CentOS “Development Tools”.<o:p></o:p></p>
<p class="MsoNormal">Also install, I install net-tools and wget.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After that, I am following the Wiki pages
for Asterisk from Source.<o:p></o:p></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source">https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source</a><o:p></o:p></p>
<p class="MsoNormal">Retrieve the asterisk-13-current.tar.gz and
the pjproject-2.6.tar.bz2<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I uncompress them, run the asterisk
install_prereq script to install all required packages.<o:p></o:p></p>
<p class="MsoNormal">I configure PJPROJECT, make dep, make, make
install, and ldconfig<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After that, I install asterisk<o:p></o:p></p>
<p class="MsoNormal">./configure<o:p></o:p></p>
<p class="MsoNormal">make menuselect<o:p></o:p></p>
<p class="MsoNormal">make<o:p></o:p></p>
<p class="MsoNormal">make install<o:p></o:p></p>
<p class="MsoNormal">make samples<o:p></o:p></p>
<p class="MsoNormal">make progdocs<o:p></o:p></p>
<p class="MsoNormal">make config<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">After that, I modify the asterisk conf
files for a couple pjsip endpoints and turn on debugging and
verbosity. Copying settings from another box which is
working.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am seeing two different issues….<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">First, when I restart the box, the asterisk
process is present. However, it’s not writing anything to the
log files so it seems to be stuck. Any idea why running
Asterisk as a service after the make config would not seem to
fully start up?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Second, I stop the asterisk service. Make
sure asterisk process is not present. Then, I start it up
manually going to the console. Everything is running. I see
information written to the asterisk log files. However, I try
to connect phones to this and it does not work. I used
tcpdump to verify the SIP packets are making it to the CentOS
box, however Asterisk is not seeing the SIP messages. <o:p></o:p></p>
<p class="MsoNormal">I run netstat -apn | grep -i asterisk and
see Asterisk udp with port 5060.<o:p></o:p></p>
<p class="MsoNormal">The one thing I notice is my Debian
installations have always been eth0. CentOS is using the
newer ens33. Might this cause a proble?<o:p></o:p></p>
<p class="MsoNormal">Any suggestions?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Have a great day!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dan<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>