<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
El 15/07/10 15:15, Thermal Wetland escribi&oacute;:
<blockquote
 cite="mid:AANLkTimWEFYqQG3OIP1abkFRWb4Ya44dHvVUYiYbQ1-k@mail.gmail.com"
 type="cite">
  <pre wrap="">On Wed, Jul 14, 2010 at 11:34 PM, Tzafrir Cohen
<a class="moz-txt-link-rfc2396E" href="mailto:tzafrir.cohen@xorcom.com">&lt;tzafrir.cohen@xorcom.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">The DAHDI Makefile looks for the kernel source by default in:

&nbsp;/lib/modules/`uname -r`/build

This is normally a symlink that points to the directory with the
(possibly partial) kernel source tree.

It seems that the kernel package you have installed did not set up this
symlink. You can create it yourself.

Alternatively, set set KSRC explicitly to the (full path to) the kernel
tree:

&nbsp;make KSRC=/usr/src/&lt;whatever&gt;

--
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tzafrir Cohen
icq#16849755 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a class="moz-txt-link-abbreviated" href="mailto:jabber:tzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a>
+972-50-7952406 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a class="moz-txt-link-freetext" href="mailto:tzafrir.cohen@xorcom.com">mailto:tzafrir.cohen@xorcom.com</a>
<a class="moz-txt-link-freetext" href="http://www.xorcom.com">http://www.xorcom.com</a> &nbsp;<a class="moz-txt-link-abbreviated" href="mailto:iax:guest@local.xorcom.com/tzafrir">iax:guest@local.xorcom.com/tzafrir</a>
    </pre>
  </blockquote>
  <pre wrap="">
Creating the link was the answer!  Even when I installed the RPM the
link in /lib/modules was not created.

After make all, make install, and make config DAHDI will not start.
in the /drivers/dahdi folder I only have dahdi_dummy.c
All the other files have .ko .mod.c .o etc
Is this related?

[root@ip-97-74-119-59 dahdi-linux-complete-2.3.0.1+2.3.0]# dahdi_cfg -vvvvv
DAHDI Tools Version - 2.3.0
Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device '/dev/dahdi/ctl'

1 error(s) detected

The only warning I see is "WARNING: could not find
/usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_32.o.cmd
for /usr/src/asterisk/dahdi-linux-complete-2.3.0.1+2.3.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o"

Does that ring a bell with any one?

  </pre>
</blockquote>
I experienced the same issue, and googling about this, on some openvz
documentation they are clear: for security you can't enable kernel
modules in an openVZ VPS (you can't even do a lsmod, it shows nothing),
the only way I could use DAHDI timing in my case for asterisk inside a
VPS, was to install DAHDI in the HN (Hardware Node) and share it using
this config settings:<br>
<br>
<span class="MsgBodyText">
<pre>vzctl set 101 --devnodes 'dahdi/pseudo:rw dahdi/channel:rw dahdi/timer:rw dahdi/ctl:rw' --save</pre>
</span>Where 101 is your CTID (container ID). <br>
<br>
Look at <a class="moz-txt-link-freetext" href="http://forum.openvz.org/index.php?t=msg&amp;goto=37706&amp;">http://forum.openvz.org/index.php?t=msg&amp;goto=37706&amp;</a><br>
<br>
That way I made it! Now I have a single DAHDI instance in the HN shared
into two VPS, and dahdi_cfg and dahdi_test works great:<br>
<br>
[root@virtual1_ast1 ~]# dahdi_test<br>
Opened pseudo dahdi interface, measuring accuracy...<br>
99.951% 99.641% 99.572% 99.604% 99.671% 99.972% 99.979% 99.991% <br>
--- Results after 8 passes ---<br>
Best: 99.991 -- Worst: 99.572 -- Average: 99.797645, Difference:
99.998742<br>
<br>
The DAHDI timing is used without issue by asterisk:<br>
<br>
virtual1_ast1*CLI&gt; module show like timing<br>
Module&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Use Count <br>
res_timing_dahdi.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DAHDI Timing Interface&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
484&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
res_timing_pthread.so&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pthread Timing Interface&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
0 <br>
<small><br>
virtual1_ast1*CLI&gt; timing test <br>
Attempting to test a timer with 50 ticks per second.<br>
Using the 'DAHDI' timing module for this test.<br>
It has been 1016 milliseconds, and we got 51 timer ticks<br>
<br>
<br>
</small>My goal was to provide DAHDI timing to asterisk inside a VPS. I
don't know if having a TDM card in the HN configured with DAHDI it can
be shared so a VPS can access it and then you could receive PRI calls
or something directly into a VPS, or better, split channel groups
between VPS.<br>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">-- 
Ing. Miguel Molina
Grupo de Tecnolog&iacute;a
Millenium Phone Center 
</pre>
</body>
</html>