sip-lab 1.12.8 → 1.12.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/samples/register_subscribe.js +1 -1
- package/src/sip.cpp +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sip-lab",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@mayama/zeq": "^4.1.14",
|
|
26
26
|
"data-matching": "^1.23.8",
|
|
27
|
-
"sip-matching": "^1.3.
|
|
27
|
+
"sip-matching": "^1.3.31",
|
|
28
28
|
"string-matching": "^1.11.9"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/src/sip.cpp
CHANGED
|
@@ -1457,7 +1457,7 @@ int pjw_account_register(long acc_id, const char *json)
|
|
|
1457
1457
|
|
|
1458
1458
|
char buffer[MAX_JSON_INPUT];
|
|
1459
1459
|
|
|
1460
|
-
bool
|
|
1460
|
+
bool auto_refresh = false;
|
|
1461
1461
|
|
|
1462
1462
|
Document document;
|
|
1463
1463
|
|
|
@@ -1471,11 +1471,11 @@ int pjw_account_register(long acc_id, const char *json)
|
|
|
1471
1471
|
goto out;
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
|
-
if(!json_get_bool_param(document, "
|
|
1474
|
+
if(!json_get_bool_param(document, "auto_refresh", true, &auto_refresh)) {
|
|
1475
1475
|
goto out;
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
-
status = pjsip_regc_register(regc,
|
|
1478
|
+
status = pjsip_regc_register(regc, auto_refresh, &tdata);
|
|
1479
1479
|
if(status != PJ_SUCCESS)
|
|
1480
1480
|
{
|
|
1481
1481
|
set_error("pjsip_regc_register failed");
|