Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-27 Thread Yuriy Nasida
Well. We switched back to 'lets encrypt' certificate and MS started
responding. Finally :)
It's so mystical how MS check certificates by the way.
Inboiund TLS session was set up fine and there were no errors in tcpdump.
But they unexpectedly terminate the TLS session at the time of receipt of
INVITE.
In the meantime outbound TLS session worked grear.

We will have to think how to change CA list for cert that is not working.

Thanks for your help, guys.

On Mon, 27 Apr 2020 at 14:25, Yuriy Nasida  wrote:

> Thanks for the answer,
>
>
> 'Usually Microsoft will send you a reply if something is not how they
> expect it to be.'
>
> How i wish it was true. But it is not. I test MS intergrationi 2 weeks
> already and MS never respons about that they expect.
>
> Moreover, there is no example in their documentation how INVITE (to MS)
> with record-route headers should looks like.
>
> The only response  I get from them is 200 OK for OPTIONS.
>
> Also I got outbound calls from MS working.
>
> Can you send your masked INVITE if possible ?
>
>
>
>
> On Mon, 27 Apr 2020 at 14:07, Henning Westerholt  wrote:
>
>> Hello,
>>
>>
>>
>> as mentioned already in discussions of this topic, there is no need to
>> add a domain name in VIA headers. There is all information that is needed
>> to have a basic setup working in the respective post on my blog.
>>
>>
>>
>> Usually Microsoft will send you a reply if something is not how they
>> expect it to be.
>>
>>
>>
>> Cheers,
>>
>>
>>
>> Henning
>>
>>
>>
>> --
>>
>> Henning Westerholt – https://skalatan.de/blog/
>>
>> Kamailio services – https://gilawa.com
>>
>>
>>
>> *From:* sr-users  *On Behalf Of *Yuriy
>> Nasida
>> *Sent:* Monday, April 27, 2020 12:52 PM
>> *To:* Kamailio (SER) - Users Mailing List 
>> *Subject:* Re: [SR-Users] how to use get my domain name in VIA header
>> (INVITE) instead of IP address.
>>
>>
>>
>> Guys, I really happy that you send INVITES to MS with record_route_preset
>> and MS does not ignore. But I really not sure how your INVITE looks.
>>
>> Can you please send one here ? That can help a lot. Also please look at
>> INVITE we send (MS ignores this).
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sun, 26 Apr 2020 at 18:42, Joel Serrano  wrote:
>>
>> And those, I AFAIR you can set dynamically with record_route_preset() /
>> record_route_advertised_address()
>>
>>
>>
>> https://kamailio.org/docs/modules/5.3.x/modules/rr.html
>>
>>
>>
>>
>>
>> On Sun, Apr 26, 2020 at 06:47 Ovidiu Sas  wrote:
>>
>> There’s no need for FQDNs in Via headers for MS. IPs work just fine!
>>
>> You need FQDNs only in Route/Record-Route headers.
>>
>>
>>
>> Regards,
>>
>> Ovidiu Sas
>>
>>
>>
>> On Sat, Apr 25, 2020 at 13:08 Yuriy Nasida  wrote:
>>
>> Comrade :)
>>
>>
>>
>> Thanks for the advices! I will try them.
>>
>>
>>
>> And yes, that is for inbound calls to MS teams. We just got outbound
>> calls working by the way (had to do a lot of kamailio tweaks honestly).
>>
>> As for inbound calls to MS - I just looking at their docs
>> (picute attached). Looks like MS expect domain name in VIA.
>>
>> I have all other sip headers like they want, but MS still ignore our
>> INVITEs. That is why I think how to change VIA.
>>
>>
>>
>> If you have example of INVITE to MS teams that is working - that can help
>> a lot.
>>
>>
>>
>>
>>
>>
>>
>> On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:
>>
>> Yuriy,
>>
>>
>>
>> The 'advertise' parameter doesn't support vars. (
>> https://github.com/kamailio/kamailio/issues/2137)
>>
>>
>>
>> As an alternative, you could use a combination of xavps and corex module
>> function via_use_xavp_fields() -- see:
>>
>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>>
>> If you're building this for what I think you are, most likely you think
>> you need this - but you actually don't. Or may be I'm wrong and your
>> specifics do require it.
>>
>> Good luck comrade.
>>
>>
>>
>> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>>
>> Thanks for the answer Sergiu, but this shoud not be static domain name. I
>> need to have different domains in Via for different calls.
>> Is it possible ?
>> --
>>
>> *От:* sr-users  от имени Sergiu
>> Pojoga 
>> *Отправлено:* 24 апреля 2020 г. 21:35
>> *Кому:* Kamailio (SER) - Users Mailing List 
>> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
>> (INVITE) instead of IP address.
>>
>>
>>
>> Most common way is by using `advertise`  in the `listen` directive.
>>
>>
>>
>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>>
>>
>>
>> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>>
>>
>>
>> Hi guys,
>>
>>
>>
>> It sounds simple but I can not get  domain name in VIA header (INVITE)
>> instead of IP address.
>>
>>
>>
>> It is just
>>
>>
>>
>> FS ---INVITE --> Kamailio --INVITE--> endpoint
>>
>>
>>
>> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
>> get domain name instead ?
>>
>>
>>
>> Please advice.
>>
>>
>>
>> 

Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-27 Thread Yuriy Nasida
Thanks for the answer,


