<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"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></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<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>> 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("200 Dlg", "acc").<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">"<br>Hi,<br><br>set acc flag in local_route,<br><br>On Sat, Jan 21, 2012 at 1:08 PM, Uri Shacked<ushacked at <a href="http://gmail.com/" target="_blank">gmail.com</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>>> wrote:<br>"<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">/Hi,<br></blockquote>/>/<br>/>/i wonder, anyone has a good idea of how to set a flag, that will insert<br>
/>/the bye kamailio created to end the dialog into the acc table?<br>/>/i am checking "early media", "cancel", "ack" etc.... but when kamaiilo<br>/>/creates the bye with the dlg_bye command, there is no acc raw for<br>
that....<br>/>/i can create a sqlops and insert with the call's params... but<br>there must<br>/>/be a nicer way, no?<br>/>/<br>/>/BR,<br>/>/Uri<br>/>/<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>