<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>OK -- then, if you haven't set the port in the alias value, then
port matching is ignored by 'myself' condition. You can also set:</p>
<p>alias=myalias:5060</p>
<p>To restrict only for port 5060 when matching with 'myself'.<br>
</p>
For IP addresses, these are taken from listen sockets and they have
ports, so the port is added in the definition of the alias for that
ip.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 09.03.18 16:19, Nicolas Breuer
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:VI1PR0402MB3598E2C8F4159858E5FBC63B89DE0@VI1PR0402MB3598.eurprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI Emoji";}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI Emoji \,sans-serif";
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Texte brut Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
pre
{mso-style-priority:99;
mso-style-link:"Préformaté HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.PrformatHTMLCar
{mso-style-name:"Préformaté HTML Car";
mso-style-priority:99;
mso-style-link:"Préformaté HTML";
font-family:Consolas;
color:black;
mso-fareast-language:EN-US;}
span.TextebrutCar
{mso-style-name:"Texte brut Car";
mso-style-priority:99;
mso-style-link:"Texte brut";
font-family:"Calibri",sans-serif;
mso-fareast-language:FR-BE;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:#002060;}
span.EmailStyle24
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#002060;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">Yes
i have configured all the hosts under alias in kamailio.cfg<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:FR-BE"
lang="FR">De :</span></b><span
style="color:windowtext;mso-fareast-language:FR-BE"
lang="FR"> Daniel-Constantin Mierla
[<a class="moz-txt-link-freetext" href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>]
<br>
<b>Envoyé :</b> vendredi 9 mars 2018 16:17<br>
<b>À :</b> Nicolas Breuer
<a class="moz-txt-link-rfc2396E" href="mailto:Nicolas.Breuer@belcenter.biz"><Nicolas.Breuer@belcenter.biz></a>; Kamailio (SER) -
Users Mailing List <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a><br>
<b>Objet :</b> Re: [SR-Users] From URI == Myself<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<o:p></o:p></p>
<p>my question was if you have config parameter alias, like next
line.<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">alias=myalias<br>
<br>
Just to figure out how the myalias is known to be a local
domain by kamailio. Because there are other options like
domain module or reverse dns query, each having different
approach.<br>
<br>
Cheers,<br>
Daniel<o:p></o:p></p>
<div>
<p class="MsoNormal">On 09.03.18 16:08, Nicolas Breuer wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#002060">Hello
Daniel ;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">No
problems for the hostname alias.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">As
I said, this is only when the invite uri is the ip-address
of the server
</span><span style="font-family:"Segoe UI
Emoji",sans-serif" lang="EN-US">😊</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US">But
I don’t configure an alias with the ip address as a value
</span><span style="font-family:"Segoe UI
Emoji",sans-serif" lang="EN-US">😊</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#002060" lang="EN-US"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="color:windowtext;mso-fareast-language:FR-BE"
lang="FR">De :</span></b><span
style="color:windowtext;mso-fareast-language:FR-BE"
lang="FR"> Daniel-Constantin Mierla [<a
href="mailto:miconda@gmail.com"
moz-do-not-send="true">mailto:miconda@gmail.com</a>]
<br>
<b>Envoyé :</b> vendredi 9 mars 2018 16:07<br>
<b>À :</b> Kamailio (SER) - Users Mailing List <a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">
<sr-users@lists.kamailio.org></a>; Nicolas
Breuer <a href="mailto:Nicolas.Breuer@belcenter.biz"
moz-do-not-send="true">
<Nicolas.Breuer@belcenter.biz></a><br>
<b>Objet :</b> Re: [SR-Users] From URI == Myself</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p>Hello,<o:p></o:p></p>
<p>do you have in config an alias for myalias hostname?<o:p></o:p></p>
<p>alias=myalias<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Cheers,<br>
Daniel<o:p></o:p></p>
<div>
<p class="MsoNormal">On 09.03.18 13:55, Nicolas Breuer
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US" lang="EN-US">Ok i can
understand that but why the behavior is different
between a hostname & an ip-address
</span><span style="font-family:"Segoe UI
Emoji",sans-serif" lang="EN-US">😊</span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US" lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span
style="mso-fareast-language:EN-US" lang="EN-US"> </span><o:p></o:p></p>
<p class="MsoPlainText"><span lang="FR">-----Message
d'origine-----<br>
De : Fred Posner [<a href="mailto:fred@palner.com"
moz-do-not-send="true">mailto:fred@palner.com</a>] <br>
Envoyé : vendredi 9 mars 2018 13:04<br>
À : Nicolas Breuer <a
href="mailto:Nicolas.Breuer@belcenter.biz"
moz-do-not-send="true"><Nicolas.Breuer@belcenter.biz></a><br>
Cc : Kamailio (SER) - Users Mailing List <a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">
<sr-users@lists.kamailio.org></a><br>
Objet : Re: [SR-Users] From URI == Myself</span><o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">If you're not listening or
identifying that IP and specific port as an alias, then
yes, this is expected. One reason why would be to run
another program on that port.
<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">Fred Posner<o:p></o:p></p>
<p class="MsoPlainText">direct: +1 (224) 334-FRED (3733)<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoPlainText">> On Mar 9, 2018, at 6:52 AM,
Nicolas Breuer <<a
href="mailto:Nicolas.Breuer@belcenter.biz"
moz-do-not-send="true"><span
style="color:windowtext;text-decoration:none">Nicolas.Breuer@belcenter.biz</span></a>>
wrote:<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">>
--_000_VI1PR0402MB359898CF4C2CDFCD4EBA5DA189DE0VI1PR0402MB3598_<o:p></o:p></p>
<p class="MsoPlainText">> Content-Type: text/plain;
charset="us-ascii"<o:p></o:p></p>
<p class="MsoPlainText">> Content-Transfer-Encoding:
quoted-printable<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Hello the List,<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> I saw a strange behavior on the
last Kamailio v4.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> The Kamailio is binding on port
5060.<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> If (from_uri=3D=3Dmyself){<o:p></o:p></p>
<p class="MsoPlainText">> ......<o:p></o:p></p>
<p class="MsoPlainText">> }<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> * When the From uri in the
INVITE is <xxxx@myalias:5070><o:p></o:p></p>
<p class="MsoPlainText">> * When the myalias is an
alias > No issue the IF routine is executed.<o:p></o:p></p>
<p class="MsoPlainText">> * When the myalias is the ip
address of the server > The IF Routine is =<o:p></o:p></p>
<p class="MsoPlainText">> NOT executed because there is a
mismatch in the port (5060 >< 5070)<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Is it the expected behavior ?<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> Thanks<o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">> <o:p></o:p></p>
<p class="MsoPlainText">>
--_000_VI1PR0402MB359898CF4C2CDFCD4EBA5DA189DE0VI1PR0402MB3598_<o:p></o:p></p>
<p class="MsoPlainText">> Content-Type: text/html;
charset="us-ascii"<o:p></o:p></p>
<p class="MsoPlainText">> Con<o:p></o:p></p>
<p class="MsoPlainText"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="mso-fareast-language:FR-BE"><br>
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Kamailio (SER) - Users Mailing List<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>
<pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:FR-BE"><br>
<br>
<br>
</span><o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training - April 16-18, 2018, Berlin - <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre>Kamailio World Conference - May 14-16, 2018 - <a href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:FR-BE"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training - April 16-18, 2018, Berlin - <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre>Kamailio World Conference - May 14-16, 2018 - <a href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<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>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>