[SR-Users] Catching internally generated BYE event & other

Alex Balashov abalashov at evaristesys.com
Mon Apr 19 11:09:12 CEST 2010


On 04/19/2010 03:54 AM, Alex Balashov wrote:
> On 04/19/2010 03:50 AM, Alex Balashov wrote:
>> On 04/19/2010 03:36 AM, Iñaki Baz Castillo wrote:
>>
>>> AFAIR the main purpose of local_route was to handle the locallly
>>> generated BYE for accounting purposes.
>>
>> I defined an event_route[tm:local-request] but it does not appear to
>> fire in this scenario. Is it supposed to? Is there a possibility that
>> 'dialog' synthesises the BYE without using TM bindings?
>
> If you look in modules_k/dialog/dlg_req_within.c:dlg_bye_all(), it calls
> the locally defined send_bye(), which does appear to use TMCB:
>
> set_uac_req(&uac_r, &met, hdrs, NULL, dialog_info,
> TMCB_LOCAL_COMPLETED, bye_reply_cb, (void*)cell);
>
> result = d_tmb.t_request_within(&uac_r);
>
> So, why doesn't the event_route for local requests get called?
>

Then again, maybe problem has something to do with this:

Apr 19 04:55:04 diminuendo-1 /usr/local/sbin/kamailio[29521]: 
CRITICAL: dialog [dlg_hash.c:591]: bogus event 6 in state 2 for dlg 
0xb3821150 [3678:1255894621] with clid 
'1868cddf629ea8612fb1e116666da251 at 208.52.173.7' and tags 'as3d985c5d' ''
Apr 19 04:55:04 diminuendo-1 /usr/local/sbin/kamailio[29521]: INFO: 
[R-MAIN:1868cddf629ea8612fb1e116666da251 at 208.52.173.7] -> Other 
sequential ACK received from 208.52.173.7:5060
Apr 19 04:55:10 diminuendo-1 /usr/local/sbin/kamailio[29528]: WARNING: 
dialog [dlg_timer.c:243]: start with tl=0xb3821180 tl->prev=0xb37f98d0 
tl->next=0xb37f98d0 (50007729) at 50007729 and end with end=0xb37f98d0 
end->prev=0xb3821180 end->next=0xb3821180
Apr 19 04:55:10 diminuendo-1 /usr/local/sbin/kamailio[29528]: WARNING: 
dialog [dlg_timer.c:246]: getting tl=0xb3821180 tl->prev=0xb37f98d0 
tl->next=0xb37f98d0 with 50007729
Apr 19 04:55:10 diminuendo-1 /usr/local/sbin/kamailio[29528]: WARNING: 
dialog [dlg_timer.c:252]: end with tl=0xb37f98d0 tl->prev=0xb3821180 
tl->next=0xb3821180 and d_timer->first.next->prev=(nil)
Apr 19 04:55:10 diminuendo-1 /usr/local/sbin/kamailio[29523]: WARNING: 
dialog [dlg_req_within.c:172]: inconsitent dlg timer data on dlg 
0xb3821150 [3678:1255894621] with clid 
'1868cddf629ea8612fb1e116666da251 at 208.52.173.7' and tags 'as3d985c5d' 
'SDff59b99-ac3f4687+1+a4c0010+dc2edda'


-- 
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/




More information about the sr-users mailing list