<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2166/18/9/_/styles/combined.css?spaceKey=AST&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=18415795#comment-18415795">Asterisk Packages</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://wiki.asterisk.org/wiki/display/~roxy">herman</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>restart asterisk not really possible: </p>

<p>sudo /etc/init.d/asterisk restart<br/>
Stopping Asterisk PBX: asteriskstart-stop-daemon: unrecognized option '--retry=0/2/TERM/2/KILL/5'<br/>
Try `start-stop-daemon --help' for more information.</p>

<p>(but see bottom) for startup response.</p>



<p>after again purge and reinstall again now astdb seems to be installed, but still none of the asterisk  modules - where are they normally installed ? apparently not in /usr/lib/asterisk/modules - as it does not exist </p>

<p>herman@ubuntu-1004:/usr/lib$ ls -la /var/lib/asterisk/astdb<br/>
<del>rw-r</del><del>r</del>- 1 root root 0 2011-08-26 15:41 /var/lib/asterisk/astdb</p>

<p>so that's ok now<br/>
but then themissing modules: </p>

<p>herman@ubuntu-1004:/usr/lib$ ls -la /usr/lib/asterisk/modules<br/>
ls: cannot access /usr/lib/asterisk/modules: No such file or directory</p>



<p>starting asterisk after installing my original config in /etc/asterisk  gives the following result:</p>


<p><span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<span class="error">&#91;7494&#93;</span>: ccss.c:4108 initialize_cc_max_requests: Could not find valid ccss.conf file. Using cc_max_requests default<br/>
 Asterisk Dynamic Loader Starting:<br/>
  == Parsing '/etc/asterisk/modules.conf':   == Found<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<span class="error">&#91;7494&#93;</span>: loader.c:1093 load_modules: Unable to open modules directory '/usr/lib/asterisk/modules'.<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> NOTICE<span class="error">&#91;7494&#93;</span>: loader.c:1124 load_modules: 1 modules will be loaded.<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<span class="error">&#91;7494&#93;</span>: loader.c:393 load_dynamic_module: Error loading module 'res_musiconhold.so': /usr/lib/asterisk/modules/res_musiconhold.so: cannot open shared object file: No such file or directory<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<span class="error">&#91;7494&#93;</span>: loader.c:393 load_dynamic_module: Error loading module 'res_musiconhold.so': /usr/lib/asterisk/modules/res_musiconhold.so: cannot open shared object file: No such file or directory<br/>
<span class="error">&#91;Sep 14 15:22:04&#93;</span> WARNING<span class="error">&#91;7494&#93;</span>: loader.c:845 load_resource: Module 'res_musiconhold.so' could not be loaded.<br/>
  == Parsing '/etc/asterisk/cli_permissions.conf':   == Found<br/>
Asterisk Ready.<br/>
  == Parsing '/etc/asterisk/cli.conf':   == Found</p>

    </div>

                <div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
        <strong>In reply to a comment by <a href="/wiki/display/~pabelanger"
                          class="url fn confluence-userlink" data-username="pabelanger"
                   >Paul Belanger</a>:</strong><br/>
        <p>Something is wrong with your setup, that is for sure.  What happens when you do:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="theme: Confluence; brush: java; gutter: false"><![CDATA[$ sudo /etc/init.d/asterisk restart]]></script>
</div></div>

<p>Also, what is the output of:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<script type="syntaxhighlighter" class="theme: Confluence; brush: java; gutter: false"><![CDATA[$ ls -la /var/lib/asterisk/astdb]]></script>
</div></div>
        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
      <div style="float: right;" class="grey">
                        <a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
            <span style="padding: 0px 5px;">|</span>
                <a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
       <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?focusedCommentId=18415795#comment-18415795">View Online</a>
              |
       <a id="reply-18415795" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages?replyToComment=18415795#comment-18415795">Reply To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>