<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi, Pat!<br>
<br>
Unfortunately there is no other way to do what you need. The idea
is that the accounting is done when you call loose_route(), and
before that you don't have the dialog - therefore you don't have
the dlg_vals.<br>
<br>
The only solution I can think of is to use local_cache, and find a
way to uniqly store the keys per dialog so that they don't overlap
when you have multiple legs.<br>
<br>
As good news, this has been sorted out in the master branch, and
will be available starting from OpenSIPS 2.3 release.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 08/30/2016 11:40 PM, Pat Burke
wrote:<br>
</div>
<blockquote
cite="mid:68356998ddf8b58dccb8ea11a5e2e756@voxtelesys.com"
type="cite">
<title></title>
<div class="iw_mail" dir="ltr">Hello,
<div><br>
</div>
<div>I am trying to handle a case where the same call can be
routed through the system (inbound call that is transferred to
another phone number). I am trying to add values to the cdr
record in the db_extra_bye values. Everything works if I
populate the values prior to calling loose_route. But that
doesn't work for me because am trying to use a dialog variable
($dlg_val(xxx)) to store/retrieve information in cache to
calculate the duration of the call - in order to get the
dialog values I have to call loose_route. The issue comes in
because I the call can go through the system multiple times
(up to twice) so I can't use the call id ($ci) to identify the
call (both instances of the call have the same call id).</div>
<div><br>
</div>
<div>Any suggestions?<br>
<br>
<div class="signature">
<div style="font-family: arial, helvetica, sans-serif;
font-size: 16px;"><span data-mce-style="color: #808080;
font-family: arial,helvetica,sans-serif; font-size:
11pt;" style="color: rgb(128, 128, 128); font-size:
11pt;">Regards,</span></div>
<div style="font-family: arial, helvetica, sans-serif;
font-size: 16px;">
<span data-mce-style="color: #808080; font-family:
arial,helvetica,sans-serif; font-size: 11pt;"
style="color: rgb(128, 128, 128); font-size: 11pt;"><strong>Pat
Burke</strong></span><br>
<br>
<div><br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>