'Usually Microsoft will send you a reply if something is not how they
expect it to be.'

How i wish it was true. But it is not. I test MS intergrationi 2 weeks
already and MS never respons about that they expect.

Moreover, there is no example in their documentation how INVITE (to MS)
with record-route headers should looks like.

The only response  I get from them is 200 OK for OPTIONS.

Also I got outbound calls from MS working.

Can you send your masked INVITE if possible ?




On Mon, 27 Apr 2020 at 14:07, Henning Westerholt  wrote:

> Hello,
>
>
>
> as mentioned already in discussions of this topic, there is no need to add
> a domain name in VIA headers. There is all information that is needed to
> have a basic setup working in the respective post on my blog.
>
>
>
> Usually Microsoft will send you a reply if something is not how they
> expect it to be.
>
>
>
> Cheers,
>
>
>
> Henning
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
>
> *From:* sr-users  *On Behalf Of *Yuriy
> Nasida
> *Sent:* Monday, April 27, 2020 12:52 PM
> *To:* Kamailio (SER) - Users Mailing List 
> *Subject:* Re: [SR-Users] how to use get my domain name in VIA header
> (INVITE) instead of IP address.
>
>
>
> Guys, I really happy that you send INVITES to MS with record_route_preset
> and MS does not ignore. But I really not sure how your INVITE looks.
>
> Can you please send one here ? That can help a lot. Also please look at
> INVITE we send (MS ignores this).
>
>
>
>
>
>
>
>
>
>
>
> On Sun, 26 Apr 2020 at 18:42, Joel Serrano  wrote:
>
> And those, I AFAIR you can set dynamically with record_route_preset() /
> record_route_advertised_address()
>
>
>
> https://kamailio.org/docs/modules/5.3.x/modules/rr.html
>
>
>
>
>
> On Sun, Apr 26, 2020 at 06:47 Ovidiu Sas  wrote:
>
> There’s no need for FQDNs in Via headers for MS. IPs work just fine!
>
> You need FQDNs only in Route/Record-Route headers.
>
>
>
> Regards,
>
> Ovidiu Sas
>
>
>
> On Sat, Apr 25, 2020 at 13:08 Yuriy Nasida  wrote:
>
> Comrade :)
>
>
>
> Thanks for the advices! I will try them.
>
>
>
> And yes, that is for inbound calls to MS teams. We just got outbound calls
> working by the way (had to do a lot of kamailio tweaks honestly).
>
> As for inbound calls to MS - I just looking at their docs
> (picute attached). Looks like MS expect domain name in VIA.
>
> I have all other sip headers like they want, but MS still ignore our
> INVITEs. That is why I think how to change VIA.
>
>
>
> If you have example of INVITE to MS teams that is working - that can help
> a lot.
>
>
>
>
>
>
>
> On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:
>
> Yuriy,
>
>
>
> The 'advertise' parameter doesn't support vars. (
> https://github.com/kamailio/kamailio/issues/2137)
>
>
>
> As an alternative, you could use a combination of xavps and corex module
> function via_use_xavp_fields() -- see:
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>
> If you're building this for what I think you are, most likely you think
> you need this - but you actually don't. Or may be I'm wrong and your
> specifics do require it.
>
> Good luck comrade.
>
>
>
> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>
> Thanks for the answer Sergiu, but this shoud not be static domain name. I
> need to have different domains in Via for different calls.
> Is it possible ?
> --
>
> *От:* sr-users  от имени Sergiu
> Pojoga 
> *Отправлено:* 24 апреля 2020 г. 21:35
> *Кому:* Kamailio (SER) - Users Mailing List 
> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
> (INVITE) instead of IP address.
>
>
>
> Most common way is by using `advertise`  in the `listen` directive.
>
>
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>
>
>
> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>
>
>
> Hi guys,
>
>
>
> It sounds simple but I can not get  domain name in VIA header (INVITE)
> instead of IP address.
>
>
>
> It is just
>
>
>
> FS ---INVITE --> Kamailio --INVITE--> endpoint
>
>
>
> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
> get domain name instead ?
>
>
>
> Please advice.
>
>
>
> ___
> 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
>
> ___
> 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
>
> --
>
> VoIP Embedded, Inc.
> 

Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-27 Thread Henning Westerholt
Hello,

