Skip to content

Commit 075789f

Browse files
committed
update README files
1 parent d4db200 commit 075789f

File tree

11 files changed

+435
-321
lines changed

11 files changed

+435
-321
lines changed

modules/b2b_logic/README

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,14 @@ modparam("b2b_logic", "b2bl_early_update", 1)
509509
simple pass-through of messages from one side to another,
510510
and no additional scripting or dedicated routes are
511511
required.
512-
* flags (string, optional) - meanings of the flags is as
513-
follows:
514-
+ t[nn] - Call setup timeout. 0 sets timeout to
515-
max_duration value. Example: t300.
516-
+ a - Transparent authentication. In this mode b2b
517-
passes your 401 or 407 authentication request to
518-
destination server.
519-
+ p - Preserve To: header.
512+
* flags (string, optional) - CSV list of the following flags:
513+
+ setup-timeout=[nn] - Call setup timeout. 0 sets
514+
timeout to max_duration value. Example:
515+
"setup-timeout=300".
516+
+ transparent-auth - Transparent authentication. In this
517+
mode b2b passes your 401 or 407 authentication request
518+
to destination server.
519+
+ preserve-to - Preserve To: header.
520520
* req_route (string, optional) - name of the script route to
521521
be called when requests belonging to this B2B session are
522522
received. This parameter will override the global
@@ -634,25 +634,25 @@ b2b_client_new("client1", "sip:[email protected]");
634634
* provmedia_uri (string, optional) - URI of the provisional
635635
media server to be connected with the caller while the
636636
callee answers.
637-
* flags (string, optional) - meanings of the flags is as
638-
follows:
639-
+ t[nn] - Maximum duration of the B2B session. If the
640-
lifetime expires, the B2BUA will send BYE messages to
641-
both ends and delete the record. Example: t300.
642-
+ n - Enable rfc3515 NOTIFY to inform the agent sending
643-
the REFER of the status of the reference.
644-
+ f - Rollback call to state before bridging in case of
645-
transfer failed, don't hangup the call (default
646-
behaviour).
647-
+ h - Put the old entity on hold before bridging it to
648-
the new entity.
649-
+ r - Do not attempt late SDP negociation with the new
650-
entity. Start the bridging by first contacting the new
651-
entity using the initial SDP received from the old
652-
entity. After the new entity answers, send a reINVITE
653-
without body to the old entity. Use the current SDP
654-
received in this new answer from the old entity to
655-
trigger a renegociation with the new entity.
637+
* flags (string, optional) - CSV list of the following flags:
638+
+ max_duration=[nn] - Maximum duration of the B2B
639+
session. If the lifetime expires, the B2BUA will send
640+
BYE messages to both ends and delete the record.
641+
Example: "max_duration=300".
642+
+ notify - Enable rfc3515 NOTIFY to inform the agent
643+
sending the REFER of the status of the reference.
644+
+ rollback-failed - Rollback call to state before
645+
bridging in case of transfer failed, don't hangup the
646+
call (default behaviour).
647+
+ hold - Put the old entity on hold before bridging it
648+
to the new entity.
649+
+ no-late-sdp - Do not attempt late SDP negociation with
650+
the new entity. Start the bridging by first contacting
651+
the new entity using the initial SDP received from the
652+
old entity. After the new entity answers, send a
653+
reINVITE without body to the old entity. Use the
654+
current SDP received in this new answer from the old
655+
entity to trigger a renegociation with the new entity.
656656

657657
This function can be used from the b2b_logic request routes.
658658

modules/cfgutils/README

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cfgutils Module
3030
1.4.10. set_count(var_to_count, ret_var)
3131
1.4.11. set_select_weight(int_list_var)
3232
1.4.12. ts_usec_delta(t1_sec, t1_usec, t2_sec,
33-
t2_usec, delta)
33+
t2_usec, [delta_str], [delta_int])
3434

3535
1.4.13. check_time_rec(time_string, [timestamp])
3636
1.4.14. get_static_lock(key)
@@ -424,18 +424,23 @@ set_count($avp(dids), $var(num_dids));
424424
$var(next_gw_idx) = set_select_weight($avp(gw_success_rates));
425425
...
426426

