[sr-dev] [tracker] Comment added: Kamailio 3.2.1 Dialog Crash

sip-router admin at sip-router.org
Fri Dec 2 00:26:39 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#186 - Kamailio 3.2.1 Dialog Crash
User who did this - Jasmin Schnatterbeck (jasmin)

----------
I had a similar problem, in "dlg_handlers.c", function "dlg_get_msg_dialog":

  dlg = get_dlg(&callid, &ftag, &ttag, NULL);

so "NULL" for direction... and in file "dlg_hash.h", function "match_dialog":

 if (*dir==DLG_DIR_DOWNSTREAM) {

but dir is NULL...

I changed "dlg_handlers.c", function "dlg_get_msg_dialog" to:


dlg_cell_t *dlg_get_msg_dialog(sip_msg_t *msg)
{
        dlg_cell_t *dlg = NULL;
        str callid;
    str ftag;
    str ttag;
        unsigned int dir = DLG_DIR_NONE;

        /* Retrieve the current dialog */
        dlg = dlg_get_ctx_dialog();
        if(dlg!=NULL)
                return dlg;

        if (pre_match_parse(msg, &callid, &ftag, &ttag, 0)<0)
                return NULL;
        dlg = get_dlg(&callid, &ftag, &ttag, &dir);
        if (dlg==NULL){
                LM_DBG("dlg with callid '%.*s' not found\n",
                                msg->callid->body.len, msg->callid->body.s);
                return NULL;
        }
        return dlg;
}


and it seems to work now...

Jasmin




----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=186#comment437

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list