"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/cgrates/cgrates_common.c" between
opensips-3.2.0-rc1.tar.gz and opensips-3.2.0.tar.gz

About: OpenSIPS is a multi-functional, multi-purpose signaling SIP Server (Session Initiation Protocol). It can act as SIP Router/Switch, SIP Registrar, Application Server, Redirect Server, Load Balancer / Dispatcher, Back-to-Back User Agent, Presence Server, IM Server, Session Border Controller, SIP Front-End, NAT traversal Server, IP Gateway (SMS, XMPP) and others.

cgrates_common.c  (opensips-3.2.0-rc1):cgrates_common.c  (opensips-3.2.0)
skipping to change at line 908 skipping to change at line 908
if (json_object_get_type(jresult) == json_type_null) if (json_object_get_type(jresult) == json_type_null)
jresult = NULL; jresult = NULL;
} }
if (json_object_object_get_ex(jobj, "error", &jerror) && jerror) { if (json_object_object_get_ex(jobj, "error", &jerror) && jerror) {
is_reply = 1; is_reply = 1;
if (json_object_get_type(jerror) == json_type_null) if (json_object_get_type(jerror) == json_type_null)
jerror = NULL; jerror = NULL;
} }
if (is_reply) { if (is_reply) {
if (!proc_reply) {
LM_ERR("no handler for reply %s\n", rpc);
return -2;
}
LM_DBG("treating JSON-RPC as a reply\n"); LM_DBG("treating JSON-RPC as a reply\n");
if (jerror) { if (jerror) {
type = json_object_get_type(jerror); type = json_object_get_type(jerror);
switch (type) { switch (type) {
case json_type_null: case json_type_null:
if (!jresult) { if (!jresult) {
LM_ERR("Invalid RPC: both \"error\" and \ "result\" are null: %s\n", rpc); LM_ERR("Invalid RPC: both \"error\" and \ "result\" are null: %s\n", rpc);
return -3; return -3;
} }
break; break;
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)