427-
1.4.12. ts_usec_delta(t1_sec, t1_usec, t2_sec, t2_usec, delta)
427+
1.4.12. ts_usec_delta(t1_sec, t1_usec, t2_sec, t2_usec, [delta_str],
428+
[delta_int])
428429

429-
This function returns the difference between two timestamps,
430-
specified in seconds and microseconds. The result is returned
431-
in the last parameter, expressed in microseconds.
430+
This function returns the absolute difference between the two
431+
given timestamps. The result is expressed as microseconds and
432+
can be returned as either string or integer.
433+
434+
WARNING: when using delta_int, the function will return error
435+
code -1 in case the difference overflows the signed integer
436+
holder! (i.e. a diff of ~35 minutes or more)
432437

433438
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
434439
FAILURE_ROUTE, BRANCH_ROUTE.
435440

436441
Example 1.18. ts_usec_delta usage
437442
...
438-
ts_usec_delta($var(t1s), 300, 10, $var(t2ms), $var(result));
443+
ts_usec_delta($var(t1s), 300, 10, $var(t2us), $var(diff_str));
439444
...
440445

441446
1.4.13. check_time_rec(time_string, [timestamp])

modules/clusterer/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ modparam("clusterer", "db_table", "clusterer")
309309
state) by any module build on top of clusterer engine, like
310310
dialog or presence.
311311

312-
Note that ohter tags may be dynamically learned during runtime
312+
Note that other tags may be dynamically learned during runtime
313313
via clustering communication with other nodes.
314314

315315
The format for this value is “tag_name / cluster_id =

modules/dialog/README

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ dialog Module
9393
1.7.12. unset_dlg_profile(profile,[value])
9494
1.7.13. is_in_profile(profile,[value])
9595
1.7.14. get_profile_size(profile,[value],size)
96-
1.7.15. set_dlg_flag(idx)
97-
1.7.16. test_and_set_dlg_flag(idx, value)
98-
1.7.17. reset_dlg_flag(idx)
99-
1.7.18. is_dlg_flag_set(idx)
96+
1.7.15. set_dlg_flag(flag)
97+
1.7.16. test_and_set_dlg_flag(flag, value)
98+
1.7.17. reset_dlg_flag(flag)
99+
1.7.18. is_dlg_flag_set(flag)
100100
1.7.19. store_dlg_value(name,val)
101101
1.7.20. fetch_dlg_value(name,val)
102102
1.7.21. set_dlg_sharing_tag(tag_name)
@@ -903,9 +903,9 @@ modparam("dialog", "flags_column", "flags_c_name")
903903

904904
1.6.37. profiles_with_value (string)
905905

906-
List of names for profiles with values. Flags /b or /s allow
907-
sharing profiles between OpenSIPS instances using the clusterer
908-
module or a CacheDB backend, respectively.
906+
List of names (alphanumerical) for profiles with values. Flags
907+
/b or /s allow sharing profiles between OpenSIPS instances
908+
using the clusterer module or a CacheDB backend, respectively.
909909

910910
Default value is “empty”.
911911

@@ -917,9 +917,10 @@ annels/s; codecUsed/b;")
917917

918918
1.6.38. profiles_no_value (string)
919919

920-
List of names for profiles without values. Flags /b or /s allow
921-
sharing profiles between OpenSIPS instances using the clusterer
922-
module or a CacheDB backend, respectively.
920+
List of names (alphanumerical) for profiles without values.
921+
Flags /b or /s allow sharing profiles between OpenSIPS
922+
instances using the clusterer module or a CacheDB backend,
923+
respectively.
923924

924925
Default value is “empty”.
925926

