<div dir="ltr">Thank you very much.<div><br></div><div>I opened a feature request:</div><div><a href="https://github.com/kamailio/kamailio/issues/922">https://github.com/kamailio/kamailio/issues/922</a></div><div><br></div><div>If I will have time, I might try to implement such kind of functionality :)</div><div><br></div><div><i>Cheers,</i></div><div><i>Zoltan</i></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 January 2017 at 09:50, Carsten Bock <span dir="ltr"><<a href="mailto:carsten@ng-voice.com" target="_blank">carsten@ng-voice.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Zoltan,<br>
<br>
i've added something like this for the IMS-Charging Module in order to<br>
retrieve the "full" Charging Response:<br>
<br>
            case -1: #failure<br>
                xlog("L_ERR", "CCR failure - error response sent from<br>
module\n");<br>
switch ($avp(s:cca_result_code)){<br>
case 5030:<br>
send_reply("403", "Charging User not found");<br>
               break;<br>
case 5031:<br>
send_reply("403", "Rating failed");<br>
               break;<br>
case 4010:<br>
send_reply("402", "Payment required - Unsufficient funds");<br>
               break;<br>
case 5006:<br>
send_reply("486", "Line limit exceeded");<br>
               break;<br>
default:<br>
send_reply("402","Payment required ($avp(s:cca_result_code))");<br>
               break;<br>
}<br>
<br>
(it's in the Master repo/example:<br>
<a href="https://github.com/kamailio/kamailio/blob/master/misc/examples/scscf/kamailio.cfg" rel="noreferrer" target="_blank">https://github.com/kamailio/<wbr>kamailio/blob/master/misc/<wbr>examples/scscf/kamailio.cfg</a>)<br>
<br>
In addition, I have a generic Diameter Client/Server Module, which<br>
unfortunately was not finished for Kamailio 5 (development branch is<br>
frozen at the moment), but in that case, you'll have to do all the<br>
processing yourself. We currently use it as a "Diameter Adapter",<br>
which takes a Diameter Request and forwards it through a message bus<br>
to worker processes (acting as a HSS).<br>
<br>
Thanks,<br>
Carsten<br>
<div><div class="h5"><br>
<br>
2017-01-06 18:47 GMT+01:00 Zoltán Miricz <<a href="mailto:zoltan.miricz@gmail.com">zoltan.miricz@gmail.com</a>>:<br>
> Hi,<br>
><br>
> Is somebody ever tried to manipulate and retrieve AVP variables from the<br>
> Sent/Received Diameter Messages via Config file?<br>
> Thank you very much in advance!<br>
><br>
> Cheers,<br>
> Zoltan<br>
><br>
> On 4 January 2017 at 20:37, Zoltán Miricz <<a href="mailto:zoltan.miricz@gmail.com">zoltan.miricz@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> Dear All,<br>
>><br>
>> I'm wondering is it possible to catch Diameter Messages and their AVP<br>
>> values from kamailio.cfg just like for SIP messages? (Using pseudo<br>
>> variables)<br>
>><br>
>> I looked into this function from the attached S-CSCF example.<br>
>><br>
>> route[REG_MAR_REPLY]<br>
>> {<br>
>><br>
>> #this is async so to know status we have to check the reply avp<br>
>><br>
>> xlog("L_DBG","maa_return code is $avp(s:maa_return_code)\n");<br>
>><br>
>> Sadly it gives back only 1, -1, -2. (which is based on cxdx_mar.c the rc)<br>
>> What I mainly looking for is the EXPERIMENTAL_RESULT (experimental_rc) and<br>
>> some different AVP values besides.<br>
>><br>
>><br>
>> Thank you very much in advance!<br>
>><br>
>> Cheers,<br>
>> Zoltan<br>
><br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
><br>
<br>
<br>
<br>
--<br>
Carsten Bock<br>
CEO (Geschäftsführer)<br>
<br>
ng-voice GmbH<br>
Millerntorplatz 1<br>
20359 Hamburg / Germany<br>
<br>
<a href="http://www.ng-voice.com" rel="noreferrer" target="_blank">http://www.ng-voice.com</a><br>
mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
<br>
Office <a href="tel:%2B49%2040%205247593-40" value="+4940524759340">+49 40 5247593-40</a><br>
Fax <a href="tel:%2B49%2040%205247593-99" value="+4940524759399">+49 40 5247593-99</a><br>
<br>
Sitz der Gesellschaft: Hamburg<br>
Registergericht: Amtsgericht Hamburg, HRB 120189<br>
Geschäftsführer: Carsten Bock<br>
Ust-ID: DE279344284<br>
<br>
Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
<a href="http://www.ng-voice.com/imprint/" rel="noreferrer" target="_blank">http://www.ng-voice.com/<wbr>imprint/</a><br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br></div>