Re: [SR-Users] RTP relay

2020-04-27 Thread hugues
Thanks for your email 
I can't change the asterisk server configurations too much because they're
in production.
I have already installed and configured rtpproxy, but as there are two
public ip addresses I have the impression that it does not activate and the
RTP flow goes directly from the client to the asterisk server.
( however kamailio indicates that the proxy is activated )
As for rtpengine I have not yet tested, it requires to compile a kernel
module which is not ideal for my config docker/Linux container.
I will test tomorrow on VM.
regards

Hugues.




--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

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


Re: [SR-Users] DMQ broadcasting crashes kamailio

2020-04-27 Thread SamyGo
Update:I've applied the code changes on 5.3 and 5.2 version and I can now
see that once DMQ peer gets added the 202 Accepted DMQ started showing up
and now cluster pair seems to be stable. No more core dumps or
notification_peer deletion messages.
So quick thought, what if I broadcast message to > 2 Kamailio boxes and all
recipients send back 202 Accepted DMQ back to the sender. wouldn't it cause
some trouble to the sender ?

BR,
Sammy



On Mon, Apr 27, 2020 at 4:53 PM SamyGo  wrote:

> Hi,
> I've applied the changes to the two files and taken some captures. I'm
> trying to find out if the 202 Accepted part is engaged or not, so far
> doesn't seem to show up in the pcaps.
> However if I put dmq_handle_msg() it goes and send back a 404 User Not
> Found from the message.c file.
>
> peer = find_peer(msg->parsed_uri.user);
> if(!peer) {
> LM_DBG("no peer found for %.*s\n",
> msg->parsed_uri.user.len,
> msg->parsed_uri.user.s);
> if(slb.freply(msg, 404, &dmq_404_rpl) < 0) {
> LM_ERR("sending reply\n");
> goto error;
> }
> return returnval;
> }
>
> Not crashing now atleast. I'm going to keep on trying script combinations
> and see how to get the *202 Accepted DMQ.*
>
> Thanks,
> Sammy
>
> On Sat, Apr 25, 2020 at 7:55 AM kachi communication 
> wrote:
>
>> Am sorry! Thanks for the information.
>>
>> On Fri, Apr 24, 2020, 11:13 PM Alex Balashov 
>> wrote:
>>
>>> On Fri, Apr 24, 2020 at 08:25:15PM -0400, kachi communication wrote:
>>>
>>> > I need someone to build a calling card switch for my company for a
>>> > fee.
>>>
>>> 1. This has nothing to do with the mailing list thread to which you are
>>> replying, and as such is quite a rude and inconsiderate intrusion;
>>>
>>> 2. There is a business mailing list specifically for commercial
>>> solicitations of this nature:
>>>
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/business
>>>
>>> 3. You can find a list of providers of commercial Kamailio consulting
>>> and support here:
>>>
>>> https://www.kamailio.org/w/business-directory/
>>>
>>> -- Alex
>>>
>>> --
>>> Alex Balashov | Principal | Evariste Systems LLC
>>>
>>> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
>>> Web: http://www.evaristesys.com/, http://www.csrpswitch.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] DMQ broadcasting crashes kamailio

2020-04-27 Thread SamyGo
Hi,
I've applied the changes to the two files and taken some captures. I'm
trying to find out if the 202 Accepted part is engaged or not, so far
doesn't seem to show up in the pcaps.
However if I put dmq_handle_msg() it goes and send back a 404 User Not
Found from the message.c file.

peer = find_peer(msg->parsed_uri.user);
if(!peer) {
LM_DBG("no peer found for %.*s\n", msg->parsed_uri.user.len,
msg->parsed_uri.user.s);
if(slb.freply(msg, 404, &dmq_404_rpl) < 0) {
LM_ERR("sending reply\n");
goto error;
}
return returnval;
}

Not crashing now atleast. I'm going to keep on trying script combinations
and see how to get the *202 Accepted DMQ.*

Thanks,
Sammy

On Sat, Apr 25, 2020 at 7:55 AM kachi communication 
wrote:

