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

2022-08-30 Thread Li Cai
Hi Bogdan,

Thank you very much for the help, I have located the issue in our script.


Thanks,
Li

From: Bogdan-Andrei Iancu 
Sent: August 30, 2022 9:20 AM
To: Li Cai ; OpenSIPS users mailling list 

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


WARNING: External Email: Exercise Caution

Hi Li,

The INVITE in #77 is an initial INVITE, connecting to a new party (as a result 
of the bridging), so the TO hdr in that INVITE is dictated by the B2B logic - 
as you can see the TO URI is the same as RURI, pointing to the new party in the 
bridging.

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%7C2bec8b8171384770109208da8a8a63b2%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637974624245097901%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Y02H11JhkeX68kNhMH4gcDCBk05Gr7ILA0gQeb%2BwqyA%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%7C2bec8b8171384770109208da8a8a63b2%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637974624245097901%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=atfyMuTwfQMAmUVW%2FzPtmEsbaE6nSySyHCsgI5xpzAA%3D&reserved=0>
On 8/25/22 10:57 PM, Li Cai wrote:
[This email is resent for the last one is oversized]

Hi Bodgan,

Thanks a lot for the help, the pcap file is attached.  The call flow is as -

   #11. INVITE from the caller on 10.10.8.131 to B2BProxy 
10.10.9.205
   #15. Forwarded INVITE from B2BProxy with the expected To 
header to SIP UA1
.. . the call is setup and then b2b_bridge is triggered  ...
   #75. B2BProxy sent reINVITE to the caller
   #77. B2BProxy sent INVITE to SIP UA2 with the unaccepted To 
header
   #79. SIP UA2 rejected the call


The step #77 And #79 shows the problem, that the call was rejected as the To 
header in INVITE is not using the UA2's IP instead of B2BProxy's IP as domain 
name, which is required in our system.

In our opensips.cfg script, we have already included clauses like 
remove_hf("To") and append_hf("To ...") but seems like they only work before 
b2b_bridge occurs.




Thanks,
Li




From: Bogdan-Andrei Iancu mailto:bog...@opensips.org>>
Sent: August 25, 2022 3:05 AM
To: Li Cai mailto:li@comtech.com>>; OpenSIPS users 
mailling list mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] Modify the headers after executing a MI function 
in B2B_LOGIC module


WARNING: External Email: Exercise Caution
Hi Li,

Somehow we are going in circles here :). So, could you post a pcap for call 
going via your B2B  (showing all in and out SIP messages) and mention which 
frame is the outgoing request you cannot modify ?

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%7C2bec8b8171384770109208da8a8a63b2%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637974624245097901%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Y02H11JhkeX68kNhMH4gcDCBk05Gr7ILA0gQeb%2BwqyA%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%7C2bec8b8171384770109208da8a8a63b2%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637974624245097901%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=atfyMuTwfQMAmUVW%2FzPtmEsbaE6nSySyHCsgI5xpzAA%3D&reserved=0>
On 8/24/22 6:50 PM, Li Cai wrote:
Hi Bogdan,

Thanks for the explanation. I mean that the local_route can take effect for the 
forwarded INVITE(from incoming ones) in our proxy, but not after b2b_bridge. 
I'll do more debugging on it since the messages should be visible. Thank you 
very much.


Thanks,
Li

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


WARNING: External Email: Exercise Cautio

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

2022-08-30 Thread Bogdan-Andrei Iancu

Hi Li,

The INVITE in #77 is an initial INVITE, connecting to a new party (as a 
result of the bridging), so the TO hdr in that INVITE is dictated by the 
B2B logic - as you can see the TO URI is the same as RURI, pointing to 
the new party in the bridging.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 27-30 Sept 2022, Athens
  https://www.opensips.org/events/Summit-2022Athens/

On 8/25/22 10:57 PM, Li Cai wrote:


[This email is resent for the last one is oversized]

Hi Bodgan,

Thanks a lot for the help, the pcap file is attached.  The call flow 
is as –


   #11. INVITE from the caller on 10.10.8.131 to 
B2BProxy 10.10.9.205


   #15. Forwarded INVITE from B2BProxy with the 
expected To header to SIP UA1


    .. . the call is setup and then b2b_bridge is triggered  …

   #75. B2BProxy sent reINVITE to the caller

   #77. B2BProxy sent INVITE to SIP UA2 with the 
unaccepted To header


   #79. SIP UA2 rejected the call

The step #77 And #79 shows the problem, that the call was rejected as 
the To header in INVITE is not using the UA2’s IP instead of 
B2BProxy’s IP as domain name, which is required in our system.


