[SR-Users] From URI == Myself

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 9 16:24:31 CET 2018


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:miconda at gmail.com]
> *Envoyé :* vendredi 9 mars 2018 16:17
> *À :* Nicolas Breuer <Nicolas.Breuer at belcenter.biz>; Kamailio (SER) -
> Users Mailing List <sr-users at lists.kamailio.org>
> *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:miconda at gmail.com]
>     *Envoyé :* vendredi 9 mars 2018 16:07
>     *À :* Kamailio (SER) - Users Mailing List
>     <sr-users at lists.kamailio.org>
>     <mailto:sr-users at lists.kamailio.org>; Nicolas Breuer
>     <Nicolas.Breuer at belcenter.biz> <mailto:Nicolas.Breuer at belcenter.biz>
>     *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:fred at palner.com]
>         Envoyé : vendredi 9 mars 2018 13:04
>         À : Nicolas Breuer <Nicolas.Breuer at belcenter.biz>
>         <mailto:Nicolas.Breuer at belcenter.biz>
>         Cc : Kamailio (SER) - Users Mailing List
>         <sr-users at lists.kamailio.org> <mailto:sr-users at lists.kamailio.org>
>         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
>         <Nicolas.Breuer at belcenter.biz
>         <mailto:Nicolas.Breuer at belcenter.biz>> 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 at 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
>
>         sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>
>         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 -- www.linkedin.com/in/miconda
Kamailio Advanced Training - April 16-18, 2018, Berlin - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180309/20afa010/attachment.html>


More information about the sr-users mailing list