<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>look at uac module: uac_replace_from()/_to().</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 17.08.21 22:25, César Matheus wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAHaMpPNK=QcYTATHA_f81wTS=r-GzXf7gUffxBGUt6dKB2RnBg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi list.
<div><br>
</div>
<div>mY provider asks me to insert user = phone in my header.
because it requires to receive my INVITE with user = phone in
TO and FROM<br>
<br>
However, I add the user = phone in my configuration like this:<br>
$ ru = "sip:" + $ rU + "@" + $ sel (cfg_get.pstn1.gw_ip) + ":"<br>
+ $ sel (cfg_get.pstn1.gw_port) + "; user = phone";<br>
<br>
but only the INVITE appears, not in the TO or FROM.<br>
<br>
INVITE sip: <a class="moz-txt-link-abbreviated" href="mailto:09872323232@X.Y.X.K">09872323232@X.Y.X.K</a>: 5060; user = phone SIP / 2.0<br>
<br>
From: <sip: <a href="mailto:XXXXYYYYY@172.20.12.4"
moz-do-not-send="true">XXXXYYYYY@172.20.12.4</a>: 5060>;
tag = 15552444533876<br>
To: <sip: <a href="mailto:09872323232@172.20.12.2"
moz-do-not-send="true">09872323232@172.20.12.2</a>: 5060></div>
<div><br>
You can help me solve it.<br>
<br>
Thanks.<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">César Matheus</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
</body>
</html>