> Am sorry! Thanks for the information.
>
> On Fri, Apr 24, 2020, 11:13 PM Alex Balashov 
> wrote:
>
>> On Fri, Apr 24, 2020 at 08:25:15PM -0400, kachi communication wrote:
>>
>> > I need someone to build a calling card switch for my company for a
>> > fee.
>>
>> 1. This has nothing to do with the mailing list thread to which you are
>> replying, and as such is quite a rude and inconsiderate intrusion;
>>
>> 2. There is a business mailing list specifically for commercial
>> solicitations of this nature:
>>
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/business
>>
>> 3. You can find a list of providers of commercial Kamailio consulting
>> and support here:
>>
>> https://www.kamailio.org/w/business-directory/
>>
>> -- Alex
>>
>> --
>> Alex Balashov | Principal | Evariste Systems LLC
>>
>> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
>> Web: http://www.evaristesys.com/, http://www.csrpswitch.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] RTP relay

2020-04-27 Thread Sergio Charrua
Try to remove the public IP from your Asterisk Box, this will even provide
additional security.
Then install RTPEngine, configure the RTP Engine accordingly, setup NAT to
your Kamailio configuration and try.
the following URLs are very good info on how to integrate everything:
http://www.evaristesys.com/blog/server-side-nat-traversal-with-kamailio-the-definitive-guide/

https://blog.voipxswitch.com/2015/08/11/rtpengine-with-kamailio-as-load-balancer-and-ip-gateway/


Hope this helps!



*Sérgio Charrua*

*www.voip.pt *
Mobile: +351 91  631 11 44

Email : *sergio.char...@voip.pt *
Esta mensagem e quaisquer ficheiros anexos a ela são confidenciais e
destinam-se a uso exclusivo da pessoa ou entidade a quem são dirigidos. Se,
por lapso, recebeu este e-mail, não o deverá revelar, copiar ou distribuir
a terceiros. É favor alertar de imediato o remetente e eliminar a mensagem
juntamente com os documentos anexados.





On Mon, Apr 27, 2020 at 8:06 PM hugues  wrote:

> Hello
> I'm trying to run Kamailio in front of an asterisk server due to security
> issues. Both servers have a public ip address. It works fine but the RTP
> voice traffic goes directly from the VOIP client to the asterisk server
> without going through the kamailio server. I want to shut down the asterisk
> server so that it only talks to the kamailio server.
>
> UA -> Kamailio public IP addr <-> Asterisk public ip addr
>
> How do I force RTP traffic to go through kamailio. Apparently I don't have
> NAT so I don't need rtpproxy.  But you need something that relays RTP
> traffic?
> If anyone has an idea I'll take it.
> Thank you for your help.
> Hugues.
>
>
>
> --
> Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html
>
> ___
> 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] RTP relay

2020-04-27 Thread Fred Posner
You'll need to use an rtp proxy such as rtpengine or rtpproxy for
this.

This is  a great example of when you need an rtp proxy outside of NAT.


-- 
Fred Posner
f...@palner.com
https://www.palner.com

Need Fred? Call Fred. 336-HEY-FRED
Matrix: @fred:matrix.lod.com

On Mon, 2020-04-27 at 09:10 -0700, hugues wrote:
> Hello
> I'm trying to run Kamailio in front of an asterisk server due to
> security
> issues. Both servers have a public ip address. It works fine but the
> RTP
> voice traffic goes directly from the VOIP client to the asterisk
> server
> without going through the kamailio server. I want to shut down the
> asterisk
> server so that it only talks to the kamailio server.
> 
> UA -> Kamailio public IP addr <-> Asterisk public ip addr
> 
> How do I force RTP traffic to go through kamailio. Apparently I
> don't have
> NAT so I don't need rtpproxy.  But you need something that relays
> RTP
> traffic? 
> If anyone has an idea I'll take it.
> Thank you for your help.
> Hugues.
> 
> 
> 
> --
> Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html
> 
> ___
> 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] RTP relay

2020-04-27 Thread hugues
Hello
I'm trying to run Kamailio in front of an asterisk server due to security
issues. Both servers have a public ip address. It works fine but the RTP
voice traffic goes directly from the VOIP client to the asterisk server
without going through the kamailio server. I want to shut down the asterisk
server so that it only talks to the kamailio server.

UA -> Kamailio public IP addr <-> Asterisk public ip addr

How do I force RTP traffic to go through kamailio. Apparently I don't have
NAT so I don't need rtpproxy.  But you need something that relays RTP
traffic? 
If anyone has an idea I'll take it.
Thank you for your help.
Hugues.



--
Sent from: http://sip-router.1086192.n5.nabble.com/Users-f3.html

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


[SR-Users] RFC: C standard requirements

2020-04-27 Thread Daniel-Constantin Mierla
Hello,

