you just need to listen on the port you want, the alias doesn’t really care how the registration came in.

For example:

I can have

Listen=udp:192.168.1.10:5060
Listen=udp:192.168.1.10:5066
alias=“mysip.domain.com
alias=“192.168.1.10”

Any message coming to 5060 or 5066 can use either the IP or the domain.

If you also have public IP (and you are behind NAT) do something like:

Listen=udp:192.168.1.10:5060 ADVERTISE 9.8.7.6

Where 9.8.7.6 is your public IP.

Hope this helps

Any message 

On Thu, 18 Apr 2019 at 08:30, Gaurav Bmotra <saigauravmehra91@gmail.com> wrote:
thank  you  Vishal   for your reply
yes its working but i need to put port separately like "sip.domain.com:5070"
as i have change the port  

On Thu, Apr 18, 2019 at 12:40 PM Vishal Pai <vishalmpai@gmail.com> wrote:
Hi Gaurav

In cfg file you have to enable following thing

/* add local domain aliases */
alias="sip.mydomain.com"

If required point that domain with IP address in A records of DNS manager,

Thanks

On Thu, Apr 18, 2019 at 12:34 PM Gaurav Bmotra <saigauravmehra91@gmail.com> wrote:
HI 
this is Gaurav 
im using kamailio 5.1.2 on ubuntu 18.4

i wan to to use domain instead of IP for registration in kamailio 
Plz help  
--








Regards:
Gaurav Kumar


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--








Regards:
Gaurav Kumar


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Regards,

David Villasmil
email: david.villasmil.work@gmail.com
phone: +34669448337