Skip to content

Commit c70de71

Browse files
Update EIR Readme with formatting
1 parent 890283a commit c70de71

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/EIR.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The **match_response_code** maps to the Equipment-Status AVP output, so specifie
1919
Some end to end examples of this provisioned into the API:
2020

2121
### IMSI / IMEI Binding
22-
```
22+
```json
2323
{
2424
'imei': '1234',
2525
'imsi': '567',
@@ -30,7 +30,7 @@ Some end to end examples of this provisioned into the API:
3030
If IMSI is equal to *567* and is in use in IMEI *1234*, then the response code returned is 0 (Whitelist).
3131

3232
### IMEI Matching (Blacklist lost / stolen devices)
33-
```
33+
```json
3434
{
3535
'imei': '99881232',
3636
'imsi': '',
@@ -41,7 +41,7 @@ If IMSI is equal to *567* and is in use in IMEI *1234*, then the response code r
4141
If the IMEI is equal to 99881232 used with any IMSI, then the response code returned is 1 (Blacklist). This would be used for devices reported stolen.
4242

4343
### IMEI Prefix Match (Blacklist / Whitelist all devices of type)
44-
```
44+
```json
4545
{
4646
'imei': '^666.*',
4747
'imsi': '',
@@ -52,7 +52,7 @@ If the IMEI is equal to 99881232 used with any IMSI, then the response code retu
5252
If the IMEI starts with 666, then the response code returned is 1 (Blacklist).
5353

5454
### IMEI & IMSI Regex Match
55-
```
55+
```json
5656
{
5757
'imei': '^777.*',
5858
'imsi': '^1234123412341234$',
@@ -83,9 +83,9 @@ If ``imsi_imei_logging`` is set, then every unique IMSI / IMEI mapping is visibl
8383
This also allows us to detect SIM Swap events.
8484

8585
## Config Example
86-
```
86+
```yaml
8787
eir:
8888
imsi_imei_logging: True #Store current IMEI / IMSI pair in backend
8989
sim_swap_notify_webhook: http://localhost/webhook/
9090
no_match_response: 2 #Greylist
91-
```
91+
```

0 commit comments

Comments
 (0)