as mentioned already in discussions of this topic, there is no need to add a 
domain name in VIA headers. There is all information that is needed to have a 
basic setup working in the respective post on my blog.

Usually Microsoft will send you a reply if something is not how they expect it 
to be.

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

From: sr-users  On Behalf Of Yuriy Nasida
Sent: Monday, April 27, 2020 12:52 PM
To: Kamailio (SER) - Users Mailing List 
Subject: Re: [SR-Users] how to use get my domain name in VIA header (INVITE) 
instead of IP address.

Guys, I really happy that you send INVITES to MS with record_route_preset and 
MS does not ignore. But I really not sure how your INVITE looks.
Can you please send one here ? That can help a lot. Also please look at INVITE 
we send (MS ignores this).


[cid:image001.jpg@01D61C94.83FEF4F0]



On Sun, 26 Apr 2020 at 18:42, Joel Serrano 
mailto:j...@textplus.com>> wrote:
And those, I AFAIR you can set dynamically with record_route_preset() / 
record_route_advertised_address()

https://kamailio.org/docs/modules/5.3.x/modules/rr.html


On Sun, Apr 26, 2020 at 06:47 Ovidiu Sas 
mailto:o...@voipembedded.com>> wrote:
There’s no need for FQDNs in Via headers for MS. IPs work just fine!
You need FQDNs only in Route/Record-Route headers.

Regards,
Ovidiu Sas

On Sat, Apr 25, 2020 at 13:08 Yuriy Nasida 
mailto:ynas...@gmail.com>> wrote:
Comrade :)

Thanks for the advices! I will try them.

And yes, that is for inbound calls to MS teams. We just got outbound calls 
working by the way (had to do a lot of kamailio tweaks honestly).
As for inbound calls to MS - I just looking at their docs (picute attached). 
Looks like MS expect domain name in VIA.
I have all other sip headers like they want, but MS still ignore our INVITEs. 
That is why I think how to change VIA.

If you have example of INVITE to MS teams that is working - that can help a lot.


[cid:image002.png@01D61C94.83FEF4F0]

On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga 
mailto:pojo...@gmail.com>> wrote:
Yuriy,

