Menu

#62 Matching a direct BYE

closed
modules (91)
5
2010-12-22
2010-10-19
No

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.

Discussion

  • Anca Vamanu

    Anca Vamanu - 2010-12-22
    • assigned_to: nobody --> vladut-paiu
     
  • Vladut-Stefan Paiu

    • status: open --> closed
     
  • Vladut-Stefan Paiu

    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

     

Log in to post a comment.

MongoDB Logo MongoDB