@@ -93,10 +93,10 @@ dialog Module
93
93
1.7.12. unset_dlg_profile(profile,[value])
94
94
1.7.13. is_in_profile(profile,[value])
95
95
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 )
100
100
1.7.19. store_dlg_value(name,val)
101
101
1.7.20. fetch_dlg_value(name,val)
102
102
1.7.21. set_dlg_sharing_tag(tag_name)
@@ -903,9 +903,9 @@ modparam("dialog", "flags_column", "flags_c_name")
903
903
904
904
1.6.37. profiles_with_value (string)
905
905
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.
909
909
910
910
Default value is “empty”.
911
911
@@ -917,9 +917,10 @@ annels/s; codecUsed/b;")
917
917
918
918
1.6.38. profiles_no_value (string)
919
919
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.
923
924
924
925
Default value is “empty”.
925
926
@@ -1462,7 +1463,7 @@ if ( get_dialogs_by_profile("caller",$fU,$avp(dlg_jsons),$avp(dlg_no)) )
1462
1463
if (load_dialog_ctx("$var(callid)")) {
1463
1464
xlog("The dialog '$var(callid)' already has a duration "
1464
1465
"of $DLG_lifetime seconds\n");
1465
- if (is_in_profile("inbound_call "))
1466
+ if (is_in_profile("inboundCall "))
1466
1467
xlog("this dialog is an inbound call\n");
1467
1468
unload_dialog_ctx();
1468
1469
}
@@ -1503,7 +1504,7 @@ if (load_dialog_ctx("$var(callid)")) {
1503
1504
1504
1505
Example 1.63. set_dlg_profile usage
1505
1506
...
1506
- set_dlg_profile("inbound_call ");
1507
+ set_dlg_profile("inboundCall ");
1507
1508
set_dlg_profile("caller",$fu);
1508
1509
...
1509
1510
@@ -1525,7 +1526,7 @@ set_dlg_profile("caller",$fu);
1525
1526
1526
1527
Example 1.64. unset_dlg_profile usage
1527
1528
...
1528
- unset_dlg_profile("inbound_call ");
1529
+ unset_dlg_profile("inboundCall ");
1529
1530
unset_dlg_profile("caller",$fu);
1530
1531
...
1531
1532
@@ -1553,7 +1554,7 @@ unset_dlg_profile("caller",$fu);
1553
1554
1554
1555
Example 1.65. is_in_profile usage
1555
1556
...
1556
- if (is_in_profile("inbound_call ")) {
1557
+ if (is_in_profile("inboundCall ")) {
1557
1558
log("this request belongs to a inbound call\n");
1558
1559
}
1559
1560
...
@@ -1593,14 +1594,14 @@ get_profile_size("caller", $fu, $var(size));
1593
1594
xlog("currently, the user $fu has $var(size) active outgoing calls\n");
1594
1595
...
1595
1596
1596
- 1.7.15. set_dlg_flag(idx )
1597
+ 1.7.15. set_dlg_flag(flag )
1597
1598
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
1599
1600
dialog persistent and they can be accessed (set and test) for
1600
1601
all requests belonging to the dialog.
1601
1602
1602
1603
Parameters:
1603
- * idx (int ) - The flag index can be between 0 and 31 .
1604
+ * flag (string, static ) - The flag name .
1604
1605
1605
1606
NOTE: the dialog must be created before using this function
1606
1607
(use create_dialog() function before).
@@ -1610,15 +1611,15 @@ xlog("currently, the user $fu has $var(size) active outgoing calls\n");
1610
1611
1611
1612
Example 1.67. set_dlg_flag usage
1612
1613
...
1613
- set_dlg_flag(3 );
1614
+ set_dlg_flag("MY_DLG_FLAG" );
1614
1615
...
1615
1616
1616
- 1.7.16. test_and_set_dlg_flag(idx , value)
1617
+ 1.7.16. test_and_set_dlg_flag(flag , value)
1617
1618
1618
- Atomically checks if the dialog flag index idx is equal to
1619
+ Atomically checks if the dialog flag named flag is equal to
1619
1620
value. If true, changes the value with the opposite one. This
1620
1621
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 .
1622
1623
* value (int) - The value should be 0 (false) or 1 (true).
1623
1624
1624
1625
NOTE: the dialog must be created before using this function
@@ -1629,17 +1630,17 @@ set_dlg_flag(3);
1629
1630
1630
1631
Example 1.68. test_and_set_dlg_flag usage
1631
1632
...
1632
- test_and_set_dlg_flag(3 , 0);
1633
+ test_and_set_dlg_flag("MY_DLG_FLAG" , 0);
1633
1634
...
1634
1635
1635
- 1.7.17. reset_dlg_flag(idx )
1636
+ 1.7.17. reset_dlg_flag(flag )
1636
1637
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.
1640
1641
1641
1642
Parameters:
1642
- * idx (int ) - The flag index can be between 0 and 31 .
1643
+ * flag (string, static ) - The flag name .
1643
1644
1644
1645
NOTE: the dialog must be created before using this function
1645
1646
(use create_dialog() function before).
@@ -1649,17 +1650,17 @@ test_and_set_dlg_flag(3, 0);
1649
1650
1650
1651
Example 1.69. reset_dlg_flag usage
1651
1652
...
1652
- reset_dlg_flag(16 );
1653
+ reset_dlg_flag("MY_DLG_FLAG" );
1653
1654
...
1654
1655
1655
- 1.7.18. is_dlg_flag_set(idx )
1656
+ 1.7.18. is_dlg_flag_set(flag )
1656
1657
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
1658
1659
flags are dialog persistent and they can be accessed (set and
1659
1660
test) for all requests belonging to the dialog.
1660
1661
1661
1662
Parameters:
1662
- * idx (int ) - The flag index can be between 0 and 31 .
1663
+ * flag (string, static ) - The flag name .
1663
1664
1664
1665
NOTE: the dialog must be created before using this function
1665
1666
(use create_dialog() function before).
@@ -1669,8 +1670,8 @@ reset_dlg_flag(16);
1669
1670
1670
1671
Example 1.70. is_dlg_flag_set usage
1671
1672
...
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");
1674
1675
}
1675
1676
...
1676
1677
@@ -2041,7 +2042,7 @@ GIwZjAzNGM1ZDY
2041
2042
* value (optional)- string value to toughen the check;
2042
2043
2043
2044
MI FIFO Command Format:
2044
- opensips-cli -x mi profile_get_size inbound_calls
2045
+ opensips-cli -x mi profile_get_size inboundCalls
2045
2046
2046
2047
1.9.5. profile_list_dlgs
2047
2048
@@ -2062,7 +2063,7 @@ GIwZjAzNGM1ZDY
2062
2063
* value (optional)- string value to toughen the check;
2063
2064
2064
2065
MI FIFO Command Format:
2065
- opensips-cli -x mi profile_list_dlgs inbound_calls
2066
+ opensips-cli -x mi profile_list_dlgs inboundCalls
2066
2067
2067
2068
1.9.6. profile_get_values
2068
2069
@@ -2077,7 +2078,7 @@ GIwZjAzNGM1ZDY
2077
2078
* profile - name of the profile to list the dialog for.
2078
2079
2079
2080
MI FIFO Command Format:
2080
- opensips-cli -x mi profile_get_values inbound_calls
2081
+ opensips-cli -x mi profile_get_values inboundCalls
2081
2082
2082
2083
1.9.7. profile_end_dlgs
2083
2084
@@ -2094,7 +2095,7 @@ GIwZjAzNGM1ZDY
2094
2095
only the dialogs with the specified value
2095
2096
2096
2097
MI FIFO Command Format:
2097
- opensips-cli -x mi profile_end_dlgs inbound_calls
2098
+ opensips-cli -x mi profile_end_dlgs inboundCalls
2098
2099
2099
2100
1.9.8. dlg_db_sync
2100
2101
@@ -2286,10 +2287,10 @@ GIwZjAzNGM1ZDY
2286
2287
2287
2288
1.10.4. $DLG_flags
2288
2289
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().
2293
2294
2294
2295
NULL will be returned if there is no dialog for the request.
2295
2296
0 commit comments