<div dir="ltr"><br><br><div class="gmail_quote">On Thu, Feb 9, 2012 at 10:21 PM, Lennart Müller <span dir="ltr"><<a href="mailto:mueller.lennart@googlemail.com">mueller.lennart@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi, <br><br><div class="gmail_quote"><div class="im">2012/2/10 Don Fanning <span dir="ltr"><<a href="mailto:don@00100100.net" target="_blank">don@00100100.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">Hello All,<div><br></div><div>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).</div>


</div></blockquote><div> </div></div><div>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).<br>


 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="im"><div>Then when I try to make a test call to an asterisk extension, it give me the following:</div>


</div><div>...<div class="im"><br><div>Thu Feb  9 18:55:58 2012 <0002> gsm_04_08.c:858 <- CM SERVICE REQUEST serv_type=0x01 mi_type=0x04 M(210271915)</div>

<div><span style="background-color:rgb(255,255,0)">Thu Feb  9 18:55:58 2012 <0002> gsm_04_08.c:800 -> CM SERVICE Reject cause: 2</span> <br></div></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


<div><div><div>... </div></div></div></blockquote><div><br>This code triggers the reject:<br><br>    if (!subscr)<br>        return gsm48_tx_mm_serv_rej(conn,<br>                        GSM48_REJECT_IMSI_UNKNOWN_IN_HLR);<br>


<br>So, have you inserted your IMSI into your OpenBSC HLR (sqlite database)?<br> </div></div><font color="#888888">-- Lennart<br>
</font></blockquote></div><div><br></div>Doh!<div><br></div><div>Ok.. got the handset registered, it's working fine.  Now an LCR question:</div><div><br></div><div>I'm currently getting a voice error message "There is no extension created for your MSN number" followed by a SIT tone.</div>

<div><br></div><div>Below is the log from LCR.  </div><div><div>09.02.12 23:30:42.542 CH(7): MT_NEW_L3ID INDICATION  port 1  callref new=0x80000007</div><div>09.02.12 23:30:42.543 CH(7): CHANNEL SELECTION (setup)  port 1  channel reserved=0  conclusion 'channel available'  connect channel=1</div>

<div>09.02.12 23:30:42.543 CH(7): BCHANNEL create socket  port 1  channel 1  socket 15</div><div>09.02.12 23:30:42.543 CH(7): BCHANNEL activate  port 1  channel 1</div><div>09.02.12 23:30:42.543 CH(7): MNCC_SETUP_IND LCR<->BSC  port 1  calling number=40515 imsi=xxxxx dialing number=500</div>

<div>09.02.12 23:30:42.543 CH(7): unknown LCR<->BSC  port 1  mode 0x01</div><div>09.02.12 23:30:42.543 CH(7): MNCC_CALL_PROC_REQ LCR<->BSC  port 1  progress coding=3 location=1 descr=8</div><div>09.02.12 23:30:42.543 CH(7): unknown LCR<->BSC  port 1</div>

<div>09.02.12 23:30:42.544 EP(7): SETUP  from CH(7)  caller id number=40515 present=allowed  dialing 500  complete true</div><div>09.02.12 23:30:42.544 --: SCREEN (not found in MSN list)  msn given=40515 used=1234567</div>

<div>09.02.12 23:30:42.544 --: SCREEN (not found in MSN list)  msn given= used=1234567</div><div>09.02.12 23:30:42.544 EP(7): EXTENSION (not created)  extension 1234567</div><div>09.02.12 23:30:42.544 EP(7): DISCONNECT  to CH(7)  cause value=21 location=1-Local-PBX</div>

<div>09.02.12 23:30:42.544 EP(7): TONE  to CH(7)  directory default  name cause_80</div><div>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</div>

<div>09.02.12 23:30:42.545 CH(7): BCHANNEL control  port 1  DSP-DTMF 1</div><div>09.02.12 23:30:52.751 CH(7): MNCC_REL_IND LCR<->BSC  port 1</div><div>09.02.12 23:30:52.752 EP(7): RELEASE  from CH(7)  cause value=16 location=0-User</div>

<div>09.02.12 23:30:52.752 CH(7): BCHANNEL deactivate  port 1  channel 1</div><div>09.02.12 23:30:52.752 CH: BCHANNEL remove socket  port 1  channel 1  socket 15</div></div><div><br></div><div>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?</div>

<div><br></div><div>Thank you again!</div><div>-Don</div><div><br></div></div>