Changes between Version 25 and Version 26 of OpenBTS


Ignore:
Timestamp:
Oct 13, 2015, 8:27:46 AM (9 years ago)
Author:
davemsolomon
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • OpenBTS

    v25 v26  
    194194}}}
    195195
    196 At this point we can most likely prove text messaging works, let's add a subscriber to our tiny GSM network.
     196Let's add a subscriber to our tiny GSM network.
    197197
    198198We need the IMEI of the phone you are using, your phone can tell you it's IMEI when you dial a special code.
     
    203203If your phone is on and OpenBTS is running then by now your Phone and OpenBTS have most likely seen each other. Since we are using a SIM card we did not create we do not know anything about the encryption keys that were used when the SIM Card was created. Our tiny GSM network won't be encrypted but setting up subscribers will be easy. We can tell OpenBTS to give us a list of every IMEI (International Mobile Equipment Identity) and IMSI (International Mobile Subscriber Identity) it has seen, we will need the IMSI of our Test Phone so that we can tell OpenBTS to authorize the phone to use our GSM network. 
    204204
     205We will run the tmsis command inside the OpenBTS CLI in order to get a listing of IMEI and IMSI's.
     206
     207{{{
     208root@node1-1:~/dev/BUILDS/2015-10-13--03-22-27# cd /OpenBTS/
     209root@node1-1:/OpenBTS# ./OpenBTSCLI
     210OpenBTS Command Line Interface (CLI) utility
     211Copyright 2012, 2013, 2014 Range Networks, Inc.
     212Licensed under GPLv2.
     213Includes libreadline, GPLv2.
     214Connecting to 127.0.0.1:49300...
     215Remote Interface Ready.
     216Type:
     217 "help" to see commands,
     218 "version" for version information,
     219 "notices" for licensing information,
     220 "quit" to exit console interface.
     221OpenBTS> tmsis
     222IMSI TMSI IMEI AUTH CREATED ACCESSED TMSI_ASSIGNED
     223310410762747144 -    357507061173160 1    25m     19s      0
     224310410629684240 -    013441007348570 0    12m     12m      0
     225732111141359282 -    013594001284780 0    17m     17m      0
     226425010300522982 -    357507061982450 0    24m     24m      0
     227}}}
     228
     229The IMEI is a match even if the last digit doesn't match. Let's say I typed in *#06# on my phone and got back 357507061982456, I could conclude that 357507061982450 is a match, now I would need to grab the IMSI, the IMSI in the table above for my IMEI is 425010300522982. The IMSI is required when configuring subscribers.
     230
     231Let's add our test subscriber phone and assign it the phone number 2165554444:
     232{{{
     233root@node1-1:/OpenBTS# cd ~/dev/NodeManager/
     234./nmcli.py sipauthserve subscribers create "orangesim" IMSI425010300522982 2165554444
     235
     236root@node1-1:~/dev/NodeManager# ./nmcli.py sipauthserve subscribers create "orangesim" IMSI425010300522982 2165554444                       raw request: {"command":"subscribers","action":"create","fields":{"name":"orangesim","imsi":"IMSI425010300522982","msisdn":"2165554444","ki":""}}
     237raw response: {
     238        "code" : 200,
     239        "data" : "both ok"
     240}
     241}}}