Hello,
I used from kamailio with MMTel features as AS in my IMS scenario and I
wanted to send UDR diameter request from AS to my HSS. According to my
study I should use "diameter_request" or "diameter_request_async" in
ims_diameter_server module . but some problem exists in diameter_request
function which caused "json" string as input of "diameter_request"
ignored
and fault happened.
I added parse and checking "json" string in diameter_request function in
ims_diameter_server.c file :
if (message) {
if (get_str_fparam(&s_message, msg, (fparam_t*)message) <
0) {
LM_ERR("failed to get json string\n");
return -1;
}
LM_DBG("json %.*s\n", s_message.len, s_message.s);
}
also cdp_get_session function in cdp module has problem with "lock and
unlock session" and " AAASessionsLock(hash);
" doesn't work correctly. I comment " AAASessionsLock(hash);" and
"
AAASessionsUnlock(hash);"
I recompiled ims_diameter_server and cdp modules again
called below part in request_route of my configuration :
if(is_method("REGISTER"))
{
diameter_request("hss domain address", "16777217",
"306", "{
'avpCode':263 , ....}");
}
this worked correctly and UDR request sent to hss .