[OpenSIPS-Devel] [opensips] Cannot use unset_dlg_profile() in a named route called from onreply_route (#554)

Bogdan Andrei IANCU notifications at github.com
Mon Jun 29 13:02:43 CEST 2015


Hi @nud ,

1) you can use it from any named route, as time as that named route is triggered from a Failure, On-Reply or Branch route.

2) that's a non sense which is not allowed (to call a onreply_route from a different onreply_route) - only named routes (route[subrutine]) can be used as sub-routes.

3) no, only one onreply_route is allowed (as you have a single main route for requests). As the onreply_route may take decision on discarding the reply, it is impossible (from logical perspective) to chain multiple onreply_routes.  A simple and elegant approach is to use an onreply_route[] with flags and subroutines (named flags) to signalize and handle different tasks - arm the reply route, and depending on the flow in main route, set different flags; flags to be checked in onreply_route.

Let me know your thoughts.

PS: 1.8 became recently unsupported (end-of-life), consider upgrading to 1.11


---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/554#issuecomment-116608480
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150629/86aa5080/attachment.htm>


More information about the Devel mailing list