Re: [SR-Users] Store TLS handshake date from Kamailio to an external DB

2018-11-02 Thread Toffi Bossol
Hello ,
Thanks for you answer.
I re-formulate my questions:
   
   - How can I tell Kamailio to store the TLS Data in an external DB?
   - How can I configure Kamailio to read (without re-use) data from DB and 
verify if there was a TLS session established before?
Many Thanks in advance.

Best regards,
Toffi 

Am Donnerstag, 1. November 2018, 12:10:57 MEZ hat Daniel Tryba 
 Folgendes geschrieben:  
 
 On Thu, Nov 01, 2018 at 09:20:46AM +, Toffi Bossol wrote:
> my use case will be:
>    
>    - We use two Kamailio instances (A and B)  
> 
>    - A Client registers to a Kamailio A using TLS (SIP over TLS). The TLS 
>session data shall be stored into an external DB.
>    - Kamailio A is now unreachable.
>    - The client sends a register to Kamailio B over TLS.
>    - Kamailio B shall look into the external DB and checks that there is 
>already a TLS session data and can reuse it.  

In order to make a SIP over TLS handshake, there has to be a new
handshake. So the old data is stale and unusable.


___
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] Store TLS handshake date from Kamailio to an external DB

2018-11-01 Thread Joel Serrano
Plus, if kamailio1 dies you will need a NEW tcp connection from your client
to kamailio2, and that effectively means as Daniel said a new handshake.

On Thu, Nov 1, 2018 at 04:11 Daniel Tryba  wrote:

> On Thu, Nov 01, 2018 at 09:20:46AM +, Toffi Bossol wrote:
> > my use case will be:
> >
> >- We use two Kamailio instances (A and B)
> >
> >- A Client registers to a Kamailio A using TLS (SIP over TLS). The
> TLS session data shall be stored into an external DB.
> >- Kamailio A is now unreachable.
> >- The client sends a register to Kamailio B over TLS.
> >- Kamailio B shall look into the external DB and checks that there is
> already a TLS session data and can reuse it.
>
> In order to make a SIP over TLS handshake, there has to be a new
> handshake. So the old data is stale and unusable.
>
>
> ___
> 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] Store TLS handshake date from Kamailio to an external DB

2018-11-01 Thread Daniel Tryba
On Thu, Nov 01, 2018 at 09:20:46AM +, Toffi Bossol wrote:
> my use case will be:
>
>- We use two Kamailio instances (A and B)   
> 
>- A Client registers to a Kamailio A using TLS (SIP over TLS). The TLS 
> session data shall be stored into an external DB.
>- Kamailio A is now unreachable.
>- The client sends a register to Kamailio B over TLS.
>- Kamailio B shall look into the external DB and checks that there is 
> already a TLS session data and can reuse it.   

In order to make a SIP over TLS handshake, there has to be a new
handshake. So the old data is stale and unusable.


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


Re: [SR-Users] Store TLS handshake date from Kamailio to an external DB

2018-11-01 Thread Toffi Bossol
Hello Joel,

my use case will be:
   
   - We use two Kamailio instances (A and B)   

   - A Client registers to a Kamailio A using TLS (SIP over TLS). The TLS 
session data shall be stored into an external DB.
   - Kamailio A is now unreachable.
   - The client sends a register to Kamailio B over TLS.
   - Kamailio B shall look into the external DB and checks that there is 
already a TLS session data and can reuse it.   

 
Best regards,
Toffi
Am Mittwoch, 31. Oktober 2018, 18:03:48 MEZ hat Joel Serrano 
 Folgendes geschrieben:  
 
 I'm not sure how to answer correctly that question as it depends completely on 
what you are trying to accomplish.
Say you get to save the TLS connection information in a database, how would 
that be helpful?
On Wed, Oct 31, 2018 at 7:08 AM Toffi Bossol  wrote:


Hello Joel,


manythanks for your reply.

Background info: Iam trying to implement Kamailio as stateless as possible and 
wonder how I cancache and reuse the information from a TLS connection within a 
database.

 

