Am Wed, 7 Jul 2010 15:53:27 +0200 schrieb "Andreas.Eversberg" <Andreas.Eversberg@versatel.de>:
it seems that there is a change in the API. therefore i prepared a "snapshot" at www.linux-call-router.de to be downloaded. this version of openbsc and lcr is older, but works together. as soon as the current openbsc has been tested more (channel ressource handling has changed for example), i will make it work again.
regards,
andreas
#0 0x0805b009 in gsm0408_rcvmsg (msg=0x864ffb8, link_id=0 '\0') at openbsc/src/bsc_api.c:111 111 rc = api->compl_l3(lchan->conn, msg, 0);
The problem seems to be the variable api, which is NULL.
(gdb) print api $1 = (struct bsc_api *) 0x0
Hi, List and Andreas! Today I debugged your program and I found the problem. OpenBSC, in his main(), initializes the struct bsc_api, but LCR does NOT make it! I wrote a patch. Here is it! Now it is possible to compile the last version of OpenBSC and LCR (from git) and to get them together working. Besides, the HowTo at http://openbsc.osmocom.org/trac/wiki/OpenBSC_LCR is for a OLD version of Asterisk and LCR/OpenBSC. 1) It is not necessary to change Makefile.am and gsm_audio.c 2) The option for configure is no more --with-gsm but --with-gsm-bs 3) In extensions.conf the right syntax is: [btsctrl] exten => _X.,1,Set,CALLERID(num)=5552342 exten => _X.,n,Dial(LCR/GSM/${EXTEN},120) I hope, this will help someone other trying to get OpenBSC and Asterisk working together! Regards -- _______________________________________________________________________ Luca Bertoncello Entwicklung Mail: bertoncello@netzing.de NETZING Solutions AG Tel.: 0351/41381 - 0 Kesselsdorfer Str. 216, 01169 Dresden Fax: 0351/41381 - 12 HRB 18926 / Ust.ID DE211326547 Mail: netzing.ag@netzing.de _______________________________________________________________________