In our opensips.cfg script, we have already included clauses like 
remove_hf(“To”) and append_hf(“To …”) but seems like they only work 
before b2b_bridge occurs.


Thanks,

Li

*From:*Bogdan-Andrei Iancu <mailto:bog...@opensips.org>>

*Sent:* August 25, 2022 3:05 AM
*To:* Li Cai mailto:li@comtech.com>>; 
OpenSIPS users mailling list <mailto:users@lists.opensips.org>>
*Subject:* Re: [OpenSIPS-Users] Modify the headers after executing a 
MI function in B2B_LOGIC module


*WARNING: External Email: Exercise Caution*

Hi Li,

Somehow we are going in circles here :). So, could you post a pcap for 
call going via your B2B  (showing all in and out SIP messages) and 
mention which frame is the outgoing request you cannot modify ?


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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NsOtgfx4yXMaQTnaYHIT6%2FcSOPj20jmwJijgZKUHRQU%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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HesmiGoVT6s1gwqWYiWA4bhZmQJiV04AOUTXAAQSbww%3D&reserved=0>

On 8/24/22 6:50 PM, Li Cai wrote:

Hi Bogdan,

Thanks for the explanation. I mean that the local_route can take
effect for the forwarded INVITE(from incoming ones) in our proxy,
but not after b2b_bridge. I’ll do more debugging on it since the
messages should be visible. Thank you very much.

Thanks,

Li

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

*WARNING: External Email: Exercise Caution*

Hi Li,

All SIP requests generated by `b2b_bridge` are to be visible in
local_route. And on the contrary, the incoming (received) requests
DO NOT trigger local route.

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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NsOtgfx4yXMaQTnaYHIT6%2FcSOPj20jmwJijgZKUHRQU%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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV

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

2022-08-25 Thread Li Cai
[This email is resent for the last one is oversized]

Hi Bodgan,

Thanks a lot for the help, the pcap file is attached.  The call flow is as -

   #11. INVITE from the caller on 10.10.8.131 to B2BProxy 
10.10.9.205
   #15. Forwarded INVITE from B2BProxy with the expected To 
header to SIP UA1
.. . the call is setup and then b2b_bridge is triggered  ...
   #75. B2BProxy sent reINVITE to the caller
   #77. B2BProxy sent INVITE to SIP UA2 with the unaccepted To 
header
   #79. SIP UA2 rejected the call


The step #77 And #79 shows the problem, that the call was rejected as the To 
header in INVITE is not using the UA2's IP instead of B2BProxy's IP as domain 
name, which is required in our system.

In our opensips.cfg script, we have already included clauses like 
remove_hf("To") and append_hf("To ...") but seems like they only work before 
b2b_bridge occurs.




Thanks,
Li




From: Bogdan-Andrei Iancu mailto:bog...@opensips.org>>
Sent: August 25, 2022 3:05 AM
To: Li Cai mailto:li@comtech.com>>; OpenSIPS users 
mailling list mailto:users@lists.opensips.org>>
Subject: Re: [OpenSIPS-Users] Modify the headers after executing a MI function 
in B2B_LOGIC module


WARNING: External Email: Exercise Caution
Hi Li,

Somehow we are going in circles here :). So, could you post a pcap for call 
going via your B2B  (showing all in and out SIP messages) and mention which 
frame is the outgoing request you cannot modify ?

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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NsOtgfx4yXMaQTnaYHIT6%2FcSOPj20jmwJijgZKUHRQU%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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HesmiGoVT6s1gwqWYiWA4bhZmQJiV04AOUTXAAQSbww%3D&reserved=0>
On 8/24/22 6:50 PM, Li Cai wrote:
Hi Bogdan,

Thanks for the explanation. I mean that the local_route can take effect for the 
forwarded INVITE(from incoming ones) in our proxy, but not after b2b_bridge. 
I'll do more debugging on it since the messages should be visible. Thank you 
very much.


Thanks,
Li

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


WARNING: External Email: Exercise Caution

Hi Li,

All SIP requests generated by `b2b_bridge` are to be visible in local_route. 
And on the contrary, the incoming (received) requests DO NOT trigger local 
route.

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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NsOtgfx4yXMaQTnaYHIT6%2FcSOPj20jmwJijgZKUHRQU%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%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HesmiGoVT6s1gwqWYiWA4bhZmQJiV04AOUTXAAQSbww%3D&reserved=0>
On 8/24/22 4:34 PM, Li Cai wrote:
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 <mailto:bog...@opensips.org>
Sent: August 24, 2022 7:18 AM
To: OpenSIPS users mailling list 
<mailto:users@lists.opensips.org>; Li Cai 
<mailto:li@comtech.com>

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

