Hello,
my name is Richard and I am working on OpenBSC and LCR for my university. We plan to deploy a GSM-Network on the campus for research.
We have successfully installed OpenBSC, Asterisk, LCR and mISDN. Lcr starts correctly (as far as I can say). The nanoBTS connects to OpenBSC and boot up. On the local machine, we can place outgoing calls with asterisk but when we dial from the cellphones, the lcr prints out: "layer3_thread read socket error No space left on device". I don't know if this is an error in LCR, OpenBSC, mISDN or just in my own config files.
We ran through the How-to "OpenBSC_LCR" on http://openbsc.osmocom.org/trac/wiki:
gsm is enabled in options.conf GSM interface is active in interface.conf mISDN_l1loop interfaces are created and the routing.conf looks also as described: ----------------------routing.conf (lcr)---------------------- [main] interface=GSM : remote application=asterisk context=btsctrl #interface=xyz : goto ruleset=xyz extern : goto ruleset=extern intern : goto ruleset=intern : disconnect cause=31 ------------------------------------------------------------- the rest of the file is untouched.
on the local asterisk, the chan_lcr.so is loaded.
the context btsctrl is defined is the extensions.conf: ----------------------extension.conf (asterisk)-------------- [default] exten => _0.,1,Dial(SIP/10${EXTEN}@comsys02)
[btsctrl] exten => _X.,1,Set,CALLERID(num)=5552342 exten => _X.,n,dial(SIP/10${EXTEN}@comsys02) -------------------------------------------------------------
it connects to the remote asterisk server as user comsys02, defined in sip.conf
----------------------sip.conf (asterisk)-------------------- register => comsys02:xxx@132.230.4.8/comsys02
[general] port=5060 bindaddr=0.0.0.0
[btsctrl] type=friend context=default secret=xxx host=dynamic
[comsys02] type=friend context=btsctrl username=comsys02 fromuser=comsys02 secret=xxx host=132.230.4.8 qualify=yes nat=yes -------------------------------------------------------------
now everything seems to work, but when i dial a number, it prints out: "layer3_thread read socket error No space left on device", many times per second. On the phone I hear static noise. lcradmin prints out the following:
ACTION (match) action remote line 8 EP(1): ACTION remote (setup) number 076719235 remote as* EP(1): SETUP ACKNOWLEDGE to CH(1) EP(1): TONE to CH(1) directory default name dialing EP(1): TONE to CH(1) directory default name cause_10 EP(1): DISCONNECT to CH(1) cause value=16 location=1-Lo* CH(1): MNCC_DISC_REQ LCR<-BSC port 1 progress coding=3 * CH(1): MNCC_REL_IND LCR<-BSC port 1 cause coding=0 loca* EP(1): RELEASE from CH(1) cause value=31 location=1-Loc* EP(1): ACTION hangup
and the local asterisk output is: NOTICE[10941]: chan_lcr.c:1731 handle_retry: [call=NULL ast=NULL] Retry to open socket. NOTICE[10941]: chan_lcr.c:364 send_message: [call=NULL ast=NULL] Sending MESSAGE_NEWREF to socket.
maybe someone also encountered this problem or can help us with the configuration
many thanks in advance and best regards,
richard
On 06/15/2010 08:19 PM, Richard Zahoransky wrote:
Hello,
my name is Richard and I am working on OpenBSC and LCR for my university. We plan to deploy a GSM-Network on the campus for research.
Hi,
where is that university located? I can't help with LCR but as a general hint you can use strace and at least see which filedescriptor returned that error, it might be a hint.
Have you tested the BTS with something like bsc_hack? Does this work?
Hi Richard,
On Tue, Jun 15, 2010 at 02:19:08PM +0200, Richard Zahoransky wrote:
my name is Richard and I am working on OpenBSC and LCR for my university. We plan to deploy a GSM-Network on the campus for research.
This is great news and exactly one of the reasons why we wrote OpenBSC in the first place.
We have successfully installed OpenBSC, Asterisk, LCR and mISDN. Lcr starts correctly (as far as I can say). The nanoBTS connects to OpenBSC and boot up. On the local machine, we can place outgoing calls with asterisk but when we dial from the cellphones, the lcr prints out: "layer3_thread read socket error No space left on device". I don't know if this is an error in LCR, OpenBSC, mISDN or just in my own config files.
I think rather than starting with the full setup, you should keep it simple for the beginning. Have you ever tried to run OpenBSC in stand-alone mode, i.e. not linked against lcr? Sure, you will only have a GSM island without connection to the outside world, but it is a good way to ensure that nanoBTS and OpenBSC work together as expected, and that your openbsc.cfg is correct.
Once that is working, you can move to the lcr variant, and once that works, start interfacing asterisk with it.
Regards, Harald