The 'advertise' parameter doesn't support vars. 
(https://github.com/kamailio/kamailio/issues/2137)

As an alternative, you could use a combination of xavps and corex module 
function via_use_xavp_fields() -- see:

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields

If you're building this for what I think you are, most likely you think you 
need this - but you actually don't. Or may be I'm wrong and your specifics do 
require it.

Good luck comrade.

On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy 
mailto:nas...@live.ru>> wrote:
Thanks for the answer Sergiu, but this shoud not be static domain name. I need 
to have different domains in Via for different calls.
Is it possible ?

От: sr-users 
mailto:sr-users-boun...@lists.kamailio.org>>
 от имени Sergiu Pojoga mailto:pojo...@gmail.com>>
Отправлено: 24 апреля 2020 г. 21:35
Кому: Kamailio (SER) - Users Mailing List 
mailto:sr-users@lists.kamailio.org>>
Тема: Re: [SR-Users] how to use get my domain name in VIA header (INVITE) 
instead of IP address.

Most common way is by using `advertise`  in the `listen` directive.

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen

On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy 
mailto:nas...@live.ru>> wrote:

Hi guys,

It sounds simple but I can not get  domain name in VIA header (INVITE) instead 
of IP address.

It is just

FS ---INVITE --> Kamailio --INVITE--> endpoint

Kamailio gets INVITE, and adds one more VIA with it's IP address. How to get 
domain name instead ?

Please advice.

___
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
___
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
--
VoIP Embedded, Inc.
http://www.voipembedded.com
___
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

Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-27 Thread Yuriy Nasida
Guys, I really happy that you send INVITES to MS with record_route_preset
and MS does not ignore. But I really not sure how your INVITE looks.
Can you please send one here ? That can help a lot. Also please look at
INVITE we send (MS ignores this).


[image: Selection_935.png]



On Sun, 26 Apr 2020 at 18:42, Joel Serrano  wrote:

> And those, I AFAIR you can set dynamically with record_route_preset() /
> record_route_advertised_address()
>
> https://kamailio.org/docs/modules/5.3.x/modules/rr.html
>
>
> On Sun, Apr 26, 2020 at 06:47 Ovidiu Sas  wrote:
>
>> There’s no need for FQDNs in Via headers for MS. IPs work just fine!
>> You need FQDNs only in Route/Record-Route headers.
>>
>> Regards,
>> Ovidiu Sas
>>
>> On Sat, Apr 25, 2020 at 13:08 Yuriy Nasida  wrote:
>>
>>> Comrade :)
>>>
>>> Thanks for the advices! I will try them.
>>>
>>> And yes, that is for inbound calls to MS teams. We just got outbound
>>> calls working by the way (had to do a lot of kamailio tweaks honestly).
>>> As for inbound calls to MS - I just looking at their docs
>>> (picute attached). Looks like MS expect domain name in VIA.
>>> I have all other sip headers like they want, but MS still ignore our
>>> INVITEs. That is why I think how to change VIA.
>>>
>>> If you have example of INVITE to MS teams that is working - that can
>>> help a lot.
>>>
>>>
>>> [image: image_2020-04-24_08-26-25.png]
>>>
>>> On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:
>>>
 Yuriy,

 The 'advertise' parameter doesn't support vars. (
 https://github.com/kamailio/kamailio/issues/2137)

 As an alternative, you could use a combination of xavps and corex
 module function via_use_xavp_fields() -- see:

 https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields

 If you're building this for what I think you are, most likely you think
 you need this - but you actually don't. Or may be I'm wrong and your
 specifics do require it.

 Good luck comrade.

 On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:

> Thanks for the answer Sergiu, but this shoud not be static domain
> name. I need to have different domains in Via for different calls.
> Is it possible ?
> --
> *От:* sr-users  от имени Sergiu
> Pojoga 
> *Отправлено:* 24 апреля 2020 г. 21:35
> *Кому:* Kamailio (SER) - Users Mailing List <
> sr-users@lists.kamailio.org>
> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
> (INVITE) instead of IP address.
>
> Most common way is by using `advertise`  in the `listen` directive.
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>
> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>
>
> Hi guys,
>
> It sounds simple but I can not get  domain name in VIA header (INVITE)
> instead of IP address.
>
> It is just
>
> FS ---INVITE --> Kamailio --INVITE--> endpoint
>
> Kamailio gets INVITE, and adds one more VIA with it's IP address. How
> to get domain name instead ?
>
> Please advice.
>
> ___
> 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
>
 ___
 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
>>>
>> --
>> VoIP Embedded, Inc.
>> http://www.voipembedded.com
>> ___
>> 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
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-26 Thread Joel Serrano
And those, I AFAIR you can set dynamically with record_route_preset() /
record_route_advertised_address()

https://kamailio.org/docs/modules/5.3.x/modules/rr.html


On Sun, Apr 26, 2020 at 06:47 Ovidiu Sas  wrote:

