Module: kamailio
Branch: master
Commit: d7653eb9e7e6ffe21988f2a616deae0c01083c57
URL:
https://github.com/kamailio/kamailio/commit/d7653eb9e7e6ffe21988f2a616deae0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-10-31T20:12:58+01:00
dialog: converted to use json helper macros for dlg profile
---
Modified: modules/dialog/dlg_profile.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d7653eb9e7e6ffe21988f2a616deae0…
Patch:
https://github.com/kamailio/kamailio/commit/d7653eb9e7e6ffe21988f2a616deae0…
---
diff --git a/modules/dialog/dlg_profile.c b/modules/dialog/dlg_profile.c
index a6c1434..174be97 100644
--- a/modules/dialog/dlg_profile.c
+++ b/modules/dialog/dlg_profile.c
@@ -1280,9 +1280,9 @@ int dlg_json_to_profiles(dlg_cell_t *dlg, srjson_doc_t *jdoc)
puid.s = jt->valuestring;
puid.len = strlen(puid.s);
} else if(strcmp(jt->string, "expires")==0) {
- expires = (time_t)jt->valueint;
+ expires = (time_t)SRJSON_GET_ULONG(jt);
} else if(strcmp(jt->string, "flags")==0) {
- flags = jt->valueint;
+ flags = SRJSON_GET_UINT(jt);
}
}
if(name.s==NULL)