[OpenSIPS-Users] Modify the headers after executing a MI function in B2B_LOGIC module

Li Cai Li.Cai at comtech.com
Wed Aug 24 13:34:27 UTC 2022


Hi Bogdan,

Yes, we have put the changes by calling remove_hf() and append_hf() in the 'local_route', those functions for new incoming INVITE but not the INVITE sent out by 'b2b_bridge'.


Thanks,
Li

From: Bogdan-Andrei Iancu <bogdan at opensips.org>
Sent: August 24, 2022 7:18 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>; Li Cai <Li.Cai at comtech.com>
Subject: Re: [OpenSIPS-Users] Modify the headers after executing a MI function in B2B_LOGIC module


WARNING: External Email: Exercise Caution

Hi Li,

Have you tried to use the local_route in order to do custom changes on the outgoing requests generated by the B2B bridging ?

Best regards,


Bogdan-Andrei Iancu



OpenSIPS Founder and Developer

  https://www.opensips-solutions.com<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips-solutions.com%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C17d2eff609894c334f1e08da85c255cf%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969366968631388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5w7uQPa%2B8zj5lSGKxxxKRQq85K3KO6pRl%2BGpC6eFubo%3D&reserved=0>

OpenSIPS Summit 27-30 Sept 2022, Athens

  https://www.opensips.org/events/Summit-2022Athens/<https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips.org%2Fevents%2FSummit-2022Athens%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C17d2eff609894c334f1e08da85c255cf%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969366968631388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=z0te%2Fup4ZVEFg6Vya3kb2phptoqLgD6coRFXX4H%2Flak%3D&reserved=0>
On 8/23/22 10:34 PM, Li Cai wrote:
Hi,

I'm working on a change for a B2BUA based on OpenSIPs 2.4, but not sure if the function is supported or if it has been supported in the later versions.

We have used the MI command b2b_bridge to bridge existing calls from one entity to another and it works, the scenario is the same as expected. While besides this, we also need to modify one of the headers of the INVITEs sending to the new destination in this scenario,  our scripts in the opensips.cfg can't take any effect.


Thanks,
Li
NOTICE TO RECIPIENT: This email, including attachments, may contain information which is confidential, proprietary, attorney-client privileged and / or controlled under U.S. export laws and regulations and may be restricted from disclosure by applicable State and Federal law. Nothing in this email shall create any legal binding agreement between the parties unless expressly stated herein and provided by an authorized representative of Comtech Telecommunications Corp. or its subsidiaries. If you are not the intended recipient of this message, be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify us immediately by return email and permanently delete all copies of the original email and any attached documentation from any computer or other media.


_______________________________________________

Users mailing list

Users at lists.opensips.org<mailto:Users at lists.opensips.org>

http://lists.opensips.org/cgi-bin/mailman/listinfo/users<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7CLi.Cai%40comtech.com%7C17d2eff609894c334f1e08da85c255cf%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969366968631388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YVSa6wRpsnfmdm6JK37dS%2B4x4NOV5Yy8KHdf%2Fbh4PeI%3D&reserved=0>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220824/0f60994c/attachment-0001.html>


More information about the Users mailing list