> There’s no need for FQDNs in Via headers for MS. IPs work just fine!
> You need FQDNs only in Route/Record-Route headers.
>
> Regards,
> Ovidiu Sas
>
> On Sat, Apr 25, 2020 at 13:08 Yuriy Nasida  wrote:
>
>> Comrade :)
>>
>> Thanks for the advices! I will try them.
>>
>> And yes, that is for inbound calls to MS teams. We just got outbound
>> calls working by the way (had to do a lot of kamailio tweaks honestly).
>> As for inbound calls to MS - I just looking at their docs
>> (picute attached). Looks like MS expect domain name in VIA.
>> I have all other sip headers like they want, but MS still ignore our
>> INVITEs. That is why I think how to change VIA.
>>
>> If you have example of INVITE to MS teams that is working - that can help
>> a lot.
>>
>>
>> [image: image_2020-04-24_08-26-25.png]
>>
>> On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:
>>
>>> Yuriy,
>>>
>>> The 'advertise' parameter doesn't support vars. (
>>> https://github.com/kamailio/kamailio/issues/2137)
>>>
>>> As an alternative, you could use a combination of xavps and corex module
>>> function via_use_xavp_fields() -- see:
>>>
>>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>>>
>>> If you're building this for what I think you are, most likely you think
>>> you need this - but you actually don't. Or may be I'm wrong and your
>>> specifics do require it.
>>>
>>> Good luck comrade.
>>>
>>> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>>>
 Thanks for the answer Sergiu, but this shoud not be static domain name.
 I need to have different domains in Via for different calls.
 Is it possible ?
 --
 *От:* sr-users  от имени Sergiu
 Pojoga 
 *Отправлено:* 24 апреля 2020 г. 21:35
 *Кому:* Kamailio (SER) - Users Mailing List <
 sr-users@lists.kamailio.org>
 *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
 (INVITE) instead of IP address.

 Most common way is by using `advertise`  in the `listen` directive.

 https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen

 On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:


 Hi guys,

 It sounds simple but I can not get  domain name in VIA header (INVITE)
 instead of IP address.

 It is just

 FS ---INVITE --> Kamailio --INVITE--> endpoint

 Kamailio gets INVITE, and adds one more VIA with it's IP address. How
 to get domain name instead ?

 Please advice.

 ___
 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

>>> ___
>>> 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
>>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
> ___
> 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


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-26 Thread Ovidiu Sas
There’s no need for FQDNs in Via headers for MS. IPs work just fine!
You need FQDNs only in Route/Record-Route headers.

Regards,
Ovidiu Sas

On Sat, Apr 25, 2020 at 13:08 Yuriy Nasida  wrote:

> Comrade :)
>
> Thanks for the advices! I will try them.
>
> And yes, that is for inbound calls to MS teams. We just got outbound calls
> working by the way (had to do a lot of kamailio tweaks honestly).
> As for inbound calls to MS - I just looking at their docs
> (picute attached). Looks like MS expect domain name in VIA.
> I have all other sip headers like they want, but MS still ignore our
> INVITEs. That is why I think how to change VIA.
>
> If you have example of INVITE to MS teams that is working - that can help
> a lot.
>
>
> [image: image_2020-04-24_08-26-25.png]
>
> On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:
>
>> Yuriy,
>>
>> The 'advertise' parameter doesn't support vars. (
>> https://github.com/kamailio/kamailio/issues/2137)
>>
>> As an alternative, you could use a combination of xavps and corex module
>> function via_use_xavp_fields() -- see:
>>
>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>>
>> If you're building this for what I think you are, most likely you think
>> you need this - but you actually don't. Or may be I'm wrong and your
>> specifics do require it.
>>
>> Good luck comrade.
>>
>> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>>
>>> Thanks for the answer Sergiu, but this shoud not be static domain name.
>>> I need to have different domains in Via for different calls.
>>> Is it possible ?
>>> --
>>> *От:* sr-users  от имени Sergiu
>>> Pojoga 
>>> *Отправлено:* 24 апреля 2020 г. 21:35
>>> *Кому:* Kamailio (SER) - Users Mailing List >> >
>>> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
>>> (INVITE) instead of IP address.
>>>
>>> Most common way is by using `advertise`  in the `listen` directive.
>>>
>>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>>>
>>> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>>>
>>>
>>> Hi guys,
>>>
>>> It sounds simple but I can not get  domain name in VIA header (INVITE)
>>> instead of IP address.
>>>
>>> It is just
>>>
>>> FS ---INVITE --> Kamailio --INVITE--> endpoint
>>>
>>> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
>>> get domain name instead ?
>>>
>>> Please advice.
>>>
>>> ___
>>> 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
>>>
>> ___
>> 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
>
-- 
VoIP Embedded, Inc.
http://www.voipembedded.com
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-26 Thread Yuriy Nasida
Thanks for the answer Sergiu, but this shoud not be static domain name. I
need to have different domains in Via for different calls.
Is it possible ?

