<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/2042/1/7/_/styles/combined.css?spaceKey=AST&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">Asterisk Packages</a></h2>
<h4>Comment <b>removed</b> by <a href="https://wiki.asterisk.org/wiki/display/~lmadsen">Leif Madsen</a>
</h4>
<br/>
<div class="notificationGreySide">
<p>I installed it to Amazon EC2 with Ubuntu 10.04 LTS server AMI. Asterisk-1.8 was installed fine, but asterisk-dahdi failed with:</p>
<p>Setting up dahdi-dkms (1:2.2.1+dfsg-1ubuntu2) ...<br/>
Loading new dahdi-2.2.1+dfsg-1ubuntu2 DKMS files...<br/>
First Installation: checking all kernels...<br/>
Building only for 2.6.32-312-ec2<br/>
Building for architecture i686<br/>
Module build for the currently running kernel was skipped since the<br/>
kernel source for this kernel does not seem to be installed.</p>
<p>The fix was to get the correct linux-headers for the current kernel first:</p>
<p>sudo apt-get remove asterisk-dahdi<br/>
sudo apt-get remove dahdi-dkms<br/>
sudo apt-get install linux-headers-`uname -r`<br/>
sudo apt-get install dahdi-dkms<br/>
sudo apt-get install asterisk-dahdi</p>
<p>It took a while to build the modules.</p>
<p>After that, it works great with micro instance(get elastic IP and set externaddr= and nat= in sip.conf)</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;">
<a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>