[Devel] [ openser-Bugs-1737524 ] dialog: missing callback call for
timeout on early dialogs
SourceForge.net
noreply at sourceforge.net
Fri Jun 15 00:10:39 CEST 2007
Bugs item #1737524, was opened at 2007-06-14 18:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1737524&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
Assigned to: Nobody/Anonymous (nobody)
Summary: dialog: missing callback call for timeout on early dialogs
Initial Comment:
This bug is related to bug 1729550 - CANCEL does not update the dialog state:
http://sourceforge.net/tracker/index.php?func=detail&aid=1729550&group_id=139143&atid=743020
The scenario is the same. The dialog will transition from DLG_STATE_EARLY to DLG_STATE_DELETED on a callback from tm (TMCB_TRANS_DELETED) that will generate a DLG_EVENT_TDEL event.
In this particular case, the DLGCB_FAILED is not invoked.
Here's a simple patch that will fix this particular problem. Maybe this is not the best approach (and it may not cover all other cases, but it is fixing this particular scenario):
# diff -Naurp dlg_handlers.c dlg_handlers.c.new
--- dlg_handlers.c 2007-06-14 18:09:12.000000000 -0400
+++ dlg_handlers.c.new 2007-06-14 18:09:06.000000000 -0400
@@ -208,6 +208,13 @@ static void dlg_onreply(struct cell* t,
return;
}
+ if ( event==DLG_EVENT_TDEL && new_state==DLG_STATE_DELETED &&
+ old_state==DLG_STATE_EARLY) {
+ DBG("DEBUG:dialog:dlg_onreply: dialog %p failed (transaction timeout)\n",
+ dlg);
+ /* dialog setup not completed (timeout) */
+ run_dlg_callbacks( DLGCB_FAILED, dlg, rpl);
+ }
return;
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1737524&group_id=139143
More information about the Devel
mailing list