On Thu, Feb 9, 2012 at 10:21 PM, Lennart Müller <mueller.lennart@googlemail.com> wrote:
Hi,

2012/2/10 Don Fanning <don@00100100.net>
Hello All,

After some trials and tribulations, I think I got my OpenBSC+LCR+Asterisk compiles and working.  The MS connects once I spoof the proper MCC/MNC for the foreign SIM I have (to ensure that no one else can connect within my area).
 
That does not completely prevent somebody from trying to connect to your network. Using the common test equipment id and manually selecting the network in your phone is also possible and I think much better than sending out any operator MCC/MNC (apart from using an RF attentuator).
 
Then when I try to make a test call to an asterisk extension, it give me the following:
...

Thu Feb  9 18:55:58 2012 <0002> gsm_04_08.c:858 <- CM SERVICE REQUEST serv_type=0x01 mi_type=0x04 M(210271915)
Thu Feb  9 18:55:58 2012 <0002> gsm_04_08.c:800 -> CM SERVICE Reject cause: 2
... 

This code triggers the reject:

    if (!subscr)
        return gsm48_tx_mm_serv_rej(conn,
                        GSM48_REJECT_IMSI_UNKNOWN_IN_HLR);

So, have you inserted your IMSI into your OpenBSC HLR (sqlite database)?
 
-- Lennart

Doh!

Ok.. got the handset registered, it's working fine.  Now an LCR question:

I'm currently getting a voice error message "There is no extension created for your MSN number" followed by a SIT tone.

Below is the log from LCR.  
09.02.12 23:30:42.542 CH(7): MT_NEW_L3ID INDICATION  port 1  callref new=0x80000007
09.02.12 23:30:42.543 CH(7): CHANNEL SELECTION (setup)  port 1  channel reserved=0  conclusion 'channel available'  connect channel=1
09.02.12 23:30:42.543 CH(7): BCHANNEL create socket  port 1  channel 1  socket 15
09.02.12 23:30:42.543 CH(7): BCHANNEL activate  port 1  channel 1
09.02.12 23:30:42.543 CH(7): MNCC_SETUP_IND LCR<->BSC  port 1  calling number=40515 imsi=xxxxx dialing number=500
09.02.12 23:30:42.543 CH(7): unknown LCR<->BSC  port 1  mode 0x01
09.02.12 23:30:42.543 CH(7): MNCC_CALL_PROC_REQ LCR<->BSC  port 1  progress coding=3 location=1 descr=8
09.02.12 23:30:42.543 CH(7): unknown LCR<->BSC  port 1
09.02.12 23:30:42.544 EP(7): SETUP  from CH(7)  caller id number=40515 present=allowed  dialing 500  complete true
09.02.12 23:30:42.544 --: SCREEN (not found in MSN list)  msn given=40515 used=1234567
09.02.12 23:30:42.544 --: SCREEN (not found in MSN list)  msn given= used=1234567
09.02.12 23:30:42.544 EP(7): EXTENSION (not created)  extension 1234567
09.02.12 23:30:42.544 EP(7): DISCONNECT  to CH(7)  cause value=21 location=1-Local-PBX
09.02.12 23:30:42.544 EP(7): TONE  to CH(7)  directory default  name cause_80
09.02.12 23:30:42.544 CH(7): MNCC_DISC_REQ LCR<->BSC  port 1  progress coding=3 location=1 descr=8  cause coding=3 location=1 value=21
09.02.12 23:30:42.545 CH(7): BCHANNEL control  port 1  DSP-DTMF 1
09.02.12 23:30:52.751 CH(7): MNCC_REL_IND LCR<->BSC  port 1
09.02.12 23:30:52.752 EP(7): RELEASE  from CH(7)  cause value=16 location=0-User
09.02.12 23:30:52.752 CH(7): BCHANNEL deactivate  port 1  channel 1
09.02.12 23:30:52.752 CH: BCHANNEL remove socket  port 1  channel 1  socket 15

So my next question is how do I create an extension for the mobile and link it to asterisk?  Is there a way for LCR to automatically generate extensions?

Thank you again!
-Don