[chan-capi-users] chan_capi problem with Gerdes Primux ISDN board

Tamer Higazi th982a at googlemail.com
Thu Feb 25 18:51:32 CET 2010


Hi Michael,
Thanks for your answer. could you please tell me how to accomplish
this?! Or better, which parts in the Makefile will I have to change at all?

If I open the Makefile I see:

ifeq (${USE_OWN_LIBCAPI},yes)
INCLUDE= -I./libcapi20
LIBLINUX=
else
INCLUDE=
LIBLINUX=-lcapi20
endif

what could be liblinux? And the other thing is, the include part. The
gerdes include header files aren't available.

Here is the primux directory:

tamer at tux /usr/lib/primux $ ls -lA /usr/lib/primux/
insgesamt 11852
drwxr-xr-x 5 root root    4096 11. Feb 21:56 backup
drwxr-xr-x 3 root root    4096 11. Feb 21:56 build
-rw-r--r-- 1 root root   38164 15. Jul 2009  capicfg.pot
-rwxr-xr-x 1 root root 1666948 20. Jul 2009  ccapicfg
-rwxr-xr-x 1 root root 1712256 20. Jul 2009  crmtconfig
-rwxr-xr-x 1 root root 2041412 20. Jul 2009  ctracer
drwxr-xr-x 2 root root    4096 11. Feb 21:56 de
drwxr-xr-x 2 root root    4096 11. Feb 21:56 driver
drwxr-xr-x 2 root root    4096 11. Feb 21:56 en
-rwxr-xr-x 1 root root  128413 30. Apr 2009  libcapi20_64.so.2
-rwxr-xr-x 1 root root  128789 30. Apr 2009  libcapi20_64.so.3
-rwxr-xr-x 1 root root  110147 30. Apr 2009  libcapi20.so.2
-rwxr-xr-x 1 root root  110331 30. Apr 2009  libcapi20.so.3
-rwxr-xr-x 1 root root  170960 17. Jan 2007  libgcc_s.so.1
-rwxr-xr-x 1 root root 2349562 17. Jan 2007  libstdc++.so.6
-rwxr-xr-x 1 root root 1880208 20. Jul 2009  rmtcapi
-rw-r--r-- 1 root root     968 15. Jan 2009  rmtcapi.pot
-rw-r--r-- 1 root root    1534  4. Dez 2008  rmtconfig.pot
-rwxr-xr-x 1 root root     444 11. Feb 21:56 runcapi.rc
-rw-r--r-- 1 root root    8169 17. Jun 2009  tracer.pot
-rwxr-xr-x 1 root root 1687736 11. Feb 21:56 uninstall
tamer at tux /usr/lib/primux $



and build gives me this:

tamer at tux /tmp/chan-capi-trunk $ ls -lA /usr/lib/primux/build/
insgesamt 10116
-rw-r--r-- 1 root root    2320 14. Nov 2008  capi20.h
-rw-r--r-- 1 root root    5410 20. Jul 2006  capicmd.h
-rw-r--r-- 1 root root   53984 14. Nov 2008  capiutils.h
-rw-r--r-- 1 root root 3332602 20. Jul 2009  lcapibase.o
-rw-r--r-- 1 root root 3350718 11. Feb 21:56 lcapi.ko
-rw-r--r-- 1 root root     176 11. Feb 21:56 .lcapi.ko.cmd
-rw-r--r-- 1 root root    3571 11. Feb 21:56 lcapi.mod.c
-rw-r--r-- 1 root root    7744 11. Feb 21:56 lcapi.mod.o
-rw-r--r-- 1 root root   18552 11. Feb 21:56 .lcapi.mod.o.cmd
-rw-r--r-- 1 root root 3343932 11. Feb 21:56 lcapi.o
-rw-r--r-- 1 root root     164 11. Feb 21:56 .lcapi.o.cmd
-rw-r--r-- 1 root root   85682 13. Jul 2009  linux.c
-rw-r--r-- 1 root root   10987 20. Mai 2009  linux.h
-rw-r--r-- 1 root root   44456 11. Feb 21:56 linux.o
-rw-r--r-- 1 root root   31081 11. Feb 21:56 .linux.o.cmd
-rwxr-xr-x 1 root root     327 11. Feb 21:56 Makefile
-rw-r--r-- 1 root root      40 11. Feb 21:56 modules.order
-rw-r--r-- 1 root root     154 11. Feb 21:56 Module.symvers
drwxr-xr-x 2 root root    4096 11. Feb 21:56 .tmp_versions
tamer at tux /tmp/chan-capi-trunk $

However I tried with several libcapi files by setting:

LIBLINUX=/usr/lib/primux/libcapi20_64.so.2

and ones

LIBLINUX=/usr/lib/primux/libcapi20_64.so.2

which gives me always the same result of "segementation fault"

for any further ideas, I would thank you


Tamer


Michael Kakuschky schrieb:
> Hello Tamer,
>
> yes maybe I have an idea. The capi header files from Gerdes differ in 
> some points from the ones written by AVM which are the common capi 
> header files on linux systems.
>
> There are some parts inside which are not part of the capi 2.0 specs. If 
> I rember right there is a difference in a parameter list order.
>
> So, if you want to link against the Gerdes libcapi you have to use the 
> Gerdes capi header files.
>
> It's long time ago that i figure out that and maybe it's also the reason 
> for your problems.
>
> Regards Michael
>
> Am 25.02.2010 15:26, schrieb Tamer Higazi:
>   
>> Hi people!
>> I have a primux isdn 1 Port ISDN board and I do have figured out that I
>> have always an echo during the conversation.
>>
>> Now, I figured out by building chan_capi, chan_capi uses it's own
>> libcapi drivers, what might be the problem, instead of the drivers
>> delivered from the card producer.
>>
>> I built chan_capi with the command:
>>
>> make USE_OWN_LIBCAPI=no
>>
>> with the hope to use the drivers which had been delivered together with
>> the board. But asterisk won't start and tells me on the console:
>>
>> Segmentation Fault.
>>
>>
>> Any ideas, what might be the problem?
>>
>>
>>
>> Tamer
>> _______________________________________________
>> Chan-capi-users mailing list
>> Chan-capi-users at lists.melware.net
>> http://lists.melware.net/mailman/listinfo/chan-capi-users
>>
>>    
>>     
> _______________________________________________
> Chan-capi-users mailing list
> Chan-capi-users at lists.melware.net
> http://lists.melware.net/mailman/listinfo/chan-capi-users
>   



More information about the Chan-capi-users mailing list