| 205 | We will run the tmsis command inside the OpenBTS CLI in order to get a listing of IMEI and IMSI's. |
| 206 | |
| 207 | {{{ |
| 208 | root@node1-1:~/dev/BUILDS/2015-10-13--03-22-27# cd /OpenBTS/ |
| 209 | root@node1-1:/OpenBTS# ./OpenBTSCLI |
| 210 | OpenBTS Command Line Interface (CLI) utility |
| 211 | Copyright 2012, 2013, 2014 Range Networks, Inc. |
| 212 | Licensed under GPLv2. |
| 213 | Includes libreadline, GPLv2. |
| 214 | Connecting to 127.0.0.1:49300... |
| 215 | Remote Interface Ready. |
| 216 | Type: |
| 217 | "help" to see commands, |
| 218 | "version" for version information, |
| 219 | "notices" for licensing information, |
| 220 | "quit" to exit console interface. |
| 221 | OpenBTS> tmsis |
| 222 | IMSI TMSI IMEI AUTH CREATED ACCESSED TMSI_ASSIGNED |
| 223 | 310410762747144 - 357507061173160 1 25m 19s 0 |
| 224 | 310410629684240 - 013441007348570 0 12m 12m 0 |
| 225 | 732111141359282 - 013594001284780 0 17m 17m 0 |
| 226 | 425010300522982 - 357507061982450 0 24m 24m 0 |
| 227 | }}} |
| 228 | |
| 229 | The 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 | |
| 231 | Let's add our test subscriber phone and assign it the phone number 2165554444: |
| 232 | {{{ |
| 233 | root@node1-1:/OpenBTS# cd ~/dev/NodeManager/ |
| 234 | ./nmcli.py sipauthserve subscribers create "orangesim" IMSI425010300522982 2165554444 |
| 235 | |
| 236 | root@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":""}} |
| 237 | raw response: { |
| 238 | "code" : 200, |
| 239 | "data" : "both ok" |
| 240 | } |
| 241 | }}} |