Re: [SR-Users] Use domain instead of IP in kamailio for register user

2019-04-18 Thread David Villasmil
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 
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  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 <
>> saigauravmehr...@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.w...@gmail.com
phone: +34669448337
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Use domain instead of IP in kamailio for register user

2019-04-18 Thread Gaurav Bmotra
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  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 
> 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


Re: [SR-Users] Use domain instead of IP in kamailio for register user

2019-04-18 Thread Vishal Pai
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 
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


[SR-Users] Use domain instead of IP in kamailio for register user

2019-04-18 Thread Gaurav Bmotra
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