On Fri, 24 Apr 2020 at 21:37, Sergiu Pojoga  wrote:

> Most common way is by using `advertise`  in the `listen` directive.
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>
> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>
>>
>> Hi guys,
>>
>> It sounds simple but I can not get  domain name in VIA header (INVITE)
>> instead of IP address.
>>
>> It is just
>>
>> FS ---INVITE --> Kamailio --INVITE--> endpoint
>>
>> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
>> get domain name instead ?
>>
>> Please advice.
>>
>> ___
>> 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
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Sergiu Pojoga
Well, you just posted an example of a valid INVITE. Nothing wrong with it.

Have you tried the `advertise` FQDN that was previously suggested? I
understand it would be static domain, but in most cases - it's all you
need, unless you're building a multi-tenant solution. If it's the later
option - then try xavp_via_fields, but I can tell you upfront if you do
that - then you must be doing something conceptually wrong (I'll leave the
details to my know-how and let you figure out the rest)

On Sat, Apr 25, 2020 at 1:09 PM Yuriy Nasida  wrote:

> Comrade :)
>
> Thanks for the advices! I will try them.
>
> And yes, that is for inbound calls to MS teams. We just got outbound calls
> working by the way (had to do a lot of kamailio tweaks honestly).
> As for inbound calls to MS - I just looking at their docs
> (picute attached). Looks like MS expect domain name in VIA.
> I have all other sip headers like they want, but MS still ignore our
> INVITEs. That is why I think how to change VIA.
>
> If you have example of INVITE to MS teams that is working - that can help
> a lot.
>
>
> [image: image_2020-04-24_08-26-25.png]
>
> On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:
>
>> Yuriy,
>>
>> The 'advertise' parameter doesn't support vars. (
>> https://github.com/kamailio/kamailio/issues/2137)
>>
>> As an alternative, you could use a combination of xavps and corex module
>> function via_use_xavp_fields() -- see:
>>
>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>>
>> If you're building this for what I think you are, most likely you think
>> you need this - but you actually don't. Or may be I'm wrong and your
>> specifics do require it.
>>
>> Good luck comrade.
>>
>> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>>
>>> Thanks for the answer Sergiu, but this shoud not be static domain name.
>>> I need to have different domains in Via for different calls.
>>> Is it possible ?
>>> --
>>> *От:* sr-users  от имени Sergiu
>>> Pojoga 
>>> *Отправлено:* 24 апреля 2020 г. 21:35
>>> *Кому:* Kamailio (SER) - Users Mailing List >> >
>>> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
>>> (INVITE) instead of IP address.
>>>
>>> Most common way is by using `advertise`  in the `listen` directive.
>>>
>>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>>>
>>> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>>>
>>>
>>> Hi guys,
>>>
>>> It sounds simple but I can not get  domain name in VIA header (INVITE)
>>> instead of IP address.
>>>
>>> It is just
>>>
>>> FS ---INVITE --> Kamailio --INVITE--> endpoint
>>>
>>> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
>>> get domain name instead ?
>>>
>>> Please advice.
>>>
>>> ___
>>> 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
>>>
>> ___
>> 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
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Yuriy Nasida
Comrade :)

Thanks for the advices! I will try them.

And yes, that is for inbound calls to MS teams. We just got outbound calls
working by the way (had to do a lot of kamailio tweaks honestly).
As for inbound calls to MS - I just looking at their docs
(picute attached). Looks like MS expect domain name in VIA.
I have all other sip headers like they want, but MS still ignore our
INVITEs. That is why I think how to change VIA.

If you have example of INVITE to MS teams that is working - that can help a
lot.


[image: image_2020-04-24_08-26-25.png]

On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga  wrote:

