@@ -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
9049041.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
9189181.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)) )
14621463if (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 ");
15071508set_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 ");
15291530unset_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));
15931594xlog("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
204620471.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
206720681.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
208220831.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
209921001.9.8. dlg_db_sync
21002101
@@ -2286,10 +2287,10 @@ GIwZjAzNGM1ZDY
22862287
228722881.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
0 commit comments