[Kamailio-Devel] dialog:log_next_state_dlg: bogus event 2 in state 3

Alex Hermann alex at speakup.nl
Thu Mar 12 14:02:03 CET 2009


On Thursday 05 March 2009, Ovidiu Sas wrote:
> This is a known bug in the dialog state machine: a race between 200ok and
> ack. It has not been fixed yet.

Is the fix Bogdan created for opensips also usable on Kamailio, or is the
dialog handling too much different between Kamailio and opensips?


Index: kamailio-1.4/modules/dialog/dlg_handlers.c
===================================================================
--- kamailio-1.4.orig/modules/dialog/dlg_handlers.c     2009-03-12 13:53:57.000000000 +0100
+++ kamailio-1.4/modules/dialog/dlg_handlers.c  2009-03-12 13:55:07.000000000 +0100
@@ -477,7 +477,7 @@
        }

        if ( d_tmb.register_tmcb( 0, t,
-                                 TMCB_RESPONSE_OUT|TMCB_TRANS_DELETED|TMCB_RESPONSE_FWDED,
+                                 TMCB_RESPONSE_PRE_OUT|TMCB_TRANS_DELETED|TMCB_RESPONSE_FWDED,
                                  dlg_onreply, (void*)dlg)<0 ) {
                LM_ERR("failed to register TMCB\n");
                goto error;



-- 
Greetings,

Alex Hermann




More information about the Devel mailing list