[sr-dev] git:master:d7653eb9: dialog: converted to use json helper macros for dlg profile
Daniel-Constantin Mierla
miconda at gmail.com
Mon Oct 31 20:55:05 CET 2016
Module: kamailio
Branch: master
Commit: d7653eb9e7e6ffe21988f2a616deae0c01083c57
URL: https://github.com/kamailio/kamailio/commit/d7653eb9e7e6ffe21988f2a616deae0c01083c57
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/d7653eb9e7e6ffe21988f2a616deae0c01083c57.diff
Patch: https://github.com/kamailio/kamailio/commit/d7653eb9e7e6ffe21988f2a616deae0c01083c57.patch
---
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)
More information about the sr-dev
mailing list