<p>Looking at the resulting diff of the PR (<a href="https://patch-diff.githubusercontent.com/raw/kamailio/kamailio/pull/2124.diff" rel="nofollow">https://patch-diff.githubusercontent.com/raw/kamailio/kamailio/pull/2124.diff</a>), I see that the src/core/parser/parse_uri.h has a single empty line removed. I guess that is not really needed.</p>
<p>The the name of the C function exported to kamailio.cfg file is named <code>ki_set_alias_to_avp</code>, but the <code>ki_</code> prefix is used for functions exported to KEMI interface. Those exported to kamailio.cfg have usually the <code>w_</code> prefix. Then the prototype for kamailio.cfg functions is with three parameters (one sip_msg* and two char*), it is safer to set it like this even if the 2nd parameter is not used, because the core interpreter gives NULL as 2nd char* param when executing the function.</p>
<p>Then, you should export the new function to kemi interface as well, which is more or less the <code>set_alias_to_avp_f()</code>, eventually you name this one <code>ki_set_alias_to_avp</code>.</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/pull/2124?email_source=notifications&email_token=ABO7UZLDBNL7RXCKLRD4DY3QTFMUTA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDW2K3I#issuecomment-552445293">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJLLDGY2J6QTKD25H3QTFMUTANCNFSM4JKWMD5Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZISVXEWW66MFPQ2CGLQTFMUTA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDW2K3I.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/pull/2124?email_source=notifications\u0026email_token=ABO7UZLDBNL7RXCKLRD4DY3QTFMUTA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDW2K3I#issuecomment-552445293",
"url": "https://github.com/kamailio/kamailio/pull/2124?email_source=notifications\u0026email_token=ABO7UZLDBNL7RXCKLRD4DY3QTFMUTA5CNFSM4JKWMD52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDW2K3I#issuecomment-552445293",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>