You could try saving the request uri prior to calling lookup() and then restore it after. There’s also the $ou variable which provides the original request uri for the message prior to any modifications.
Ben Newlin From: Users <[email protected]> on behalf of Bogdan-Andrei Iancu <[email protected]> Reply-To: OpenSIPS users mailling list <[email protected]> Date: Friday, March 20, 2020 at 7:13 AM To: OpenSIPS users mailling list <[email protected]>, Grant Bagdasarian <[email protected]> Subject: Re: [OpenSIPS-Users] Registrar load branch flags Hi Grant, The branch flags seems to be exposed only via the lookup() function. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer https://www.opensips-solutions.com<https://www.opensips-solutions.com> OpenSIPS Summit, Amsterdam, May 2020 https://www.opensips.org/events/Summit-2020Amsterdam/<https://www.opensips.org/events/Summit-2020Amsterdam/> On 3/16/20 11:38 PM, Grant Bagdasarian wrote: Hello, I’m looking for a way to load the branch flags (set before calling save()) for a registered contact, without rewriting the request uri. Basically, test if the requested contact is registered, if so load its branch flags, but not rewrite the request uri. The lookup function provides the “B” flag, but this didn’t load the branch flags. I’ve also tried the other is_* functions exposed by the registrar module, but these also didn’t load the branch flags. Are there ways to accomplish this using already exposed functions in opensips or should I get creative and for instance use the sql_cacher to load the branch flags myself? Thanks and kind regards, Grant _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.opensips.org/cgi-bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
