[Kamailio-Devel] [ openser-Bugs-2174497 ] dialog module: wrong "lifetime" handling

SourceForge.net noreply at sourceforge.net
Fri Oct 17 13:01:29 CEST 2008


Bugs item #2174497, was opened at 2008-10-17 13:01
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=2174497&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 devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Klaus Darilion (klaus_darilion)
Assigned to: Nobody/Anonymous (nobody)
Summary: dialog module: wrong "lifetime" handling

Initial Comment:
In dlg_handlers.c:

function dlg_onroute():

    if ( (event==DLG_EVENT_REQ || event==DLG_EVENT_REQACK)
    && new_state==DLG_STATE_CONFIRMED) {
        LM_DBG("sequential request successfully processed\n");
        timeout = get_dlg_timeout(req);
        /* update timer during sequential request? */
        if (timeout!=default_timeout) {
            dlg->lifetime = timeout;
            if (update_dlg_timer( &dlg->tl, dlg->lifetime )==-1)
                LM_ERR("failed to update dialog lifetime\n");
        }

This causes the timer on in-dialog requests only be updated if the in-dialog request has a differnt timeout than the default module timeout. Thus, if timeout_avp is not used, the timer wont be updated.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2174497&group_id=139143



More information about the Devel mailing list