Skip to content

Commit 66b5651

Browse files
committed
registrar docs: Fix broken examples
1 parent e9e63a4 commit 66b5651

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

‎modules/mid_registrar/README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ improving interoperability.
737737
```opensips title="Setting the allow_dup_cseq parameter"
738738
...
739739
# strict RFC 3261 compliance: reject REGISTER requests with duplicate CSeq
740-
modparam("
740+
modparam("mid_registrar", "allow_dup_cseq", true)
741741
```
742742

743743

@@ -763,7 +763,7 @@ than, e.g., every 1800 seconds following the restart.
763763
```opensips title="Setting the expires_max_deviation parameter"
764764
...
765765
# add a random +/- 0-100 seconds to each registration lifetime
766-
modparam("
766+
modparam("mid_registrar", "expires_max_deviation", 100)
767767
```
768768

769769

@@ -784,7 +784,7 @@ That's it - the function parameter overrides this global parameter.
784784
```opensips title="Set max_contacts parameter"
785785
...
786786
# Allow no more than 10 contacts per AOR
787-
modparam("
787+
modparam("mid_registrar", "max_contacts", 10)
788788
```
789789

790790

@@ -798,7 +798,7 @@ Default value is **64**.
798798

799799

800800
```opensips title="Setting the *max_username_len* module parameter"
801-
modparam("
801+
modparam("mid_registrar", "max_username_len", 128)
802802
```
803803

804804

@@ -812,7 +812,7 @@ Default value is **64**.
812812

813813

814814
```opensips title="Setting the *max_domain_len* module parameter"
815-
modparam("
815+
modparam("mid_registrar", "max_domain_len", 128)
816816
```
817817

818818

@@ -826,7 +826,7 @@ Default value is **256**.
826826

827827

828828
```opensips title="Setting the *max_aor_len* module parameter"
829-
modparam("
829+
modparam("mid_registrar", "max_aor_len", 512)
830830
```
831831

832832

@@ -840,7 +840,7 @@ Default value is **255**.
840840

841841

842842
```opensips title="Setting the *max_contact_len* module parameter"
843-
modparam("
843+
modparam("mid_registrar", "max_contact_len", 512)
844844
```
845845

846846

‎modules/registrar/README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ improving interoperability.
372372
```opensips title="Setting the allow_dup_cseq parameter"
373373
...
374374
# strict RFC 3261 compliance: reject REGISTER requests with duplicate CSeq
375-
modparam("
375+
modparam("registrar", "allow_dup_cseq", true)
376376
```
377377

378378

@@ -398,7 +398,7 @@ than, e.g., every 1800 seconds following the restart.
398398
```opensips title="Setting the expires_max_deviation parameter"
399399
...
400400
# add a random +/- 0-100 seconds to each registration lifetime
401-
modparam("
401+
modparam("registrar", "expires_max_deviation", 100)
402402
```
403403

404404

@@ -419,7 +419,7 @@ That's it - the function parameter overrides this global parameter.
419419
```opensips title="Set max_contacts parameter"
420420
...
421421
# Allow no more than 10 contacts per AOR
422-
modparam("
422+
modparam("registrar", "max_contacts", 10)
423423
```
424424

425425

@@ -433,7 +433,7 @@ Default value is **64**.
433433

434434

435435
```opensips title="Setting the *max_username_len* module parameter"
436-
modparam("
436+
modparam("registrar", "max_username_len", 128)
437437
```
438438

439439

@@ -447,7 +447,7 @@ Default value is **64**.
447447

448448

449449
```opensips title="Setting the *max_domain_len* module parameter"
450-
modparam("
450+
modparam("registrar", "max_domain_len", 128)
451451
```
452452

453453

@@ -461,7 +461,7 @@ Default value is **256**.
461461

462462

463463
```opensips title="Setting the *max_aor_len* module parameter"
464-
modparam("
464+
modparam("registrar", "max_aor_len", 512)
465465
```
466466

467467

@@ -475,7 +475,7 @@ Default value is **255**.
475475

476476

477477
```opensips title="Setting the *max_contact_len* module parameter"
478-
modparam("
478+
modparam("registrar", "max_contact_len", 512)
479479
```
480480

481481

0 commit comments

Comments
 (0)