[Kamailio-Devel] [ openser-Patches-2119091 ] Run Create-Callbacks while loading the dialogs

SourceForge.net noreply at sourceforge.net
Thu Jan 29 14:00:57 CET 2009


Patches item #2119091, was opened at 2008-09-19 10:01
Message generated for change (Comment added) made by carstenbock
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743022&aid=2119091&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.3.x
>Status: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Carsten Bock (carstenbock)
Assigned to: Nobody/Anonymous (nobody)
Summary: Run Create-Callbacks while loading the dialogs

Initial Comment:
Hi,

in order to re-create the dialog callback-pointers, this patch will run the create-dialog-callbacks when loading dialogs from database at startup.
The change is minor:
I simply added the following lines to "load_dialog_info_from_db" from dlg_db_handlers.c:

/* Dialog created */
run_create_callbacks( dlg, NULL);

This will allow modules adding callbacks after an restart of the proxy.
In order for this to work, loading of dialogs in the first-child is required (Patch #2119079), since only then the create_callback-list has entries.

Attached patch is against OpenSER 1.3 and contains both changes from patch #2119079 and this tiny change.

Kind regards,
Carsten


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

>Comment By: Carsten Bock (carstenbock)
Date: 2009-01-29 13:00

Message:
As for Kamailio 1.4 and up, an according callback is implemented:
#define DLGCB_LOADED          (1<<0)

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

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



More information about the Devel mailing list