<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Maryam,</p>
<p>thanks for the report. Would be great if you could create for this extensions/bugfixes a pull request on our github tracker. Then it can be reviewed and integrated it into the code.<br>
</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 25.08.19 um 07:22 schrieb Maryam Baghdadi:<br>
</div>
<blockquote type="cite" cite="mid:CAPrdAbDwq=Gb5rWGO++zLhrdEAvGKUM=vtVwbCZbm-Yjoxd0xQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
Hello,</div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
<br>
</div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
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. </div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
I added parse and checking "json" string in diameter_request function in ims_diameter_server.c file :</div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
<br>
</div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
      if (message) {<br>
                if (get_str_fparam(&s_message, msg, (fparam_t*)message) < 0) {<br>
                    LM_ERR("failed to get json string\n");<br>
                    return -1;<br>
                }<br>
                LM_DBG("json %.*s\n", s_message.len, s_message.s);<br>
        }<br>
</div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
<br>
</div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
<br>
</div>
<div class="gmail_default" style="font-family:trebuchet
          ms,sans-serif;color:#20124d">
 also cdp_get_session function in cdp module has problem with "lock and unlock session" and   "<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"> AAASessionsLock(hash);</span></div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
" doesn't work correctly.  I comment "<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"> AAASessionsLock(hash);"  and  "</span><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"> AAASessionsUnlock(hash);" </span></div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br>
</span></div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">I recompiled ims_diameter_server and cdp modules again </span></div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br>
</span></div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">called below part in request_route of my configuration :</span></div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
<span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)"><br>
</span></div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
 if(is_method("REGISTER"))<br>
        {<br>
       diameter_request("hss domain address", "16777217", "306", "{ 'avpCode':263 , ....}");<br>
        }<br>
</div>
<div class="gmail_default" style="font-family:"trebuchet
          ms",sans-serif;color:rgb(32,18,77)">
this worked correctly and UDR request sent to hss . </div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Development Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.kamailio.org">sr-dev@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>