@@ -1462,7 +1463,7 @@ if ( get_dialogs_by_profile("caller",$fU,$avp(dlg_jsons),$avp(dlg_no)) )
14621463
if (load_dialog_ctx("$var(callid)")) {
14631464
xlog("The dialog '$var(callid)' already has a duration "
14641465
"of $DLG_lifetime seconds\n");
1465-
if (is_in_profile("inbound_call"))
1466+
if (is_in_profile("inboundCall"))
14661467
xlog("this dialog is an inbound call\n");
14671468
unload_dialog_ctx();
14681469
}
@@ -1503,7 +1504,7 @@ if (load_dialog_ctx("$var(callid)")) {
15031504

15041505
Example 1.63. set_dlg_profile usage
15051506
...
1506-
set_dlg_profile("inbound_call");
1507+
set_dlg_profile("inboundCall");
15071508
set_dlg_profile("caller",$fu);
15081509
...
15091510

@@ -1525,7 +1526,7 @@ set_dlg_profile("caller",$fu);
15251526

15261527
Example 1.64. unset_dlg_profile usage
15271528
...
1528-
unset_dlg_profile("inbound_call");
1529+
unset_dlg_profile("inboundCall");
15291530
unset_dlg_profile("caller",$fu);
15301531
...
15311532

@@ -1553,7 +1554,7 @@ unset_dlg_profile("caller",$fu);
15531554

15541555
Example 1.65. is_in_profile usage
15551556
...
1556-
if (is_in_profile("inbound_call")) {
1557+
if (is_in_profile("inboundCall")) {
15571558
log("this request belongs to a inbound call\n");
15581559
}
15591560
...
@@ -1593,14 +1594,14 @@ get_profile_size("caller", $fu, $var(size));
15931594
xlog("currently, the user $fu has $var(size) active outgoing calls\n");
15941595
...
15951596

1596-
1.7.15. set_dlg_flag(idx)
1597+
1.7.15. set_dlg_flag(flag)
15971598

1598-
Sets the dialog flag index idx to true. The dialog flags are
1599+
Sets the dialog flag named flag to true. The dialog flags are
15991600
dialog persistent and they can be accessed (set and test) for
16001601
all requests belonging to the dialog.
16011602

16021603
Parameters:
1603-
* idx (int) - The flag index can be between 0 and 31.
1604+
* flag (string, static) - The flag name.
16041605

16051606
NOTE: the dialog must be created before using this function
16061607
(use create_dialog() function before).
@@ -1610,15 +1611,15 @@ xlog("currently, the user $fu has $var(size) active outgoing calls\n");
16101611

16111612
Example 1.67. set_dlg_flag usage
16121613
...
1613-
set_dlg_flag(3);
1614+
set_dlg_flag("MY_DLG_FLAG");
16141615
...
16151616

1616-
1.7.16. test_and_set_dlg_flag(idx, value)
1617+
1.7.16. test_and_set_dlg_flag(flag, value)
16171618

1618-
Atomically checks if the dialog flag index idx is equal to
1619+
Atomically checks if the dialog flag named flag is equal to
16191620
value. If true, changes the value with the opposite one. This
16201621
operation is done under the dialog lock.
1621-
* idx (int) - The flag index can be between 0 and 31.
1622+
* flag (string, static) - The flag name.
16221623
* value (int) - The value should be 0 (false) or 1 (true).
16231624

16241625
NOTE: the dialog must be created before using this function
@@ -1629,17 +1630,17 @@ set_dlg_flag(3);
16291630

16301631
Example 1.68. test_and_set_dlg_flag usage
16311632
...
1632-
test_and_set_dlg_flag(3, 0);
1633+
test_and_set_dlg_flag("MY_DLG_FLAG", 0);
16331634
...
16341635

1635-
1.7.17. reset_dlg_flag(idx)
1636+
1.7.17. reset_dlg_flag(flag)
16361637

1637-
Resets the dialog flag index idx to false. The dialog flags are
1638-
dialog persistent and they can be accessed (set and test) for
1639-
all requests belonging to the dialog.
1638+
Resets the dialog flag named flag to false. The dialog flags
1639+
are dialog persistent and they can be accessed (set and test)
1640+
for all requests belonging to the dialog.
16401641

16411642
Parameters:
1642-
* idx (int) - The flag index can be between 0 and 31.
1643+
* flag (string, static) - The flag name.
16431644

16441645
NOTE: the dialog must be created before using this function
16451646
(use create_dialog() function before).
@@ -1649,17 +1650,17 @@ test_and_set_dlg_flag(3, 0);
16491650

16501651
Example 1.69. reset_dlg_flag usage
16511652
...
1652-
reset_dlg_flag(16);
1653+
reset_dlg_flag("MY_DLG_FLAG");
16531654
...
16541655

1655-
1.7.18. is_dlg_flag_set(idx)
1656+
1.7.18. is_dlg_flag_set(flag)
16561657

1657-
Returns true if the dialog flag index idx is set. The dialog
1658+
Returns true if the dialog flag named flag is set. The dialog
16581659
flags are dialog persistent and they can be accessed (set and
16591660
test) for all requests belonging to the dialog.
16601661

16611662
Parameters:
1662-
* idx (int) - The flag index can be between 0 and 31.
1663+
* flag (string, static) - The flag name.
16631664

16641665
NOTE: the dialog must be created before using this function
16651666
(use create_dialog() function before).
@@ -1669,8 +1670,8 @@ reset_dlg_flag(16);
16691670

16701671
Example 1.70. is_dlg_flag_set usage
16711672
...
1672-
if (is_dlg_flag_set(16)) {
1673-
xlog("dialog flag 16 is set\n");
1673+
if (is_dlg_flag_set("MY_DLG_FLAG")) {
1674+
xlog("dialog flag MY_DLG_FLAG is set\n");
16741675
}
16751676
...
16761677

@@ -2041,7 +2042,7 @@ GIwZjAzNGM1ZDY
20412042
* value (optional)- string value to toughen the check;
20422043

20432044
MI FIFO Command Format:
2044-
opensips-cli -x mi profile_get_size inbound_calls
2045+
opensips-cli -x mi profile_get_size inboundCalls
20452046

20462047
1.9.5. profile_list_dlgs
20472048

@@ -2062,7 +2063,7 @@ GIwZjAzNGM1ZDY
20622063
* value (optional)- string value to toughen the check;
20632064

20642065
MI FIFO Command Format:
2065-
opensips-cli -x mi profile_list_dlgs inbound_calls
2066+
opensips-cli -x mi profile_list_dlgs inboundCalls
20662067

20672068
1.9.6. profile_get_values
20682069

@@ -2077,7 +2078,7 @@ GIwZjAzNGM1ZDY
20772078
* profile - name of the profile to list the dialog for.
20782079

20792080
MI FIFO Command Format:
2080-
opensips-cli -x mi profile_get_values inbound_calls
2081+
opensips-cli -x mi profile_get_values inboundCalls
20812082

20822083
1.9.7. profile_end_dlgs
20832084

@@ -2094,7 +2095,7 @@ GIwZjAzNGM1ZDY
20942095
only the dialogs with the specified value
20952096

20962097
MI FIFO Command Format:
2097-
opensips-cli -x mi profile_end_dlgs inbound_calls
2098+
opensips-cli -x mi profile_end_dlgs inboundCalls
20982099

20992100
1.9.8. dlg_db_sync
21002101

@@ -2286,10 +2287,10 @@ GIwZjAzNGM1ZDY
22862287

22872288
1.10.4. $DLG_flags
22882289

2289-
Returns the dialog flags array (as a single integer value) of
2290-
the dialog corresponding to the processed sequential request.
2291-
This PV will be available only for sequential requests, after
2292-
doing loose_route().
2290+
Returns the dialog flags (as a list of flag names separted by
2291+
space) of the dialog corresponding to the processed sequential
2292+
request. This PV will be available only for sequential
2293+
requests, after doing loose_route().
22932294

22942295
NULL will be returned if there is no dialog for the request.
22952296

modules/dispatcher/README

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,10 +1215,15 @@ opensips-cli -x mi ds_list
12151215

12161216
Parameters:
12171217
* partition (optional) - name of the partition to be
1218-
reloaded.
1218+
reloaded. default partition is "default".
1219+
* inherit_state (optional) : whether inherit old state of the
1220+
destination , default is y.
1221+
+ “n”: no inherit state
1222+
+ “y”: inherit state
12191223

12201224
MI FIFO Command Format:
12211225
opensips-cli -x mi ds_reload
1226+
opensips-cli -x mi ds_reload inherit_state=n
12221227

12231228
1.5.4. ds_push_script_attrs
12241229

0 commit comments

Comments
 (0)