[Kamailio-Devel] [ openser-Bugs-2630129 ] $dlg() returns random data

SourceForge.net noreply at sourceforge.net
Thu Feb 26 22:58:20 CET 2009


Bugs item #2630129, was opened at 2009-02-23 15:31
Message generated for change (Comment added) made by miconda
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2630129&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: Alex Hermann (axlh)
Assigned to: Daniel-Constantin Mierla (miconda)
Summary: $dlg() returns random data

Initial Comment:
In the initial request_route, onreply_route and branch_route, $dlg() pv's return sometimes <null>, sometimes random data.


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

>Comment By: Daniel-Constantin Mierla (miconda)
Date: 2009-02-26 23:58

Message:
You can use dlg_manage() instead of setting the flag. The dialog is created
upon this function call as opposite of setting the flag and get the dialog
upon transaction callback.

What you target with enabling the $dlg() in reply? I enabled dlg_get for
the other route types, does it meet your needs and obsoletes the patch?

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

Comment By: Alex Hermann (axlh)
Date: 2009-02-23 16:32

Message:
The initial INVITE. I tried to use it before t_relay() or t_newtran().
After inspecting the source and accessing $dlg() after t_newtran(), it is
ok.

Attached is a patch which tries to enable $dlg() from onreply_route. It
works, only the kamailio process needs to be killed with SIG_KILL now, so I
probably messed it up somewhere. Maybe you can see what goes wrong.
File Added: dialog-in-reply-route

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

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2009-02-23 16:16

Message:
In the request route, is it after dlg_manage() or rr processing?

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

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



More information about the Devel mailing list