<p></p>
<p>Hi <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/Stranger-inton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Stranger-inton">@Stranger-inton</a> ,<br>
I took your patch and put it into this branch with some increased debugging / logging,<br>
<a href="https://github.com/nickvsnetworking/kamailio/tree/Diameter_Fix">Kamailio - Diameter_Fix</a></p>
<p>Unfortunately I when I tried the patch it seems the get_str_fparam call hasn't fixed it,</p>
<p>Turning up the logging I can see that when get_str_fparam is called and the message converted to a string, but addAVPsfromJSON() is able to parse all the AVPs but as it's the root of the JSON key it fails.<br>
<a href="https://github.com/nickvsnetworking/kamailio/blob/60ec67edf24f465b64540546984f186760b048c4/src/modules/ims_diameter_server/avp_helper.c#L406">addAVPsfromJSON / ims_diameter_server</a></p>
<p>Being able to do Diameter routing in Kamailio would make my life easier, so I'm happy to pay you for your time if you think you can fix it, ping me an email at <em><a href="mailto:nick@nickvsnetworking.com">nick@nickvsnetworking.com</a></em> if you're interested,</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2035#issuecomment-770204518">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMKCRIYRLTNKLDVX7DS4P3GXANCNFSM4IMNUHLA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZL5MGARHSOVD4YVGZTS4P3GXA5CNFSM4IMNUHLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXUGGZQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2035#issuecomment-770204518",
"url": "https://github.com/kamailio/kamailio/issues/2035#issuecomment-770204518",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>