Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to intercept CANCEL and change fu&tu #3530

Open
CzyerChen opened this issue Nov 27, 2024 · 0 comments
Open

How to intercept CANCEL and change fu&tu #3530

CzyerChen opened this issue Nov 27, 2024 · 0 comments

Comments

@CzyerChen
Copy link

Hello, I am green hand here.
In my case, with topology_hiding and fU&tU rewrite, I have to mask initial fU & tU when proxying sip messages. All succeed, but CANCEL message inited locally by server, I can not change fu & tu, If I do it manually, tm can not match. Any suggestions?

thing I have:

CANCEL sip:[email protected]:5060 SIP/2.0                                                                                 
Via: SIP/2.0/UDP proxy.domain:5060;branch=z9hG4bK932b.33154787.0                                                                              
From: <sip:[email protected]>;tag=877556c1e3e94f9da53100d72eefa195                                                                        
Call-ID: TArYzB5EQMMZ3w1Yi5JAwtle2Bne0QGXmovMTc-                                                                                    
To: <sip:[email protected]>                                                                                                      
CSeq: 26759 CANCEL                                                                                                                             
Max-Forwards: 70                                                                                                                               
Reason: SIP;cause=487;text="ORIGINATOR_CANCEL"                                                                                                 
User-Agent: OpenSIPS (3.5.2 (x86_64/linux))                                                                                                    
Content-Length: 0  

thing I want:

CANCEL sip:[email protected]:5060 SIP/2.0                                                                                 
Via: SIP/2.0/UDP proxy.domain:5060;branch=z9hG4bK932b.33154787.0                                                                              
From: <sip:[email protected]>;tag=877556c1e3e94f9da53100d72eefa195                                                                        
Call-ID: TArYzB5EQMMZ3w1Yi5JAwtle2Bne0QGXmovMTc-                                                                                    
To: <sip:[email protected]>                                                                                                      
CSeq: 26759 CANCEL                                                                                                                             
Max-Forwards: 70                                                                                                                               
Reason: SIP;cause=487;text="ORIGINATOR_CANCEL"                                                                                                 
User-Agent: OpenSIPS (3.5.2 (x86_64/linux))                                                                                                    
Content-Length: 0  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant