<p>For reference, an example of adding an XAVP with data pointing to share memory and a callback to free it is at:</p>
<ul>
<li><a href="https://github.com/kamailio/kamailio/blob/master/src/modules/rtjson/rtjson_routing.c#L159-L166">https://github.com/kamailio/kamailio/blob/master/src/modules/rtjson/rtjson_routing.c#L159-L166</a></li>
</ul>
<p>Data struct being constructed a bit above there:</p>
<ul>
<li><a href="https://github.com/kamailio/kamailio/blob/master/src/modules/rtjson/rtjson_routing.c#L147-L148">https://github.com/kamailio/kamailio/blob/master/src/modules/rtjson/rtjson_routing.c#L147-L148</a></li>
</ul>

<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/1955?email_source=notifications&email_token=ABO7UZPQJYQ2KY46SYJJBGTPVQ4O7A5CNFSM4HNCIWF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPH2IQ#issuecomment-492731682">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZICPERPLUZOCPUXGGDPVQ4O7ANCNFSM4HNCIWFQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZN42RSFDGHEUXHMWJLPVQ4O7A5CNFSM4HNCIWF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPH2IQ.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/1955?email_source=notifications\u0026email_token=ABO7UZPQJYQ2KY46SYJJBGTPVQ4O7A5CNFSM4HNCIWF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPH2IQ#issuecomment-492731682",
"url": "https://github.com/kamailio/kamailio/issues/1955?email_source=notifications\u0026email_token=ABO7UZPQJYQ2KY46SYJJBGTPVQ4O7A5CNFSM4HNCIWF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPH2IQ#issuecomment-492731682",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>