Skip to content

Commit 247ae6f

Browse files
Rebuild documentation
1 parent 32539ef commit 247ae6f

File tree

4 files changed

+124
-94
lines changed

4 files changed

+124
-94
lines changed

modules/b2b_logic/README

Lines changed: 65 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ B2B_LOGIC
3333
1.4.17. db_table (str)
3434
1.4.18. b2bl_th_init_timeout (int)
3535
1.4.19. b2bl_early_update (int)
36+
1.4.20. old_entity_term_delay (int)
3637

3738
1.5. Exported Functions
3839

@@ -58,7 +59,9 @@ B2B_LOGIC
5859

5960
1.5.9. b2b_delete_entity()
6061
1.5.10. b2b_end_dlg_leg()
61-
1.5.11. b2b_bridge_request(b2bl_key,entity_no)
62+
1.5.11. b2b_bridge_request(b2bl_key,entity_no,
63+
[adv_contact], [flags])
64+
6265
1.5.12. b2b_trigger_scenario(scenario, [params],
6366
peer1, [extra_headers_peer1],
6467
[extra_headers_contents_peer1], peer2
@@ -128,22 +131,23 @@ B2B_LOGIC
128131
1.18. Set db_table parameter
129132
1.19. Set b2bl_th_init_timeout parameter
130133
1.20. Set b2bl_early_update parameter
131-
1.21. b2b_init_request usage
132-
1.22. b2b_server_new usage
133-
1.23. b2b_client_new usage
134-
1.24. b2b_bridge usage
134+
1.21. Set old_entity_term_delay parameter
135+
1.22. b2b_init_request usage
136+
1.23. b2b_server_new usage
137+
1.24. b2b_client_new usage
135138
1.25. b2b_bridge usage
136-
1.26. b2b_pass_request usage
137-
1.27. b2b_handle_reply usage
138-
1.28. b2b_send_reply usage
139-
1.29. b2b_delete_entity usage
140-
1.30. b2b_end_dlg_leg usage
141-
1.31. b2b_bridge_request usage
142-
1.32. b2b_trigger_scenario usage
143-
1.33. $b2b_logic.key usage
144-
1.34. $b2b_logic.entity usage
145-
1.35. $b2b_logic.ctx usage
146-
1.36. $b2b_logic.scenario usage
139+
1.26. b2b_bridge usage
140+
1.27. b2b_pass_request usage
141+
1.28. b2b_handle_reply usage
142+
1.29. b2b_send_reply usage
143+
1.30. b2b_delete_entity usage
144+
1.31. b2b_end_dlg_leg usage
145+
1.32. b2b_bridge_request usage
146+
1.33. b2b_trigger_scenario usage
147+
1.34. $b2b_logic.key usage
148+
1.35. $b2b_logic.entity usage
149+
1.36. $b2b_logic.ctx usage
150+
1.37. $b2b_logic.scenario usage
147151
2.1. b2bl_api_t structure
148152

149153
Chapter 1. Admin Guide
@@ -490,6 +494,22 @@ modparam("b2b_logic", "b2bl_th_init_timeout", 60)
490494
modparam("b2b_logic", "b2bl_early_update", 1)
491495
...
492496

497+
1.4.20. old_entity_term_delay (int)
498+
499+
When the b2b_bridge_request is being used with the late_bye
500+
flag, this parameter can delay the moment when the BYE is being
501+
sent to the terminating entity. Thus, instead of terminating it
502+
when the new entity is established, the BYE is delayed with the
503+
value of this param, expressed in seconds.
504+
505+
Default value is “0” - send BYE on the spot
506+
507+
Example 1.21. Set old_entity_term_delay parameter
508+
...
509+
modparam("b2b_logic", "old_entity_term_delay", 2) # delay the BYE with 2
510+
seconds
511+
...
512+
493513
1.5. Exported Functions
494514

495515
1.5.1. b2b_init_request(id, [flags], [req_route], [reply_route],
@@ -538,7 +558,7 @@ Note
538558
correctly routed, but the SIP pacakge may be invalid (as
539559
Contact, Via, etc).
540560

541-
Example 1.21. b2b_init_request usage
561+
Example 1.22. b2b_init_request usage
542562
...
543563
if(is_method("INVITE") && !has_totag() && prepaid_user()) {
544564
...
@@ -575,7 +595,7 @@ if(is_method("INVITE") && !has_totag() && prepaid_user()) {
575595

576596
This function can be used from REQUEST_ROUTE.
577597

578-
Example 1.22. b2b_server_new usage
598+
Example 1.23. b2b_server_new usage
579599
...
580600
if(is_method("INVITE") && !has_totag()) {
581601
b2b_server_new("server1", $avp(b2b_hdrs), $avp(b2b_hdr_bodies));
@@ -612,7 +632,7 @@ if(is_method("INVITE") && !has_totag()) {
612632
This function can be used from REQUEST_ROUTE and the b2b_logic
613633
request routes.
614634

615-
Example 1.23. b2b_client_new usage
635+
Example 1.24. b2b_client_new usage
616636
...
617637
b2b_client_new("client1", "sip:[email protected]");
618638
...
@@ -656,7 +676,7 @@ b2b_client_new("client1", "sip:[email protected]");
656676

657677
This function can be used from the b2b_logic request routes.
658678

659-
Example 1.24. b2b_bridge usage
679+
Example 1.25. b2b_bridge usage
660680
...
661681
route[b2b_logic_request] {
662682
...
@@ -677,7 +697,7 @@ route[b2b_logic_request] {
677697

678698
This function can be used from the b2b_logic reply route.
679699

680-
Example 1.25. b2b_bridge usage
700+
Example 1.26. b2b_bridge usage
681701
...
682702
route[b2b_logic_reply] {
683703
...
@@ -702,7 +722,7 @@ route[b2b_logic_reply] {
702722

703723
This function can be used from the b2b_logic request routes.
704724

705-
Example 1.26. b2b_pass_request usage
725+
Example 1.27. b2b_pass_request usage
706726
...
707727
route[b2b_logic_request] {
708728
if ($rm != "BYE") {
@@ -723,7 +743,7 @@ route[b2b_logic_request] {
723743

724744
This function can be used from the b2b_logic reply routes.
725745

726-
Example 1.27. b2b_handle_reply usage
746+
Example 1.28. b2b_handle_reply usage
727747
...
728748
route[b2b_logic_reply] {
729749
xlog("B2B REPLY: [$rs $rm] from entity: $b2b_logic.entity(id)\n");
@@ -744,7 +764,7 @@ route[b2b_logic_reply] {
744764

745765
This function can be used from the b2b_logic request routes.
746766

747-
Example 1.28. b2b_send_reply usage
767+
Example 1.29. b2b_send_reply usage
748768
...
749769
route[b2b_logic_request] {
750770
if ($rm == "REFER") {
@@ -760,7 +780,7 @@ route[b2b_logic_request] {
760780

761781
This function can be used from the b2b_logic request routes.
762782

763-
Example 1.29. b2b_delete_entity usage
783+
Example 1.30. b2b_delete_entity usage
764784
...
765785
route[b2b_logic_request] {
766786
if ($rm == "BYE") {
@@ -780,7 +800,7 @@ route[b2b_logic_request] {
780800
This function can be used from the b2b_logic request or reply
781801
routes.
782802

783-
Example 1.30. b2b_end_dlg_leg usage
803+
Example 1.31. b2b_end_dlg_leg usage
784804
...
785805
route[b2b_logic_request] {
786806
if ($rm == "REFER") {
@@ -790,7 +810,8 @@ route[b2b_logic_request] {
790810
}
791811
...
792812

793-
1.5.11. b2b_bridge_request(b2bl_key,entity_no)
813+
1.5.11. b2b_bridge_request(b2bl_key,entity_no, [adv_contact],
814+
[flags])
794815

795816
This function will bridge an initial INVITE with one of the
796817
particapnts from an existing b2b session.
@@ -801,8 +822,15 @@ route[b2b_logic_request] {
801822
callid;from-tag;to-tag.
802823
* entity_no (int) - an integer that holds the entity of the
803824
entity/participant to bridge.
825+
* adv_contact (string, optional) - Contact header to
826+
advertise in generated messages.
827+
* flags (string, optional) - Flags that can modify the
828+
behavior of the function. Available flags are:
829+
+ late_bye - instead of terminating the replaced entity
830+
on the stop, leave it pending until the new enity
831+
fully establishes.
804832

805-
Example 1.31. b2b_bridge_request usage
833+
Example 1.32. b2b_bridge_request usage
806834
...
807835
if ($rU == "pickup") {
808836
# get the b2b logic key of the parked call for this user
@@ -867,7 +895,7 @@ if ($rU == "pickup") {
867895

868896
This function can be used from REQUEST_ROUTE.
869897

870-
Example 1.32. b2b_trigger_scenario usage
898+
Example 1.33. b2b_trigger_scenario usage
871899
...
872900
if(is_method("REFER") && !has_totag()) {
873901
$avp(header) = "Replaces";
@@ -975,7 +1003,7 @@ nsips.org
9751003
dedicated routes defined through the b2b_entities and b2b_logic
9761004
modules.
9771005

978-
Example 1.33. $b2b_logic.key usage
1006+
Example 1.34. $b2b_logic.key usage
9791007
...
9801008
local_route {
9811009
...
@@ -1019,7 +1047,7 @@ local_route {
10191047
dedicated routes defined through the b2b_entities and b2b_logic
10201048
modules.
10211049

1022-
Example 1.34. $b2b_logic.entity usage
1050+
Example 1.35. $b2b_logic.entity usage
10231051
...
10241052
modparam("b2b_entities", "script_request_route", "b2b_request")
10251053
...
@@ -1048,7 +1076,7 @@ route[b2b_request] {
10481076
Setting the variable to NULL will delete the value at the given
10491077
key.
10501078

1051-
Example 1.35. $b2b_logic.ctx usage
1079+
Example 1.36. $b2b_logic.ctx usage
10521080
...
10531081
modparam("b2b_entities", "script_reply_route", "b2b_reply")
10541082
...
@@ -1076,7 +1104,7 @@ route[b2b_reply] {
10761104
dedicated routes defined through the b2b_entities and b2b_logic
10771105
modules.
10781106

1079-
Example 1.36. $b2b_logic.scenario usage
1107+
Example 1.37. $b2b_logic.scenario usage
10801108
...
10811109
route[b2b_logic_request] {
10821110
if ($b2b_logic.scenario == "prepaid") {
@@ -1240,7 +1268,7 @@ Chapter 3. Contributors
12401268
commits^(2) and lines added/removed^(3)
12411269
Name DevScore Commits Lines ++ Lines --
12421270
1. Vlad Patrascu (@rvlad-patrascu) 235 57 8167 6793
1243-
2. Razvan Crainea (@razvancrainea) 26 15 776 227
1271+
2. Razvan Crainea (@razvancrainea) 32 17 1119 294
12441272
3. Nick Altmann (@nikbyte) 14 10 346 36
12451273
4. Bogdan-Andrei Iancu (@bogdan-iancu) 12 8 144 66
12461274
5. Carsten Bock 12 5 679 23
@@ -1272,7 +1300,7 @@ Chapter 3. Contributors
12721300

12731301
Table 3.2. Most recently active contributors^(1) to this module
12741302
Name Commit Activity
1275-
1. Razvan Crainea (@razvancrainea) Jan 2021 - Dec 2023
1303+
1. Razvan Crainea (@razvancrainea) Jan 2021 - Jan 2024
12761304
2. Bogdan-Andrei Iancu (@bogdan-iancu) Apr 2021 - Dec 2023
12771305
3. Maksym Sobolyev (@sobomax) Jan 2021 - Nov 2023
12781306
4. Rick Barenthin Nov 2023 - Nov 2023
@@ -1293,8 +1321,8 @@ Chapter 4. Documentation
12931321

12941322
4.1. Contributors
12951323

1296-
Last edited by: Vlad Patrascu (@rvlad-patrascu), Carsten Bock,
1297-
Nick Altmann (@nikbyte).
1324+
Last edited by: Razvan Crainea (@razvancrainea), Vlad Patrascu
1325+
(@rvlad-patrascu), Carsten Bock, Nick Altmann (@nikbyte).
12981326

12991327
Documentation Copyrights:
13001328

modules/b2b_logic/doc/contributors.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
<row>
3030
<entry>2. </entry>
3131
<entry>Razvan Crainea (<ulink url="https://github.com/razvancrainea">@razvancrainea</ulink>)</entry>
32-
<entry align="center">26</entry>
33-
<entry align="center">15</entry>
34-
<entry align="center">776</entry>
35-
<entry align="center">227</entry>
32+
<entry align="center">32</entry>
33+
<entry align="center">17</entry>
34+
<entry align="center">1119</entry>
35+
<entry align="center">294</entry>
3636
</row>
3737
<row>
3838
<entry>3. </entry>
@@ -129,7 +129,7 @@
129129
<row>
130130
<entry>1. </entry>
131131
<entry>Razvan Crainea (<ulink url="https://github.com/razvancrainea">@razvancrainea</ulink>)</entry>
132-
<entry align="center">Jan 2021 - Dec 2023</entry>
132+
<entry align="center">Jan 2021 - Jan 2024</entry>
133133
</row>
134134
<row>
135135
<entry>2. </entry>
@@ -190,7 +190,7 @@
190190
<title>Documentation</title>
191191
<section id="documentation_contributors" xreflabel="documentation_contributors">
192192
<title>Contributors</title>
193-
<para><emphasis role='bold'>Last edited by:</emphasis> Vlad Patrascu (<ulink url="https://github.com/rvlad-patrascu">@rvlad-patrascu</ulink>), Carsten Bock, Nick Altmann (<ulink url="https://github.com/nikbyte">@nikbyte</ulink>).</para>
193+
<para><emphasis role='bold'>Last edited by:</emphasis> Razvan Crainea (<ulink url="https://github.com/razvancrainea">@razvancrainea</ulink>), Vlad Patrascu (<ulink url="https://github.com/rvlad-patrascu">@rvlad-patrascu</ulink>), Carsten Bock, Nick Altmann (<ulink url="https://github.com/nikbyte">@nikbyte</ulink>).</para>
194194
</section>
195195

196196
</chapter>

modules/sql_cacher/README

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -368,15 +368,16 @@ Chapter 2. Contributors
368368
1. Vlad Patrascu (@rvlad-patrascu) 93 44 3640 1114
369369
2. Liviu Chircu (@liviuchircu) 22 18 166 115
370370
3. Razvan Crainea (@razvancrainea) 15 13 25 14
371-
4. Bogdan-Andrei Iancu (@bogdan-iancu) 7 5 116 21
371+
4. Bogdan-Andrei Iancu (@bogdan-iancu) 9 7 120 27
372372
5. Maksym Sobolyev (@sobomax) 7 5 8 9
373-
6. Ionel Cerghit (@ionel-cerghit) 4 1 50 92
374-
7. Dan Pascu (@danpascu) 3 1 1 1
375-
8. Ovidiu Sas (@ovidiusas) 3 1 1 1
376-
9. Peter Lemenkov (@lemenkov) 3 1 1 1
377-
10. Walter Doekes (@wdoekes) 3 1 1 1
373+
6. Bence Szigeti 4 2 3 2
374+
7. Ionel Cerghit (@ionel-cerghit) 4 1 50 92
375+
8. Dan Pascu (@danpascu) 3 1 1 1
376+
9. Ovidiu Sas (@ovidiusas) 3 1 1 1
377+
10. Peter Lemenkov (@lemenkov) 3 1 1 1
378378

379-
All remaining contributors: Gang Zhuo.
379+
All remaining contributors: Walter Doekes (@wdoekes), Gang
380+
Zhuo.
380381

381382
(1) DevScore = author_commits + author_lines_added /
382383
(project_lines_added / project_commits) + author_lines_deleted
@@ -398,18 +399,19 @@ Chapter 2. Contributors
398399

399400
Table 2.2. Most recently active contributors^(1) to this module
400401
Name Commit Activity
401-
1. Maksym Sobolyev (@sobomax) Oct 2020 - Nov 2023
402-
2. Vlad Patrascu (@rvlad-patrascu) Aug 2015 - Jul 2022
403-
3. Bogdan-Andrei Iancu (@bogdan-iancu) May 2017 - Feb 2022
404-
4. Gang Zhuo Nov 2021 - Nov 2021
405-
5. Walter Doekes (@wdoekes) Apr 2021 - Apr 2021
406-
6. Razvan Crainea (@razvancrainea) Feb 2016 - Jan 2021
407-
7. Liviu Chircu (@liviuchircu) Mar 2016 - Sep 2019
408-
8. Dan Pascu (@danpascu) May 2019 - May 2019
409-
9. Peter Lemenkov (@lemenkov) Jun 2018 - Jun 2018
410-
10. Ovidiu Sas (@ovidiusas) Mar 2017 - Mar 2017
411-
412-
All remaining contributors: Ionel Cerghit (@ionel-cerghit).
402+
1. Bogdan-Andrei Iancu (@bogdan-iancu) May 2017 - Jan 2024
403+
2. Bence Szigeti Jan 2024 - Jan 2024
404+
3. Maksym Sobolyev (@sobomax) Oct 2020 - Nov 2023
405+
4. Vlad Patrascu (@rvlad-patrascu) Aug 2015 - Jul 2022
406+
5. Gang Zhuo Nov 2021 - Nov 2021
407+
6. Walter Doekes (@wdoekes) Apr 2021 - Apr 2021
408+
7. Razvan Crainea (@razvancrainea) Feb 2016 - Jan 2021
409+
8. Liviu Chircu (@liviuchircu) Mar 2016 - Sep 2019
410+
9. Dan Pascu (@danpascu) May 2019 - May 2019
411+
10. Peter Lemenkov (@lemenkov) Jun 2018 - Jun 2018
412+
413+
All remaining contributors: Ovidiu Sas (@ovidiusas), Ionel
414+
Cerghit (@ionel-cerghit).
413415

414416
(1) including any documentation-related commits, excluding
415417
merge commits

0 commit comments

Comments
 (0)