<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thank you Jean.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I changed selinux to permissive in the /etc/selinux/config and restarted.  Asterisk was able to start up.  One oddity though, I now see two different pids for asterisk (pgrep asterisk).  Is this to be expected
 or do I still have something wrong?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">For my second issue, after stopping firewalld, SIP traffic is now making it through to Asterisk.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I need to research both selinux and firewalld some more.  They are both new to me.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Have a great day!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Dan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]
<b>On Behalf Of </b>Jean Aunis<br>
<b>Sent:</b> Tuesday, March 14, 2017 12:04 PM<br>
<b>To:</b> asterisk-users@lists.digium.com<br>
<b>Subject:</b> Re: [asterisk-users] Having problem getting Asterisk to work on CentOS 7<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<o:p></o:p></p>
<p>Did you disable selinux ? It usually causes troubles when starting asterisk as a service. You can do this with :
<tt><span style="font-size:10.0pt">setenforce 0</span></tt> (this will not totally disable selinux, but switch it to a permissive mode).<o:p></o:p></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.<o:p></o:p></p>
<p>Best regards<o:p></o:p></p>
<p>Jean Aunis<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Le 14/03/2017 à 17:45, Dan Cropp a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<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 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>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><br>
<br>
<o:p></o:p></span></p>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p> </o:p></span></p>
</div>
</body>
</html>