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
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_pse... https://kamailio.org/docs/modules/5.1.x/modules/sqlops.html
On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol toffi.bossol@yahoo.com 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
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 joel@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_pse...
On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol toffi.bossol@yahoo.com 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
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 toffi.bossol@yahoo.com 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 < joel@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_pse... https://kamailio.org/docs/modules/5.1.x/modules/sqlops.html
On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol toffi.bossol@yahoo.com 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
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 joel@textplus.com 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 toffi.bossol@yahoo.com 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 joel@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_pse...
On Tue, Oct 30, 2018 at 8:11 AM Toffi Bossol toffi.bossol@yahoo.com 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
On Thu, Nov 01, 2018 at 09:20:46AM +0000, 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.
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 d.tryba@pocos.nl wrote:
On Thu, Nov 01, 2018 at 09:20:46AM +0000, 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
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 d.tryba@pocos.nl Folgendes geschrieben:
On Thu, Nov 01, 2018 at 09:20:46AM +0000, 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