<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>the variables attached to a transaction are the avps and xavps,
but at this moment you cannot add one if the transaction is not
active (under processing by config interpreter) at that moment. It
would be possible if you want to write some C code: search the
transaction by its id, then you can add avp/xavp as you can access
the lists inside the transaction structure.</p>
<p>Without C code, a solution for now will be to store the value in
a hash table using a key like "transactionid:varname", then when
the processing of the transaction is resumed, then you can check
in hash table and fetch the value from there if exists. The
transaction id is unique for a lot more than the lifetime of the
transaction, if you set auto expire for the htable for a value
that matches the transaction lifetime (see tm parameters), then
all should be safe.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 25.12.17 18:00, voipspace voipspace
wrote:<br>
</div>
<blockquote type="cite" cite="mid:2339551514221235@web10g.yandex.ru">
<div>
<div> </div>
<div>Hi</div>
<div> </div>
<div>Say I am in a event_route[xhttp:request], which is outside
of any transaction scope.</div>
<div> </div>
<div>I have a transaction id that I am about to resume with
t_continue.</div>
<div> </div>
<div>From here within event_route[xhttp:request] can avp
variable be set so they would be accessable in the resumed
transaction</div>
<div> </div>
<div>regards</div>
<div> </div>
<div> </div>
</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.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 Advanced Training - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>