And does cachingmake sense?

Best regards,

Toffi







 

Am Mittwoch, 31. Oktober 2018, 02:01:04 MEZ hat Joel Serrano 
 Folgendes geschrieben:  
 
 Maybe use a pseudovariable from the TLS module to get the data you want and 
then use sqlops to insert it to database?
Have a look: 
https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#tls_module_pseudo-variableshttps://kamailio.org/docs/modules/5.1.x/modules/sqlops.html

On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol  wrote:

Dear community,

I am new in Kamailio hence the following question:
Does any one know how to  tell Kamailio to store the TLS session data in an 
external DB?
Many Thanks in advance!

BR;
Toffi
___
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] Store TLS handshake date from Kamailio to an external DB

2018-10-31 Thread Joel Serrano
I'm not sure how to answer correctly that question as it depends completely
on what you are trying to accomplish.

Say you get to save the TLS connection information in a database, how would
that be helpful?

On Wed, Oct 31, 2018 at 7:08 AM Toffi Bossol  wrote:

> Hello Joel,
>
> many thanks for your reply.
>
> Background info: I am trying to implement Kamailio as stateless as
> possible and wonder how I can cache and reuse the information from a TLS
> connection within a database.
>
>
>
> And does caching make sense?
>
> Best regards,
>
> Toffi
>
>
>
>
>
> Am Mittwoch, 31. Oktober 2018, 02:01:04 MEZ hat Joel Serrano <
> j...@textplus.com> Folgendes geschrieben:
>
>
> Maybe use a pseudovariable from the TLS module to get the data you want
> and then use sqlops to insert it to database?
>
> Have a look:
>
>
> https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#tls_module_pseudo-variables
> https://kamailio.org/docs/modules/5.1.x/modules/sqlops.html
>
>
> On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol 
> wrote:
>
> Dear community,
>
> I am new in Kamailio hence the following question:
> Does any one know how to tell Kamailio to store the TLS session data in
> an external DB?
>
> Many Thanks in advance!
>
> BR;
> Toffi
> ___
> 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] Store TLS handshake date from Kamailio to an external DB

2018-10-31 Thread Toffi Bossol

Hello Joel,


manythanks for your reply.

Background info: Iam trying to implement Kamailio as stateless as possible and 
wonder how I cancache and reuse the information from a TLS connection within a 
database.

 

And does cachingmake sense?

Best regards,

Toffi







 

Am Mittwoch, 31. Oktober 2018, 02:01:04 MEZ hat Joel Serrano 
 Folgendes geschrieben:  
 
 Maybe use a pseudovariable from the TLS module to get the data you want and 
then use sqlops to insert it to database?
Have a look: 
https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#tls_module_pseudo-variableshttps://kamailio.org/docs/modules/5.1.x/modules/sqlops.html

On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol  wrote:

Dear community,

I am new in Kamailio hence the following question:
Does any one know how to  tell Kamailio to store the TLS session data in an 
external DB?
Many Thanks in advance!

BR;
Toffi
___
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] Store TLS handshake date from Kamailio to an external DB

2018-10-30 Thread Joel Serrano
Maybe use a pseudovariable from the TLS module to get the data you want and
then use sqlops to insert it to database?

Have a look:

https://www.kamailio.org/wiki/cookbooks/5.1.x/pseudovariables#tls_module_pseudo-variables
https://kamailio.org/docs/modules/5.1.x/modules/sqlops.html


On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol  wrote:

> Dear community,
>
> I am new in Kamailio hence the following question:
> Does any one know how to tell Kamailio to store the TLS session data in
> an external DB?
>
> Many Thanks in advance!
>
> BR;
> Toffi
> ___
> 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] Store TLS handshake date from Kamailio to an external DB

2018-10-30 Thread Toffi Bossol
Dear community,

I am new in Kamailio hence the following question:
Does any one know how to  tell Kamailio to store the TLS session data in an 
external DB?
Many Thanks in advance!

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