(cross-posting because it is relevant to know where users need to run
Kamailio as well as what developers tend to use for coding, but replies
can go to one or the other list).

Somehow I tried to stay close to ANSI-C/C90 with C coding style, for the
reason of being compatible as much as possible with old compiles and
niche/embedded systems. But I noticed that there are couple of C99
extensions in the core, like inline functions, variadic macros (the
debugging macros), use of 'long long' or line comments starting with
"//" (not so many, but still such comment style is used). Although I
haven't searched for occurrences in core, but I remember seeing
designated initializers (or initializing a structure by field names).
These are part of C99, as listed by:

  * https://en.wikipedia.org/wiki/C99#Design

Although likely GCC had some of them like custom extensions before the
standard was out.

On the other hand, newer standard C11 made some of those extensions
optional:

  *
https://en.wikipedia.org/wiki/C11_(C_standard_revision)#Optional_features

So, my email here is to figure out if we should consider C99 as the
requirement for adding C code or be more restrictive because there are
still cases of usage on very specific systems that do not have such C
compiler. We can eventually make a list of what is accepted or not from
the recent versions of C standard to stay as much as possible portable
across Unix'es.

From develeopers perspective, it would be good to learn if they use (in
other projects, etc.) extensions of the new standards that they found
useful and simplify their programming work.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda


___
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
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] Next online devel meeting - Wed, Apr 29, 2020, 14:00UTC

2020-04-27 Thread Daniel-Constantin Mierla
Hello,

writing shortly to confirm that the next online devel meeting is going
to happen on Wed, Apr 29, 2020, 14:00UTC, not having other proposals for
different dates.

The meeting will be on a Matrix chat room using a server instance
installed on one of Kamailio projects servers, allowing us to permit
guest access via web browser during the meeting, so it is no required to
created a matrix account for those that want to participate.

The Matrix chat room URL is:

  * https://riot.kamailio.dev/#/room/#kamailio:matrix.kamailio.dev

For convenience, again, the link to the wiki page with the details about
the online devel meeting:

  * https://www.kamailio.org/wiki/devel/irc-meetings/2020a

Cheers,
Daniel


On 22.04.20 10:39, Daniel-Constantin Mierla wrote:
> Hello,
>
> in order to plan the roadmap to next major release, it is time to
> organize another online devel meeting, so the developers and community
> members can syncronize and plan what should be done till Kamailio v5.4
> will be out.
>
> Because freenode.net service is now requiring user registration to join
> IRC channels on their servers, we are considering some alternatives that
> would allow guest participation, one of them being using a matrix chat
> room. More details about it will be posted soon.
>
> I created a wiki page for the event at:
>
>   * https://www.kamailio.org/wiki/devel/irc-meetings/2020a
>
> Feel free to add there topics that you want to be discussed.
>
> The proposed date is next Wednesday, April 29, 2020, at 14:00UTC (15:00
> London/Dublin, 16:00 most of West Europe, 10:00 New York), but other
> dates can be proposed if they suit for more participants.
>
> Cheers,
> Daniel
>
> -- 
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda


___
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
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.
> htt

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] Multi INVITE issue

2020-04-27 Thread Henning Westerholt
Hello,

the description sounds a bit like retransmits of the INVITEs are created. But 
it is hard to say without more details.

Do a SIP trace on the place where you observe the problem, e.g. with ngrep or 
sngrep. Then have a look to the SIP messages that are exchanged.

Cheers,

Henning

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

From: sr-users  On Behalf Of Pavithra M
Sent: Wednesday, April 22, 2020 7:10 AM
To: Kamailio (SER) - Users Mailing List 
Subject: [SR-Users] Multi INVITE issue

Hi,
I have configured kamailio IMS in vm based images. I have configured 
pcscf,icscf,scscf,hss and ue in five different vms.I am able to successfully 
make a call via IMS.

But when making a INVITE from alice to bob, it goes via

ue  ->  pcscf
pcscf -> scscf
scscf -> icscf
icscf  -> scscf
scscf  -> pcscf (here multiple INVITE is happening and giving 483 Too Many Hops 
error and then the call is going to UE successfully)
pcscf ->  ue

Can anybody help me what am i missing . why multi INVITE is happening there 
alone and giving me too many hops issue. Even after that issue how the call 
reaches the other UE.

Kindly anyone help me in this regard atleast where to check this scenario.


___
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