<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>The xavps are specific for an transaction, even if you replicate
them, it won't make much sense on the other instance if you do not
have the transaction to associate the replicated xavps to it.</p>
<p>One of the xavps related to dispatcher is storing the pointer to
the local socket to be used for sending out (if specified as
attribute). In the past, when dispatcher was using avps, the
pointer address was stored formatted as string. In both cases, old
or new, replicating this value is useless, because it points to
the memory of local kamailio. If you don't set send socket for
dispatcher addresses, then this has no effect for the replication.</p>
<p>Given the above, and once again, replication of xavps makes no
sense without their associated transaction, the way to replicate
xavps is to serialize them to a string, replicate the value using
dmq or uac_req_send() and in the other side deserialize. You can
serialize to parameters format by doing string concatenation and
deserialize with xavp_params_explode(), or serialize to json
format and then use json/jansson modules to deserialize. You can
also use embedded scripting languages to help with
serialization/deserialization.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 16.10.18 16:34, Igor Olhovskiy
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:8d0be93a-4567-4efc-a42c-fdc4b557cd63@Spark">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
<div name="messageBodySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Idea
is I’m not sure I can store XAVP in htable due to different data
types they are handle.</div>
<div name="messageSignatureSection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br>
Regards, Igor</div>
<div name="messageReplySection" style="font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, sans-serif;">On
Oct 15, 2018, 10:39 PM +0300, Henning Westerholt
<a class="moz-txt-link-rfc2396E" href="mailto:hw@kamailio.org"><hw@kamailio.org></a>, wrote:<br>
<blockquote type="cite" style="margin: 5px 5px; padding-left:
10px; border-left: thin solid #1abc9c;">Am Donnerstag, 11.
Oktober 2018, 09:21:28 CEST schrieb Igor Olhovskiy:<br>
<blockquote type="cite" style="margin: 5px 5px; padding-left:
10px; border-left: thin solid #e67e22;">Is there any
possibility to share xavp’s between Kamailio nodes? Idea is
to<br>
share result of ds_select_dst between several nodes and as
5.2 Kamailio<br>
stores result in xavp - need to share this structure as well<br>
<br>
Right now sharing between nodes is done on sht + dmq and I’m
not sure I can<br>
save xavp in sht.<br>
</blockquote>
<br>
Hello Igor,<br>
<br>
I don't understand your problem completely, sorry. Can't you
just access the<br>
hash table in a similar way as the xavp? You can of course
also just assign<br>
the xavp to the htable.<br>
<br>
Best regards,<br>
<br>
Henning<br>
<br>
--<br>
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a><br>
Kamailio security assessment -
<a class="moz-txt-link-freetext" href="https://skalatan.de/de/assessment">https://skalatan.de/de/assessment</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
</body>
</html>