<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/en/2176/25/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+Module+Support+States?focusedCommentId=22088098#comment-22088098">Asterisk Module Support States</a></h2>
    <h4>Comment edited by             <a href="https://wiki.asterisk.org/wiki/display/~kwallace">Kinnith Wallace</a>
     :</h4>
    <br/>
                        <h4>Changes (1)</h4>
                                
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-changed-lines" >Besides the &quot;{{make menuselect}}&quot; menus themselves, here&#39;s a <span class="diff-changed-words">quick<span class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">, fairly portable \[1\]</span></span> way <span class="diff-added-words"style="background-color: #dfd;">\[1\]</span> to list the support levels for various Asterisk loadable modules \[2\] from the {{.c}} source files \[3\]: <br></td></tr>
            <tr><td class="diff-unchanged" > <br>{{/usr/src/asterisk-X.X.X # grep -irP &#39;^\t&lt;support_level&gt;&#39; $(find . -name &#39;*.c&#39;) | sed -re &#39;s#&lt;/?support_level&gt;##g&#39; | sort &gt; module-support-states.txt}} <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                          <div class="notificationGreySide">
            <p>Besides the "<tt>make menuselect</tt>" menus themselves, here's a quick way [1] to list the support levels for various Asterisk loadable modules [2] from the <tt>.c</tt> source files [3]:</p>

<p><tt>/usr/src/asterisk-X.X.X # grep -irP '^\t&lt;support_level&gt;' $(find . -name '*.c') | sed -re 's#&lt;/?support_level&gt;##g' | sort &gt; module-support-states.txt</tt></p>

<p>NOTES (pedantic)<br/>
[1] This may not be POSIXly correct. It works with Bash and GNU <tt>grep</tt>, <tt>find</tt>, <tt>sed</tt>, and <tt>sort</tt>. Ymmv.<br/>
[2] This excludes other Asterisk components such as <tt>AGI Samples</tt> and <tt>Utilities</tt>.<br/>
[3] This assumes that a module's support state will not differ based on menuselect options for other modules.</p>
        </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+Module+Support+States?focusedCommentId=22088098#comment-22088098">View Online</a>
              |
       <a id="reply-22088098" href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+Module+Support+States?replyToComment=22088098#comment-22088098">Reply To This</a>
           </div>

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