<div dir="ltr">Hi Razvan, Yes I have, but it have an empty value.<div>I have even try to assign it to a pvar but nothing works.</div><div><br></div><div>So far I have try this: dialog_dir=$avp(dlg_dir)&quot;)</div><div>and dialog_dir=$DLG_dir)&quot;)</div>
<div><br></div><div>Please note that I have a local route for the dialog timer:</div><div><div>local_route {</div><div>        if (is_method(&quot;BYE&quot;) &amp;&amp; $DLG_dir==&quot;UPSTREAM&quot;) {</div><div>                acc_db_request(&quot;200 Dialog Timeout&quot;,&quot;acc_bye&quot;);</div>
<div>                xlog(&quot;L_ERROR&quot;, &quot;$si $rU Dialog Timeout | $DLG_dir  \n&quot;);</div><div>        }</div><div>}</div></div><div><br></div><div>In this record, the $DLG_dir value is stored correctly.</div>
<div><br></div><div>Thanks,</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 30, 2014 at 4:13 AM, Răzvan Crainea <span dir="ltr">&lt;<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Wilmar!<br>
<br>
Have you tried setting the $DLG_dir pvar in the db_extra? For example:<br>
<br>
modparam(&quot;acc&quot;, &quot;db_extra&quot;, &quot;direction=$DLG_dir&quot;)<br>
<br>
Don&#39;t forget you have to add the direction column to your database table, both acc and missed_calls.<br>
<br>
Best regards,<br>
<br>
Razvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<u></u>com</a><br>
<br>
On 01/29/2014 09:15 PM, Wilmar Campos wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All,<br>
<br>
Can someone please point me to the right direction on how to store the<br>
$DLG_dir into the accounting cdr?<br>
<br>
Thanks,<br>
<br>
Wilmar<br>
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>