<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Please disregard this post! I found issue, wonder if there is more elegant solution. I had to disable SELinux. Is it good idea?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 22, 2015, at 9:56 PM, Ivan Demkovitch <<a href="mailto:idemkovitch@yahoo.com" class="">idemkovitch@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello list!<div class=""><br class=""></div><div style="font-size: 14px;" class="">I’m working on a fresh Asterisk install over CentOS7 base. I’m using “Asterisk. The Definite guide” book as a reference.</div><div style="font-size: 14px;" class="">I connect and work using SSH</div><div style="font-size: 14px;" class=""><br class=""></div><div style="font-size: 14px;" class="">Problem I have - I can’t connect to asterisk from remote. Getting error:</div><div style="font-size: 14px;" class=""><div style="margin: 0px; font-size: 17px; font-family: Menlo;" class="">$ sudo asterisk -rvvvvvv</div></div><div class=""><div style="margin: 0px;" class=""><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">Yes, it exist, and service runs:</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class=""><br class=""></div><div style="margin: 0px;" class=""><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">[asteriskpbx@localhost asterisk]$ service --status-all</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">asterisk.service - LSB: Asterisk PBX</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">   Loaded: loaded (/etc/rc.d/init.d/asterisk)</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">   Active: <span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class=""><b class="">active (running)</b></span> since Sun 2015-03-22 21:04:22 CDT; 23min ago</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">  Process: 1615 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=0/SUCCESS)</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class=""> Main PID: 2931</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">   CGroup: /system.slice/asterisk.service</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">           ├─ 2924 /bin/sh /usr/sbin/safe_asterisk</div><div style="font-family: Menlo; font-size: 17px; margin: 0px;" class="">           └─88248 sleep 4</div><div style="font-family: Menlo; font-size: 17px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 17px;" class="">If I start using -c - there is some warnings, but I don’t think it’s a problem?</div><div style="font-family: Menlo; font-size: 17px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 17px;" class=""><div style="margin: 0px; color: rgb(203, 203, 203);" class="">Running as user 'asteriskpbx'</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">Running under group 'asteriskpbx'</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">[ Initializing Custom Configuration Options ]</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">XSLT support not found. XML documentation may be incomplete.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">CDR simple logging enabled.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">178 modules will be loaded.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">No configured users for ARI</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">Error loading module 'res_ari_mailboxes.so': /usr/lib64/asterisk/modules/res_ari_mailboxes.so: undefined symbol: stasis_app_mailbox_to_json</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">Module 'res_ari_mailboxes.so' could not be loaded.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from the  global setting can make</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! will be sent to a different port than replies for an existing peer/user. If at all possible,</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! use the global 'nat' setting and do not set 'nat' per peer/user.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! (config category='0000FFFF0001' global force_rport='No' peer/user force_rport='Yes')</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! PLEASE NOTE: Setting 'nat' for a peer/user that differs from the  global setting can make</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! the name of that peer/user discoverable by an attacker. Replies for non-existent peers/users</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! will be sent to a different port than replies for an existing peer/user. If at all possible,</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! use the global 'nat' setting and do not set 'nat' per peer/user.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">!!! (config category='0000FFFF0002' global force_rport='No' peer/user force_rport='Yes')</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">SIP channel loading...</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">No IAX provisioning configuration found, IAX provisioning disabled.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">Adding default_menu menu to app_confbridge</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">Failed to load configuration file. Module not activated.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.</div><div style="margin: 0px; color: rgb(203, 203, 203);" class="">Failed to load configuration file.</div><div style="margin: 0px; color: rgb(52, 189, 38);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #cbcbcb" class="">*CLI> </span><b class="">Asterisk Ready.</b></div></div><div style="font-family: Menlo; font-size: 17px;" class=""><b class=""><br class=""></b></div><div class=""><b class=""><font face="Menlo" class=""><span style="font-size: 17px;" class="">Another thing, everywhere in doc’s and references I see that I can use “exit” on CLI. If I try to type “exit” - it says there is no such command.</span></font></b></div><div class=""><b class=""><font face="Menlo" class=""><span style="font-size: 17px;" class=""><br class=""></span></font></b></div><div class=""><b class=""><font face="Menlo" class=""><span style="font-size: 17px;" class="">Please pardon me, I’m new to both Linux and Asterisk, trying to learn from beginning..</span></font></b></div><div class=""><b class=""><font face="Menlo" class=""><span style="font-size: 17px;" class=""><br class=""></span></font></b></div></div></div></div></div></div></blockquote></div><br class=""></div></body></html>