> Yuriy,
>
> The 'advertise' parameter doesn't support vars. (
> https://github.com/kamailio/kamailio/issues/2137)
>
> As an alternative, you could use a combination of xavps and corex module
> function via_use_xavp_fields() -- see:
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields
>
> If you're building this for what I think you are, most likely you think
> you need this - but you actually don't. Or may be I'm wrong and your
> specifics do require it.
>
> Good luck comrade.
>
> On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:
>
>> Thanks for the answer Sergiu, but this shoud not be static domain name. I
>> need to have different domains in Via for different calls.
>> Is it possible ?
>> --
>> *От:* sr-users  от имени Sergiu
>> Pojoga 
>> *Отправлено:* 24 апреля 2020 г. 21:35
>> *Кому:* Kamailio (SER) - Users Mailing List 
>> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
>> (INVITE) instead of IP address.
>>
>> Most common way is by using `advertise`  in the `listen` directive.
>>
>> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>>
>> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>>
>>
>> Hi guys,
>>
>> It sounds simple but I can not get  domain name in VIA header (INVITE)
>> instead of IP address.
>>
>> It is just
>>
>> FS ---INVITE --> Kamailio --INVITE--> endpoint
>>
>> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
>> get domain name instead ?
>>
>> Please advice.
>>
>> ___
>> 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
>>
> ___
> 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


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Sergiu Pojoga
Yuriy,

The 'advertise' parameter doesn't support vars. (
https://github.com/kamailio/kamailio/issues/2137)

As an alternative, you could use a combination of xavps and corex module
function via_use_xavp_fields() -- see:

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_fields

If you're building this for what I think you are, most likely you think you
need this - but you actually don't. Or may be I'm wrong and your specifics
do require it.

Good luck comrade.

On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy  wrote:

> Thanks for the answer Sergiu, but this shoud not be static domain name. I
> need to have different domains in Via for different calls.
> Is it possible ?
> --
> *От:* sr-users  от имени Sergiu
> Pojoga 
> *Отправлено:* 24 апреля 2020 г. 21:35
> *Кому:* Kamailio (SER) - Users Mailing List 
> *Тема:* Re: [SR-Users] how to use get my domain name in VIA header
> (INVITE) instead of IP address.
>
> Most common way is by using `advertise`  in the `listen` directive.
>
> https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen
>
> On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:
>
>
> Hi guys,
>
> It sounds simple but I can not get  domain name in VIA header (INVITE)
> instead of IP address.
>
> It is just
>
> FS ---INVITE --> Kamailio --INVITE--> endpoint
>
> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
> get domain name instead ?
>
> Please advice.
>
> ___
> 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
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-25 Thread Nasida Yuriy
Thanks for the answer Sergiu, but this shoud not be static domain name. I need 
to have different domains in Via for different calls.
Is it possible ?

От: sr-users  от имени Sergiu Pojoga 

Отправлено: 24 апреля 2020 г. 21:35
Кому: Kamailio (SER) - Users Mailing List 
Тема: Re: [SR-Users] how to use get my domain name in VIA header (INVITE) 
instead of IP address.

Most common way is by using `advertise`  in the `listen` directive.

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen

On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy 
mailto:nas...@live.ru>> wrote:

Hi guys,

It sounds simple but I can not get  domain name in VIA header (INVITE) instead 
of IP address.

It is just

FS ---INVITE --> Kamailio --INVITE--> endpoint

Kamailio gets INVITE, and adds one more VIA with it's IP address. How to get 
domain name instead ?

Please advice.

___
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


Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-24 Thread Sergiu Pojoga
Most common way is by using `advertise`  in the `listen` directive.

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen

On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy  wrote:

>
> Hi guys,
>
> It sounds simple but I can not get  domain name in VIA header (INVITE)
> instead of IP address.
>
> It is just
>
> FS ---INVITE --> Kamailio --INVITE--> endpoint
>
> Kamailio gets INVITE, and adds one more VIA with it's IP address. How to
> get domain name instead ?
>
> Please advice.
>
> ___
> 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] how to use get my domain name in VIA header (INVITE) instead of IP address.

2020-04-24 Thread Nasida Yuriy

Hi guys,

It sounds simple but I can not get  domain name in VIA header (INVITE) instead 
of IP address.

It is just

FS ---INVITE --> Kamailio --INVITE--> endpoint

Kamailio gets INVITE, and adds one more VIA with it's IP address. How to get 
domain name instead ?

Please advice.

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