[OpenSIPS-Devel] [ opensips-Feature Requests-3090388 ] Matching a direct BYE

SourceForge.net noreply at sourceforge.net
Wed Dec 22 12:47:20 CET 2010


Feature Requests item #3090388, was opened at 2010-10-19 13:07
Message generated for change (Comment added) made by vladut-paiu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=3090388&group_id=232389

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: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Stanislaw Pitucha (viraptor)
Assigned to: Vladut-Stefan Paiu (vladut-paiu)
Summary: Matching a direct BYE

Initial Comment:
I've found some situations where the BYE message comes in without any Route: header and the proxy is using dispatcher, or load-balancing for routing the requests. When the dialog module is enabled, it should be possible to match the message against a known dialog and route it to the destination host. Whether this is done explicitly, or with some magic like:

if (loose_route() || dialog_route())

where dialog_route simulates the same behaviour, sets $du, etc. - I don't know. There might be some better solution (a flag to automatically match all non-INVITE call-related messages against known dialogs?). Please add such option to opensips.

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

>Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2010-12-22 13:47

Message:
Hello,

This kind of behavior can be accomplished by using the validate_dialog()
and the fix_route_dialog() functions exported by the dialog module.
If for whatever reason, a message arrives with invalid R-URI or Route
headers, validate_dialog() can be used to detect such a case, and then
fix_route_dialog() will fix the actual SIP message, assuring it contains
the information from the known dialog. This feature is available both in
trunk and in 1.6.4 

More detailed info on the usage can be found here : 
http://www.opensips.org/html/docs/modules/devel/dialog.html#id293906

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086413&aid=3090388&group_id=232389



More information about the Devel mailing list