2022-08-25 Thread Bogdan-Andrei Iancu

Hi Li,

Somehow we are going in circles here :). So, could you post a pcap for 
call going via your B2B  (showing all in and out SIP messages) and 
mention which frame is the outgoing request you cannot modify ?


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 27-30 Sept 2022, Athens
  https://www.opensips.org/events/Summit-2022Athens/

On 8/24/22 6:50 PM, Li Cai wrote:


Hi Bogdan,

Thanks for the explanation. I mean that the local_route can take 
effect for the forwarded INVITE(from incoming ones) in our proxy, but 
not after b2b_bridge. I’ll do more debugging on it since the messages 
should be visible. Thank you very much.


Thanks,

Li

*From:*Bogdan-Andrei Iancu 
*Sent:* August 24, 2022 10:33 AM
*To:* Li Cai ; OpenSIPS users mailling list 

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


*WARNING: External Email: Exercise Caution*

Hi Li,

All SIP requests generated by `b2b_bridge` are to be visible in 
local_route. And on the contrary, the incoming (received) requests DO 
NOT trigger local route.


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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Alp8ey%2Frlw%2BagiLIsIphXz51eF74enunVGtuvY3veHA%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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ECg5RaeWv7nyMoFz2sTaFdQU%2BqzGA3wBaCGzbUfmygo%3D&reserved=0>

On 8/24/22 4:34 PM, Li Cai wrote:

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 
<mailto:bog...@opensips.org>
*Sent:* August 24, 2022 7:18 AM
*To:* OpenSIPS users mailling list 
<mailto:users@lists.opensips.org>; Li Cai 
<mailto:li....@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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Alp8ey%2Frlw%2BagiLIsIphXz51eF74enunVGtuvY3veHA%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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ECg5RaeWv7nyMoFz2sTaFdQU%2BqzGA3wBaCGzbUfmygo%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

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

2022-08-24 Thread Li Cai
Hi Bogdan,

Thanks for the explanation. I mean that the local_route can take effect for the 
forwarded INVITE(from incoming ones) in our proxy, but not after b2b_bridge. 
I'll do more debugging on it since the messages should be visible. Thank you 
very much.


Thanks,
Li

From: Bogdan-Andrei Iancu 
Sent: August 24, 2022 10:33 AM
To: Li Cai ; OpenSIPS users mailling list 

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


WARNING: External Email: Exercise Caution

Hi Li,

All SIP requests generated by `b2b_bridge` are to be visible in local_route. 
And on the contrary, the incoming (received) requests DO NOT trigger local 
route.

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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Alp8ey%2Frlw%2BagiLIsIphXz51eF74enunVGtuvY3veHA%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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ECg5RaeWv7nyMoFz2sTaFdQU%2BqzGA3wBaCGzbUfmygo%3D&reserved=0>
On 8/24/22 4:34 PM, Li Cai wrote:
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 <mailto:bog...@opensips.org>
Sent: August 24, 2022 7:18 AM
To: OpenSIPS users mailling list 
<mailto:users@lists.opensips.org>; Li Cai 
<mailto:li@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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Alp8ey%2Frlw%2BagiLIsIphXz51eF74enunVGtuvY3veHA%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%7C3cfc94bd30494557971708da85dd8120%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969483655810006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ECg5RaeWv7nyMoFz2sTaFdQU%2BqzGA3wBaCGzbUfmygo%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 

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

2022-08-24 Thread Bogdan-Andrei Iancu

Hi Li,

All SIP requests generated by `b2b_bridge` are to be visible in 
local_route. And on the contrary, the incoming (received) requests DO 
NOT trigger local route.


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 27-30 Sept 2022, Athens
  https://www.opensips.org/events/Summit-2022Athens/

On 8/24/22 4:34 PM, Li Cai wrote:


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 
*Sent:* August 24, 2022 7:18 AM
*To:* OpenSIPS users mailling list ; Li Cai 

*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@lists.opensips.org  <mailto:Users@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>



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2022-08-24 Thread Li Cai
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 
Sent: August 24, 2022 7:18 AM
To: OpenSIPS users mailling list ; Li Cai 

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@lists.opensips.org<mailto:Users@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>

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2022-08-24 Thread Bogdan-Andrei Iancu

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
OpenSIPS Summit 27-30 Sept 2022, Athens
  https://www.opensips.org/events/Summit-2022Athens/

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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2022-08-23 Thread Li Cai
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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users