Just managed to achieve that by using the onreply_route and sip_trace() function.
Thanks for your attention. Regards, Douglas On Fri, Jan 25, 2013 at 2:56 PM, Douglas Lopes Pereira < [email protected]> wrote: > Guys, > > I was able to trace BYE messages after a session expires by adding the > sip_trace() function call on local_route as suggested by Bogdan. But > unfortunatelly I just realize that the 200OK reply for those messages are > not logged. > > I tried adding a call back for TMCB_RESPONSE_IN on sip_trace for the BYE > messages but it didn't work. > > Do you guys have any suggestion? > > Thanks for your help. > > Regards, > Douglas > > > On Thu, Jan 24, 2013 at 11:31 AM, Douglas Lopes Pereira < > [email protected]> wrote: > >> Fantastic! I didn't know about local_route. I'm now able to log using >> sip_trace(). >> >> Thank you very much. >> >> Regards, >> Douglas. >> >> >> On Thu, Jan 24, 2013 at 10:50 AM, Bogdan-Andrei Iancu < >> [email protected]> wrote: >> >>> ** >>> Douglas, all internally generated requests (including the ones from >>> dlg_end_dlg ) are visible in local_route. >>> >>> Regards, >>> >>> Bogdan-Andrei Iancu >>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com >>> >>> >>> On 01/24/2013 02:48 PM, Douglas Lopes Pereira wrote: >>> >>> Hi Bogdan, >>> >>> thanks for the quick reply. >>> >>> Unfortunatelly the BYE messages are sent by the dlg_end_dlg (triggered >>> on dlg_ontimeout) so I believe we don't have a chance to call sip_trace() >>> from any local route. Do we? >>> >>> Regards, >>> Douglas >>> >>> >>> On Thu, Jan 24, 2013 at 10:24 AM, Bogdan-Andrei Iancu < >>> [email protected]> wrote: >>> >>>> Hi Douglas, >>>> >>>> Indeed, that's an interesting case - have you tried to call sip_trace() >>>> from local route when the BYEs are sent out ? >>>> >>>> Regards, >>>> >>>> Bogdan-Andrei Iancu >>>> OpenSIPS Founder and Developerhttp://www.opensips-solutions.com >>>> >>>> >>>> On 01/24/2013 01:00 PM, Douglas Lopes Pereira wrote: >>>> >>>> Hi guys, >>>> >>>> Let's say my current opensips application is reponsible for finishing >>>> a call if the session is not refreshed by the endpoints. At that point what >>>> we do is to send BYE messages to both legs and get the 200OK from them to >>>> finish the dialog. >>>> >>>> My question is, is it possible to trace those BYE generated internally >>>> on opensips and 200OK replies using Siptrace? I've looked into the callback >>>> flags and none seems to apply to this case. >>>> >>>> My plan was to change the function t_uac on uac.c to call the log >>>> callback but I would like to hear from you if there is any other option. >>>> >>>> Thanks in advace. >>>> >>>> Regards, >>>> Douglas >>>> >>>> >>>> _______________________________________________ >>>> Users mailing >>>> [email protected]http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>>> >>>> >>> >> >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
