<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
The CANCEL is internally generated as it goes hop-by-hop (when
using transaction stateful mode).<br>
<br>
How do you change the FROM/TO URIs? if you change them with the
uac_replace_to/from functions, the CANCEL will be accordingly
generated, no need for any manual intervention. <br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 27.11.2024 05:58, 陈子妍 wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHhyrrsZ2fAtHsHE2KJd0ZfHUH1+tRJZNW-xhdBa366MMByhxg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello, I am green hand here.<br>
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?<br>
<br>
thing I have:<br>
<br>
<b><font color="#3d85c6">CANCEL <a class="moz-txt-link-freetext" href="sip:a.rewrite@b.domain:5060">sip:a.rewrite@b.domain:5060</a>
SIP/2.0
<br>
Via: SIP/2.0/UDP
proxy.domain:5060;branch=z9hG4bK932b.33154787.0
<br>
From:
<a class="moz-txt-link-rfc2396E" href="sip:a@a.domain"><sip:a@a.domain></a>;tag=877556c1e3e94f9da53100d72eefa195
<br>
Call-ID: TArYzB5EQMMZ3w1Yi5JAwtle2Bne0QGXmovMTc-
<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:b@proxy.domain"><sip:b@proxy.domain></a>
<br>
CSeq: 26759 CANCEL
<br>
Max-Forwards: 70
<br>
Reason: SIP;cause=487;text="ORIGINATOR_CANCEL"
<br>
User-Agent: OpenSIPS (3.5.2 (x86_64/linux))
<br>
Content-Length: 0 </font></b><br>
<br>
<div><br>
</div>
<div>thing I want:<br>
<br>
<font color="#6aa84f"><b>CANCEL <a class="moz-txt-link-freetext" href="sip:a.rewrite@b.domain:5060">sip:a.rewrite@b.domain:5060</a>
SIP/2.0
<br>
Via: SIP/2.0/UDP
proxy.domain:5060;branch=z9hG4bK932b.33154787.0
<br>
From:
<a class="moz-txt-link-rfc2396E" href="sip:a.rewrite@a.domain"><sip:a.rewrite@a.domain></a>;tag=877556c1e3e94f9da53100d72eefa195
<br>
Call-ID: TArYzB5EQMMZ3w1Yi5JAwtle2Bne0QGXmovMTc-
<br>
To: <a class="moz-txt-link-rfc2396E" href="sip:b.rewrite@proxy.domain"><sip:b.rewrite@proxy.domain></a>
<br>
CSeq: 26759 CANCEL
<br>
Max-Forwards: 70
<br>
Reason: SIP;cause=487;text="ORIGINATOR_CANCEL"
<br>
User-Agent: OpenSIPS (3.5.2 (x86_64/linux))
<br>
Content-Length: 0 </b></font><br>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>