did it in event_route[tm:local-request] with if for the BYE... works great, thanks!

On Sun, Jan 22, 2012 at 10:54 PM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,


On 1/21/12 3:16 PM, Uri Shacked wrote:
I did it under the route for the dialog timeout.
I undertand i need to keep the dlg_bye on this route.

dlg bye route is executed before the BYE is constructed, it is not the right place to execute acc_db_request.


 And add to my
cfg an event_route like you wrote, and there to perform the
db_request?

Yes, add event_route[tm:local-request] block where you execute acc_db_request if the method is BYE.

Cheers,
Daniel



On 1/21/12, Daniel-Constantin Mierla<miconda@gmail.com>  wrote:
Hello,

On 1/21/12 12:18 PM, Uri Shacked wrote:
thanks..... i already did. no bye is inserted to the DB. 2 invites for
the 183 and 200, 1 ack, and that is it...
another idea? :-)
just for clarification, in kamailio that route is now
event_route[tm:local-request].

What you can do in the event_route[tm:local-request] is to call
acc_db_request("200 Dlg", "acc").

Cheers,
Daniel

"
Hi,

set acc flag in local_route,

On Sat, Jan 21, 2012 at 1:08 PM, Uri Shacked<ushacked at gmail.com
<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>>  wrote:
"
/Hi,
/>/
/>/i wonder, anyone has a good idea of how to set a flag, that will insert
/>/the bye kamailio created to end the dialog into the acc table?
/>/i am checking "early media", "cancel", "ack" etc.... but when kamaiilo
/>/creates the bye with the dlg_bye command, there is no acc raw for
that....
/>/i can create a sqlops and insert with the call's params... but
there must
/>/be a nicer way, no?
/>/
/>/BR,
/>/Uri
/>/
/


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda



--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda