Thanks for the clarification
De : Daniel-Constantin Mierla [mailto:[email protected]] Envoyé : vendredi 9 mars 2018 16:25 À : Nicolas Breuer <[email protected]>; Kamailio (SER) - Users Mailing List <[email protected]> Objet : Re: [SR-Users] From URI == Myself 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: alias=myalias:5060 To restrict only for port 5060 when matching with 'myself'. 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. Cheers, Daniel On 09.03.18 16:19, Nicolas Breuer wrote: Yes i have configured all the hosts under alias in kamailio.cfg De : Daniel-Constantin Mierla [mailto:[email protected]] Envoyé : vendredi 9 mars 2018 16:17 À : Nicolas Breuer <[email protected]><mailto:[email protected]>; Kamailio (SER) - Users Mailing List <[email protected]><mailto:[email protected]> Objet : Re: [SR-Users] From URI == Myself Hello, my question was if you have config parameter alias, like next line. alias=myalias 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. Cheers, Daniel On 09.03.18 16:08, Nicolas Breuer wrote: Hello Daniel ; No problems for the hostname alias. As I said, this is only when the invite uri is the ip-address of the server 😊 But I don’t configure an alias with the ip address as a value 😊 De : Daniel-Constantin Mierla [mailto:[email protected]] Envoyé : vendredi 9 mars 2018 16:07 À : Kamailio (SER) - Users Mailing List <[email protected]><mailto:[email protected]>; Nicolas Breuer <[email protected]><mailto:[email protected]> Objet : Re: [SR-Users] From URI == Myself Hello, do you have in config an alias for myalias hostname? alias=myalias Cheers, Daniel On 09.03.18 13:55, Nicolas Breuer wrote: Ok i can understand that but why the behavior is different between a hostname & an ip-address 😊 -----Message d'origine----- De : Fred Posner [mailto:[email protected]] Envoyé : vendredi 9 mars 2018 13:04 À : Nicolas Breuer <[email protected]><mailto:[email protected]> Cc : Kamailio (SER) - Users Mailing List <[email protected]><mailto:[email protected]> Objet : Re: [SR-Users] From URI == Myself 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. Fred Posner direct: +1 (224) 334-FRED (3733) > On Mar 9, 2018, at 6:52 AM, Nicolas Breuer > <[email protected]<mailto:[email protected]>> wrote: > > --_000_VI1PR0402MB359898CF4C2CDFCD4EBA5DA189DE0VI1PR0402MB3598_ > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > Hello the List, > > I saw a strange behavior on the last Kamailio v4. > > The Kamailio is binding on port 5060. > > If (from_uri=3D=3Dmyself){ > ...... > } > > > * When the From uri in the INVITE is <xxxx@myalias:5070> > * When the myalias is an alias > No issue the IF routine is executed. > * When the myalias is the ip address of the server > The IF Routine is = > NOT executed because there is a mismatch in the port (5060 >< 5070) > > > Is it the expected behavior ? > > Thanks > > > > > > > --_000_VI1PR0402MB359898CF4C2CDFCD4EBA5DA189DE0VI1PR0402MB3598_ > Content-Type: text/html; charset="us-ascii" > Con _______________________________________________ Kamailio (SER) - Users Mailing List [email protected]<mailto:[email protected]> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com<http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com> -- Daniel-Constantin Mierla www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com<http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com> -- Daniel-Constantin Mierla www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com<http://www.asipto.com> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com<http://www.kamailioworld.com>
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
