Revision: 6040
http://openser.svn.sourceforge.net/openser/?rev=6040&view=rev
Author: timoreimann
Date: 2010-08-05 16:39:48 +0000 (Thu, 05 Aug 2010)
Log Message:
-----------
modules/dialog: Provide new fix to prevent "unable to find
dialog" WARN messages caused by accessing a dialog in the
"deleted" state (often happens with simultaneous BYE requests when
both UAs hang up at the same time).
This commit uses a different approach where a "deleted" flag is
set in get_dlg() and lookup_dlg() which callers may evaluate.
Callers who only care about existing dialogs can ignore the flag
by passing a NULL argument.
This revision "replaces" 6027.
Modified Paths:
--------------
branches/1.5/modules/dialog/dialog.c
branches/1.5/modules/dialog/dlg_handlers.c
branches/1.5/modules/dialog/dlg_hash.c
branches/1.5/modules/dialog/dlg_hash.h
branches/1.5/modules/dialog/dlg_req_within.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 6039
http://openser.svn.sourceforge.net/openser/?rev=6039&view=rev
Author: timoreimann
Date: 2010-08-05 16:26:56 +0000 (Thu, 05 Aug 2010)
Log Message:
-----------
modules/dialog: Revert "Prevent 'unable to find dialog' WARN messages
caused by accessing a dialog in the "deleted" state".
The approach chosen was incomplete as it requires extending checks of
return values for all calls to get_dlg() and lookup_dlg() against
POINTER_CLOSED_MARKER. Otherwise, it may lead to server crashes when
code mistakes POINTER_CLOSED_MARKER for an existing dialog. However,
having to check against two return values requires a lot of logic
changes.
Therefore, a better approach will be taken in a follow-up commit.
This reverts release 6027.
Modified Paths:
--------------
branches/1.5/modules/dialog/dlg_cb.c
branches/1.5/modules/dialog/dlg_handlers.c
branches/1.5/modules/dialog/dlg_hash.c
branches/1.5/modules/dialog/dlg_hash.h
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Hello,
I was trying to write a small module using the pua api, unfortunatly I
have found that there is no callback on publish reply (struct publ_info
: publrpl_cb_t* cbrpl;) unlike what is described in the doc.
(http://kamailio.org/docs/modules/devel/modules_k/pua.html#id2556188).
Maybe I have missed an old thread ex plaining that issue ? I have found
that I can do something similar with register_puacb
(modules_k/pua/send_publish.c:341) but in the doc it's said that the
functio||n is for subscribe reply (it's why I was trying to add the
callback in struct publ_info).
If it's a bug, I have already a patch to add the publrpl_cb_t in
publ_info and I guess it's working but I have tested it only with my module.
Please, tell me if you want that I open a new ticket in the bug tracker
about it.
Thanks,
--
nikita