<div dir="ltr">did it in event_route[tm:local-request] with if for the BYE... works great, thanks!<br><br>
<div class="gmail_quote">On Sun, Jan 22, 2012 at 10:54 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hello, 
<div class="im"><br><br>On 1/21/12 3:16 PM, Uri Shacked wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">I did it under the route for the dialog timeout.<br>I undertand i need to keep the dlg_bye on this route.<br></blockquote>
<br></div>dlg bye route is executed before the BYE is constructed, it is not the right place to execute acc_db_request. 
<div class="im"><br><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"> And add to my<br>cfg an event_route like you wrote, and there to perform the<br>db_request?<br></blockquote><br>
</div>Yes, add event_route[tm:local-request] block where you execute acc_db_request if the method is BYE.<br><br>Cheers,<br>Daniel 
<div class="HOEnZb">
<div class="h5"><br><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><br>On 1/21/12, Daniel-Constantin Mierla&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;  wrote:<br>

<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hello,<br><br>On 1/21/12 12:18 PM, Uri Shacked wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">thanks..... i already did. no bye is inserted to the DB. 2 invites for<br>the 183 and 200, 1 ack, and that is it...<br>
another idea? :-)<br></blockquote>just for clarification, in kamailio that route is now<br>event_route[tm:local-request].<br><br>What you can do in the event_route[tm:local-request] is to call<br>acc_db_request(&quot;200 Dlg&quot;, &quot;acc&quot;).<br>
<br>Cheers,<br>Daniel<br><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">&quot;<br>Hi,<br><br>set acc flag in local_route,<br><br>On Sat, Jan 21, 2012 at 1:08 PM, Uri Shacked&lt;ushacked at <a href="http://gmail.com/" target="_blank">gmail.com</a><br>
&lt;<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a>&gt;&gt;  wrote:<br>&quot;<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">/Hi,<br></blockquote>/&gt;/<br>/&gt;/i wonder, anyone has a good idea of how to set a flag, that will insert<br>
/&gt;/the bye kamailio created to end the dialog into the acc table?<br>/&gt;/i am checking &quot;early media&quot;, &quot;cancel&quot;, &quot;ack&quot; etc.... but when kamaiilo<br>/&gt;/creates the bye with the dlg_bye command, there is no acc raw for<br>
that....<br>/&gt;/i can create a sqlops and insert with the call&#39;s params... but<br>there must<br>/&gt;/be a nicer way, no?<br>/&gt;/<br>/&gt;/BR,<br>/&gt;/Uri<br>/&gt;/<br>/<br><br><br>______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote>--<br>Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br><a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br><br></blockquote></blockquote><br>-- <br>Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br><a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br></div></div></blockquote></div><br></div>