2025-10-20T23:19:42.730+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Pool stats (total=10/10, idle=10/10, active=0, waiting=0)
2025-10-20T23:19:42.730+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Fill pool skipped, pool has sufficient level or currently being filled.
2025-10-20T23:19:52.025+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.filter.TelnyxTenantResolverFilter  : 🎯 TelnyxTenantResolverFilter: Intercepting webhook: /api/voip/telnyx/texml-response
2025-10-20T23:19:52.030+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:19:52.030+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:52.067+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.create         : Created new SQL alias : pn1_0
2025-10-20T23:19:52.068+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.PhoneNumber(26))] with identifierForTableGroup [com.saas.admin.entity.PhoneNumber] for NavigablePath [com.saas.admin.entity.PhoneNumber] 
2025-10-20T23:19:52.073+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@2b337627
2025-10-20T23:19:52.073+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.PhoneNumber(26).phoneNumber) 
2025-10-20T23:19:52.075+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.PhoneNumber(26)]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).description]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).friendlyName]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).isActive]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).phoneNumber]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).provider]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.PhoneNumber(26).updatedAt]

2025-10-20T23:19:52.076+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (pn1 : com.saas.admin.entity.PhoneNumber(26)) {
          primaryTableReference : phone_numbers as pn1_0
        }
      }
    }

2025-10-20T23:19:52.081+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:19:52.083+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.SQL                        : 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
Hibernate: 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
2025-10-20T23:19:52.083+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:19:52.083+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:19:52.083+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:19:52.091+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.PhoneNumber(26) -> EntityJoinedFetchInitializer(com.saas.admin.entity.PhoneNumber(26))@1882712667 (SingleTableEntityPersister(com.saas.admin.entity.PhoneNumber))

2025-10-20T23:19:52.099+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:19:52.099+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:52.099+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.create         : Created new SQL alias : t1_0
2025-10-20T23:19:52.099+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.Tenant(34))] with identifierForTableGroup [com.saas.admin.entity.Tenant] for NavigablePath [com.saas.admin.entity.Tenant] 
2025-10-20T23:19:52.099+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@3098528b
2025-10-20T23:19:52.099+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.Tenant(34).tenantId) 
2025-10-20T23:19:52.100+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.Tenant(34)]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).schemaName]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).status]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantId]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantName]
 |  \-BasicFetch [com.saas.admin.entity.Tenant(34).updatedAt]

2025-10-20T23:19:52.100+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (t1 : com.saas.admin.entity.Tenant(34)) {
          primaryTableReference : tenants as t1_0
        }
      }
    }

2025-10-20T23:19:52.100+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:19:52.100+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.SQL                        : 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
Hibernate: 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
2025-10-20T23:19:52.100+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:19:52.100+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:19:52.100+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:19:52.102+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.Tenant(34) -> EntityJoinedFetchInitializer(com.saas.admin.entity.Tenant(34))@2114159030 (SingleTableEntityPersister(com.saas.admin.entity.Tenant))

2025-10-20T23:19:52.103+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.filter.TelnyxTenantResolverFilter  : ✅ TelnyxTenantResolverFilter: Resolved tenant 'e7f7179a-5393-4711-adae-083a22cf9e68' (schema: tenant_clinique_la_rive1_bleue1) for number: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com - Context remains 'saas_db'
2025-10-20T23:19:52.113+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.security.web.FilterChainProxy        : Securing POST /api/voip/telnyx/texml-response
2025-10-20T23:19:52.117+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.security.TenantIdentifierFilter    : 🔒 TenantIdentifierFilter: Tenant already set to 'saas_db', skipping JWT extraction for URI: /api/voip/telnyx/texml-response
2025-10-20T23:19:52.118+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
2025-10-20T23:19:52.122+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.security.web.FilterChainProxy        : Secured POST /api/voip/telnyx/texml-response
2025-10-20T23:19:52.123+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.web.servlet.DispatcherServlet        : POST "/api/voip/telnyx/texml-response", parameters={masked}
2025-10-20T23:19:52.124+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.saas.voip.controller.TelnyxTeXMLController#handleTeXMLRequest(HttpServletRequest, String, String, String, String)
2025-10-20T23:19:52.124+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:19:52.124+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:52.134+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : === TELNYX TeXML REQUEST ===
2025-10-20T23:19:52.135+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : 📞 From: i8h9mz6m@sip.telnyx.eu, To: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, CallSid: v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, Status: null
2025-10-20T23:19:52.135+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : ✅ Using tenant from filter: e7f7179a-5393-4711-adae-083a22cf9e68 (schema: tenant_clinique_la_rive1_bleue1)
2025-10-20T23:19:52.135+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.tenant.service.InboundCallService    : 🆕 Creating MANUAL Hibernate Session for tenant schema: tenant_clinique_la_rive1_bleue1
2025-10-20T23:19:52.135+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:52.135+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.t.internal.TransactionImpl         : On TransactionImpl creation, JpaCompliance#isJpaTransactionComplianceEnabled == false
2025-10-20T23:19:52.135+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.t.internal.TransactionImpl         : begin
2025-10-20T23:19:52.135+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: tenant_clinique_la_rive1_bleue1
2025-10-20T23:19:52.135+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE tenant_clinique_la_rive1_bleue1
2025-10-20T23:19:52.136+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: tenant_clinique_la_rive1_bleue1
2025-10-20T23:19:52.136+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.tenant.service.InboundCallService    : ✅ New Hibernate Session created with explicit tenantIdentifier: tenant_clinique_la_rive1_bleue1
2025-10-20T23:19:52.139+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.engine.spi.ActionQueue     : Executing identity-insert immediately
2025-10-20T23:19:52.143+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.SQL                        : 
    insert 
    into
        inbound_call_data
        (account_sid, api_version, call_sid, call_status, call_token, called, called_city, called_country, called_state, called_zip, caller, caller_city, caller_country, caller_state, caller_zip, created_at, direction, duration, end_time, forwarded_from, from_city, from_country, from_number, from_state, from_zip, parent_call_sid, recording_sid, recording_url, start_time, stir_verstat, to_city, to_country, to_number, to_state, to_zip, updated_at) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        inbound_call_data
        (account_sid, api_version, call_sid, call_status, call_token, called, called_city, called_country, called_state, called_zip, caller, caller_city, caller_country, caller_state, caller_zip, created_at, direction, duration, end_time, forwarded_from, from_city, from_country, from_number, from_state, from_zip, parent_call_sid, recording_sid, recording_url, start_time, stir_verstat, to_city, to_country, to_number, to_state, to_zip, updated_at) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2025-10-20T23:19:52.148+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.results                : Initializer list is empty
2025-10-20T23:19:52.149+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.id.IdentifierGeneratorHelper         : Extracted generated values [com.saas.tenant.entity.InboundCallData]: [Ljava.lang.Object;@787a4fc1
2025-10-20T23:19:52.150+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Processing flush-time cascades
2025-10-20T23:19:52.150+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Dirty checking collections
2025-10-20T23:19:52.151+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
2025-10-20T23:19:52.151+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2025-10-20T23:19:52.151+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.hibernate.internal.util.EntityPrinter  : Listing entities:
2025-10-20T23:19:52.151+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.hibernate.internal.util.EntityPrinter  : com.saas.tenant.entity.InboundCallData{callerCountry=null, called=null, fromZip=null, stirVerstat=null, parentCallSid=null, callerState=null, duration=null, createdAt=2025-10-20T23:19:52.141009, toState=null, apiVersion=null, recordingSid=null, callStatus=initiated, calledZip=null, startTime=2025-10-20T23:19:52.135105, id=11, direction=inbound, updatedAt=2025-10-20T23:19:52.141035, callerCity=null, fromState=null, callSid=v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, fromCountry=null, calledCity=null, toCity=null, calledCountry=null, callerZip=null, toCountry=null, calledState=null, fromNumber=i8h9mz6m@sip.telnyx.eu, toZip=null, callToken=null, caller=null, recordingUrl=null, endTime=null, forwardedFrom=null, accountSid=null, fromCity=null, toNumber=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com}
2025-10-20T23:19:52.152+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.t.internal.TransactionImpl         : committing
2025-10-20T23:19:52.152+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Processing flush-time cascades
2025-10-20T23:19:52.152+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Dirty checking collections
2025-10-20T23:19:52.152+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
2025-10-20T23:19:52.152+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2025-10-20T23:19:52.152+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.hibernate.internal.util.EntityPrinter  : Listing entities:
2025-10-20T23:19:52.152+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.hibernate.internal.util.EntityPrinter  : com.saas.tenant.entity.InboundCallData{callerCountry=null, called=null, fromZip=null, stirVerstat=null, parentCallSid=null, callerState=null, duration=null, createdAt=2025-10-20T23:19:52.141009, toState=null, apiVersion=null, recordingSid=null, callStatus=initiated, calledZip=null, startTime=2025-10-20T23:19:52.135105, id=11, direction=inbound, updatedAt=2025-10-20T23:19:52.141035, callerCity=null, fromState=null, callSid=v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, fromCountry=null, calledCity=null, toCity=null, calledCountry=null, callerZip=null, toCountry=null, calledState=null, fromNumber=i8h9mz6m@sip.telnyx.eu, toZip=null, callToken=null, caller=null, recordingUrl=null, endTime=null, forwardedFrom=null, accountSid=null, fromCity=null, toNumber=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com}
2025-10-20T23:19:52.153+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.tenant.service.InboundCallService    : 💾 Call data saved to TENANT schema 'tenant_clinique_la_rive1_bleue1' - CallSid: v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, From: i8h9mz6m@sip.telnyx.eu, To: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com
2025-10-20T23:19:52.153+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.tenant.service.InboundCallService    : 🔒 Closed manual Hibernate Session for schema: tenant_clinique_la_rive1_bleue1
2025-10-20T23:19:52.153+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : ✅ Telnyx call data saved to tenant schema: tenant_clinique_la_rive1_bleue1
2025-10-20T23:19:52.154+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.orm.jpa.JpaTransactionManager        : Found thread-bound EntityManager [SessionImpl(478028038<open>)] for JPA transaction
2025-10-20T23:19:52.154+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.orm.jpa.JpaTransactionManager        : Creating new transaction with name [com.saas.shared.service.TenantVoipConfigRuntimeService.resolveVoipConfig]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly
2025-10-20T23:19:52.154+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:19:52.154+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:19:52.155+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:19:52.155+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.jdbc.datasource.DataSourceUtils      : Setting JDBC Connection [HikariProxyConnection@270011956 wrapping com.mysql.cj.jdbc.ConnectionImpl@68303c3e] read-only
2025-10-20T23:19:52.155+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.t.internal.TransactionImpl         : On TransactionImpl creation, JpaCompliance#isJpaTransactionComplianceEnabled == false
2025-10-20T23:19:52.155+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.t.internal.TransactionImpl         : begin
2025-10-20T23:19:52.156+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.orm.jpa.JpaTransactionManager        : Exposing JPA transaction as JDBC [org.springframework.orm.jpa.vendor.HibernateJpaDialect$HibernateConnectionHandle@14b99b02]
2025-10-20T23:19:52.156+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.s.TenantVoipConfigRuntimeService   : 🔍 Resolving VoIP config for tenant: e7f7179a-5393-4711-adae-083a22cf9e68, provider: TELNYX
2025-10-20T23:19:52.156+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.create         : Created new SQL alias : tvc1_0
2025-10-20T23:19:52.156+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.TenantVoipConfig(90))] with identifierForTableGroup [com.saas.admin.entity.TenantVoipConfig] for NavigablePath [com.saas.admin.entity.TenantVoipConfig] 
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@347d3b8d
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.TenantVoipConfig(90).tenantId) 
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@734e3f70
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.TenantVoipConfig(90).provider) 
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@b767b02
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.TenantVoipConfig(90).isActive) 
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.TenantVoipConfig(90)]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).aiAssistantId]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).aiType]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).isActive]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).messagingProfileId]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).metadata]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).provider]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).streamUrl]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).updatedAt]

2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (tvc1 : com.saas.admin.entity.TenantVoipConfig(90)) {
          primaryTableReference : tenant_voip_configs as tvc1_0
        }
      }
    }

2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:19:52.157+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.SQL                        : 
    select
        tvc1_0.id,
        tvc1_0.ai_assistant_id,
        tvc1_0.ai_type,
        tvc1_0.created_at,
        tvc1_0.is_active,
        tvc1_0.messaging_profile_id,
        tvc1_0.metadata,
        tvc1_0.provider,
        tvc1_0.stream_url,
        tvc1_0.tenant_id,
        tvc1_0.updated_at 
    from
        tenant_voip_configs tvc1_0 
    where
        tvc1_0.tenant_id=? 
        and tvc1_0.provider=? 
        and tvc1_0.is_active=?
Hibernate: 
    select
        tvc1_0.id,
        tvc1_0.ai_assistant_id,
        tvc1_0.ai_type,
        tvc1_0.created_at,
        tvc1_0.is_active,
        tvc1_0.messaging_profile_id,
        tvc1_0.metadata,
        tvc1_0.provider,
        tvc1_0.stream_url,
        tvc1_0.tenant_id,
        tvc1_0.updated_at 
    from
        tenant_voip_configs tvc1_0 
    where
        tvc1_0.tenant_id=? 
        and tvc1_0.provider=? 
        and tvc1_0.is_active=?
2025-10-20T23:19:52.158+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.TenantVoipConfig(90) -> EntityJoinedFetchInitializer(com.saas.admin.entity.TenantVoipConfig(90))@905709836 (SingleTableEntityPersister(com.saas.admin.entity.TenantVoipConfig))

2025-10-20T23:19:52.159+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.s.TenantVoipConfigRuntimeService   : ✅ VoIP config found in database (active)
2025-10-20T23:19:52.159+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.orm.jpa.JpaTransactionManager        : Initiating transaction commit
2025-10-20T23:19:52.159+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.orm.jpa.JpaTransactionManager        : Committing JPA transaction on EntityManager [SessionImpl(478028038<open>)]
2025-10-20T23:19:52.159+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.h.e.t.internal.TransactionImpl         : committing
2025-10-20T23:19:52.159+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.jdbc.datasource.DataSourceUtils      : Resetting read-only flag of JDBC Connection [HikariProxyConnection@270011956 wrapping com.mysql.cj.jdbc.ConnectionImpl@68303c3e]
2025-10-20T23:19:52.160+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.orm.jpa.JpaTransactionManager        : Not closing pre-bound JPA EntityManager after transaction
2025-10-20T23:19:52.160+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : 📋 VoIP Config loaded for tenant: e7f7179a-5393-4711-adae-083a22cf9e68 - Type: TELNYX_NATIVE_AI, AssistantID: assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d
2025-10-20T23:19:52.160+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : 🔧 VoIP Config - Type: TELNYX_NATIVE_AI, AssistantID: assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d, StreamURL: wss://benedictory-provocative-lauralee.ngrok-free.dev/stream, Source: DATABASE
2025-10-20T23:19:52.160+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : 🤖 Starting Telnyx Native AI Assistant with Connect: assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d
2025-10-20T23:19:52.160+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : 📞 StatusCallback configured: https://benedictory-provocative-lauralee.ngrok-free.dev/api/voip/telnyx/status-callback
2025-10-20T23:19:52.160+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.controller.TelnyxTeXMLController   : 📄 TeXML Response:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <!-- Telnyx AI Assistant - Full Conversation Mode -->
  <Connect statusCallback="https://benedictory-provocative-lauralee.ngrok-free.dev/api/voip/telnyx/status-callback" statusCallbackEvent="initiated ringing answered completed">
    <AIAssistant id="assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d"/>
  </Connect>
</Response>
2025-10-20T23:19:52.163+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] m.m.a.RequestResponseBodyMethodProcessor : Using 'application/xml', given [*/*] and supported [application/xml]
2025-10-20T23:19:52.164+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] m.m.a.RequestResponseBodyMethodProcessor : Writing ["<?xml version="1.0" encoding="UTF-8"?><EOL><Response><EOL>  <!-- Telnyx AI Assistant - Full Conversation Mod (truncated)..."]
2025-10-20T23:19:52.166+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:19:52.166+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] o.s.web.servlet.DispatcherServlet        : Completed 200 OK
2025-10-20T23:19:52.167+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.s.security.TenantIdentifierFilter    : 🧹 TenantIdentifierFilter: Cleared TenantContext after request
2025-10-20T23:19:52.167+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-1] c.s.v.filter.TelnyxTenantResolverFilter  : 🧹 TelnyxTenantResolverFilter: Cleared TenantContext
2025-10-20T23:19:55.619+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.v.filter.TelnyxTenantResolverFilter  : 🎯 TelnyxTenantResolverFilter: Intercepting webhook: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:55.620+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:19:55.621+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:55.621+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.ast.create         : Created new SQL alias : pn1_0
2025-10-20T23:19:55.621+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.PhoneNumber(26))] with identifierForTableGroup [com.saas.admin.entity.PhoneNumber] for NavigablePath [com.saas.admin.entity.PhoneNumber] 
2025-10-20T23:19:55.622+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@77f4cda4
2025-10-20T23:19:55.622+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.PhoneNumber(26).phoneNumber) 
2025-10-20T23:19:55.622+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.PhoneNumber(26)]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).description]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).friendlyName]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).isActive]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).phoneNumber]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).provider]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.PhoneNumber(26).updatedAt]

2025-10-20T23:19:55.622+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (pn1 : com.saas.admin.entity.PhoneNumber(26)) {
          primaryTableReference : phone_numbers as pn1_0
        }
      }
    }

2025-10-20T23:19:55.622+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:19:55.623+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.SQL                        : 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
Hibernate: 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
2025-10-20T23:19:55.623+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:19:55.623+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:19:55.624+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:19:55.625+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.PhoneNumber(26) -> EntityJoinedFetchInitializer(com.saas.admin.entity.PhoneNumber(26))@167570998 (SingleTableEntityPersister(com.saas.admin.entity.PhoneNumber))

2025-10-20T23:19:55.626+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:19:55.626+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.ast.create         : Created new SQL alias : t1_0
2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.Tenant(34))] with identifierForTableGroup [com.saas.admin.entity.Tenant] for NavigablePath [com.saas.admin.entity.Tenant] 
2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@a5abeeb
2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.Tenant(34).tenantId) 
2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.Tenant(34)]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).schemaName]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).status]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantId]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantName]
 |  \-BasicFetch [com.saas.admin.entity.Tenant(34).updatedAt]

2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (t1 : com.saas.admin.entity.Tenant(34)) {
          primaryTableReference : tenants as t1_0
        }
      }
    }

2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:19:55.627+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.SQL                        : 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
Hibernate: 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
2025-10-20T23:19:55.627+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:19:55.627+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:19:55.628+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:19:55.629+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.Tenant(34) -> EntityJoinedFetchInitializer(com.saas.admin.entity.Tenant(34))@1358714865 (SingleTableEntityPersister(com.saas.admin.entity.Tenant))

2025-10-20T23:19:55.630+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.v.filter.TelnyxTenantResolverFilter  : ✅ TelnyxTenantResolverFilter: Resolved tenant 'e7f7179a-5393-4711-adae-083a22cf9e68' (schema: tenant_clinique_la_rive1_bleue1) for number: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com - Context remains 'saas_db'
2025-10-20T23:19:55.630+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.s.security.web.FilterChainProxy        : Securing POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:55.631+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.s.security.TenantIdentifierFilter    : 🔒 TenantIdentifierFilter: Tenant already set to 'saas_db', skipping JWT extraction for URI: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:55.631+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
2025-10-20T23:19:55.631+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.s.security.web.FilterChainProxy        : Secured POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:55.632+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.s.web.servlet.DispatcherServlet        : POST "/api/voip/telnyx/ai/conversation-event", parameters={masked}
2025-10-20T23:19:55.632+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.saas.voip.controller.TelnyxEventController#handleConversationEvent(HttpServletRequest, Map)
2025-10-20T23:19:55.632+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:19:55.632+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:55.633+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.v.controller.TelnyxEventController   : === TELNYX AI CONVERSATION EVENT ===
2025-10-20T23:19:55.633+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.v.controller.TelnyxEventController   : 📥 Content-Type: application/x-www-form-urlencoded
2025-10-20T23:19:55.633+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.v.controller.TelnyxEventController   : 📥 All parameters: {AccountSid=24b8c68c-c52a-4dd2-859c-22f1d2e62203, AnsweredTime=2025-10-20T22:19:53.528505Z, CallControlId=v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, CallDuration=1, CallLegId=e5227256-ae02-11f0-bda7-02420a1f1069, CallQualityStats={"inbound":{"jitter_max_variance":"0.00","jitter_packet_count":"0","mos":"4.50","packet_count":"0","skip_packet_count":"40"},"outbound":{"packet_count":"0","skip_packet_count":"0"}}, CallSessionId=e5226284-ae02-11f0-b442-02420a1f1069, CallSid=v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, CallSidLegacy=v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, CallStatus=completed, CallbackSource=call-progress-events, CallingPartyType=sip, ConnectionId=2806750933822736154, EndTime=2025-10-20T22:19:54.328457Z, From=i8h9mz6m@sip.telnyx.eu, FromSipUri=i8h9mz6m@sip.telnyx.eu, HangupCause=normal_clearing, HangupSource=caller, OccurredAt=2025-10-20T22:19:54.328457Z, OrganizationId=24b8c68c-c52a-4dd2-859c-22f1d2e62203, SequenceNumber=0, SipHangupCause=200, StartTime=2025-10-20T22:19:53.528505Z, Timestamp=2025-10-20 22:19:55.229749Z, To=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, ToSipUri=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, UserId=24b8c68c-c52a-4dd2-859c-22f1d2e62203}
2025-10-20T23:19:55.639+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/*+xml;charset=UTF-8]
2025-10-20T23:19:55.639+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [{status=received, params_count=27}]
2025-10-20T23:19:55.648+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:19:55.648+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] o.s.web.servlet.DispatcherServlet        : Completed 200 OK
2025-10-20T23:19:55.648+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.s.security.TenantIdentifierFilter    : 🧹 TenantIdentifierFilter: Cleared TenantContext after request
2025-10-20T23:19:55.649+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-2] c.s.v.filter.TelnyxTenantResolverFilter  : 🧹 TelnyxTenantResolverFilter: Cleared TenantContext
2025-10-20T23:19:56.638+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.v.filter.TelnyxTenantResolverFilter  : 🎯 TelnyxTenantResolverFilter: Intercepting webhook: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:56.640+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:19:56.640+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:56.642+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.ast.create         : Created new SQL alias : pn1_0
2025-10-20T23:19:56.642+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.PhoneNumber(26))] with identifierForTableGroup [com.saas.admin.entity.PhoneNumber] for NavigablePath [com.saas.admin.entity.PhoneNumber] 
2025-10-20T23:19:56.643+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@6ad3649f
2025-10-20T23:19:56.643+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.PhoneNumber(26).phoneNumber) 
2025-10-20T23:19:56.643+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.PhoneNumber(26)]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).description]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).friendlyName]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).isActive]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).phoneNumber]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).provider]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.PhoneNumber(26).updatedAt]

2025-10-20T23:19:56.643+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (pn1 : com.saas.admin.entity.PhoneNumber(26)) {
          primaryTableReference : phone_numbers as pn1_0
        }
      }
    }

2025-10-20T23:19:56.643+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:19:56.644+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.SQL                        : 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
Hibernate: 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
2025-10-20T23:19:56.644+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:19:56.645+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:19:56.645+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:19:56.646+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.PhoneNumber(26) -> EntityJoinedFetchInitializer(com.saas.admin.entity.PhoneNumber(26))@348552743 (SingleTableEntityPersister(com.saas.admin.entity.PhoneNumber))

2025-10-20T23:19:56.647+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:19:56.647+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:56.648+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.ast.create         : Created new SQL alias : t1_0
2025-10-20T23:19:56.648+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.Tenant(34))] with identifierForTableGroup [com.saas.admin.entity.Tenant] for NavigablePath [com.saas.admin.entity.Tenant] 
2025-10-20T23:19:56.649+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@372e3728
2025-10-20T23:19:56.649+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.Tenant(34).tenantId) 
2025-10-20T23:19:56.649+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.Tenant(34)]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).schemaName]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).status]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantId]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantName]
 |  \-BasicFetch [com.saas.admin.entity.Tenant(34).updatedAt]

2025-10-20T23:19:56.649+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (t1 : com.saas.admin.entity.Tenant(34)) {
          primaryTableReference : tenants as t1_0
        }
      }
    }

2025-10-20T23:19:56.650+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:19:56.650+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.SQL                        : 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
Hibernate: 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
2025-10-20T23:19:56.650+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:19:56.650+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:19:56.651+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:19:56.652+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.Tenant(34) -> EntityJoinedFetchInitializer(com.saas.admin.entity.Tenant(34))@542692371 (SingleTableEntityPersister(com.saas.admin.entity.Tenant))

2025-10-20T23:19:56.653+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.v.filter.TelnyxTenantResolverFilter  : ✅ TelnyxTenantResolverFilter: Resolved tenant 'e7f7179a-5393-4711-adae-083a22cf9e68' (schema: tenant_clinique_la_rive1_bleue1) for number: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com - Context remains 'saas_db'
2025-10-20T23:19:56.654+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.s.security.web.FilterChainProxy        : Securing POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:56.655+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.s.security.TenantIdentifierFilter    : 🔒 TenantIdentifierFilter: Tenant already set to 'saas_db', skipping JWT extraction for URI: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:56.655+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
2025-10-20T23:19:56.655+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.s.security.web.FilterChainProxy        : Secured POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:19:56.656+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.s.web.servlet.DispatcherServlet        : POST "/api/voip/telnyx/ai/conversation-event", parameters={masked}
2025-10-20T23:19:56.656+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.saas.voip.controller.TelnyxEventController#handleConversationEvent(HttpServletRequest, Map)
2025-10-20T23:19:56.656+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:19:56.656+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:19:56.657+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.v.controller.TelnyxEventController   : === TELNYX AI CONVERSATION EVENT ===
2025-10-20T23:19:56.657+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.v.controller.TelnyxEventController   : 📥 Content-Type: application/x-www-form-urlencoded
2025-10-20T23:19:56.657+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.v.controller.TelnyxEventController   : 📥 All parameters: {AccountSid=24b8c68c-c52a-4dd2-859c-22f1d2e62203, BilledDurationSeconds[v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA]=6, CallCost[v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA]=0.0004, CallSid=v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, CallSidLegacy=v3:ly6REYdbaE6PYkzfIFZMyq_JBEjdGt7X6sDu7JxWdTJxH2Gc_kYQpA, CallbackSource=call-cost-events, CallerId=Telnyx Web Dialer, CallingPartyType=sip, ConnectionId=2806750933822736154, From=i8h9mz6m@sip.telnyx.eu, FromSipUri=i8h9mz6m@sip.telnyx.eu, To=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, ToSipUri=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com}
2025-10-20T23:19:56.657+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/*+xml;charset=UTF-8]
2025-10-20T23:19:56.657+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [{status=received, params_count=13}]
2025-10-20T23:19:56.658+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:19:56.658+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] o.s.web.servlet.DispatcherServlet        : Completed 200 OK
2025-10-20T23:19:56.659+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.s.security.TenantIdentifierFilter    : 🧹 TenantIdentifierFilter: Cleared TenantContext after request
2025-10-20T23:19:56.659+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-3] c.s.v.filter.TelnyxTenantResolverFilter  : 🧹 TelnyxTenantResolverFilter: Cleared TenantContext
2025-10-20T23:20:12.552+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.filter.TelnyxTenantResolverFilter  : 🎯 TelnyxTenantResolverFilter: Intercepting webhook: /api/voip/telnyx/texml-response
2025-10-20T23:20:12.553+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:20:12.553+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:12.553+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.create         : Created new SQL alias : pn1_0
2025-10-20T23:20:12.553+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.PhoneNumber(26))] with identifierForTableGroup [com.saas.admin.entity.PhoneNumber] for NavigablePath [com.saas.admin.entity.PhoneNumber] 
2025-10-20T23:20:12.554+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@6c0a1da3
2025-10-20T23:20:12.554+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.PhoneNumber(26).phoneNumber) 
2025-10-20T23:20:12.554+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.PhoneNumber(26)]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).description]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).friendlyName]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).isActive]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).phoneNumber]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).provider]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.PhoneNumber(26).updatedAt]

2025-10-20T23:20:12.554+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (pn1 : com.saas.admin.entity.PhoneNumber(26)) {
          primaryTableReference : phone_numbers as pn1_0
        }
      }
    }

2025-10-20T23:20:12.555+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:20:12.555+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.SQL                        : 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
Hibernate: 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
2025-10-20T23:20:12.555+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:20:12.555+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:20:12.556+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:20:12.557+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.PhoneNumber(26) -> EntityJoinedFetchInitializer(com.saas.admin.entity.PhoneNumber(26))@303677560 (SingleTableEntityPersister(com.saas.admin.entity.PhoneNumber))

2025-10-20T23:20:12.558+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:20:12.558+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:12.559+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.create         : Created new SQL alias : t1_0
2025-10-20T23:20:12.559+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.Tenant(34))] with identifierForTableGroup [com.saas.admin.entity.Tenant] for NavigablePath [com.saas.admin.entity.Tenant] 
2025-10-20T23:20:12.560+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@7c2c06c8
2025-10-20T23:20:12.560+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.Tenant(34).tenantId) 
2025-10-20T23:20:12.560+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.Tenant(34)]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).schemaName]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).status]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantId]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantName]
 |  \-BasicFetch [com.saas.admin.entity.Tenant(34).updatedAt]

2025-10-20T23:20:12.560+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (t1 : com.saas.admin.entity.Tenant(34)) {
          primaryTableReference : tenants as t1_0
        }
      }
    }

2025-10-20T23:20:12.560+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:20:12.560+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.SQL                        : 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
Hibernate: 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
2025-10-20T23:20:12.560+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:20:12.560+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:20:12.561+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:20:12.562+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.Tenant(34) -> EntityJoinedFetchInitializer(com.saas.admin.entity.Tenant(34))@2031550745 (SingleTableEntityPersister(com.saas.admin.entity.Tenant))

2025-10-20T23:20:12.564+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.filter.TelnyxTenantResolverFilter  : ✅ TelnyxTenantResolverFilter: Resolved tenant 'e7f7179a-5393-4711-adae-083a22cf9e68' (schema: tenant_clinique_la_rive1_bleue1) for number: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com - Context remains 'saas_db'
2025-10-20T23:20:12.564+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.security.web.FilterChainProxy        : Securing POST /api/voip/telnyx/texml-response
2025-10-20T23:20:12.565+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.security.TenantIdentifierFilter    : 🔒 TenantIdentifierFilter: Tenant already set to 'saas_db', skipping JWT extraction for URI: /api/voip/telnyx/texml-response
2025-10-20T23:20:12.565+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
2025-10-20T23:20:12.565+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.security.web.FilterChainProxy        : Secured POST /api/voip/telnyx/texml-response
2025-10-20T23:20:12.566+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.web.servlet.DispatcherServlet        : POST "/api/voip/telnyx/texml-response", parameters={masked}
2025-10-20T23:20:12.566+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.saas.voip.controller.TelnyxTeXMLController#handleTeXMLRequest(HttpServletRequest, String, String, String, String)
2025-10-20T23:20:12.566+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : === TELNYX TeXML REQUEST ===
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : 📞 From: i8h9mz6m@sip.telnyx.eu, To: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, CallSid: v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, Status: null
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : ✅ Using tenant from filter: e7f7179a-5393-4711-adae-083a22cf9e68 (schema: tenant_clinique_la_rive1_bleue1)
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.tenant.service.InboundCallService    : 🆕 Creating MANUAL Hibernate Session for tenant schema: tenant_clinique_la_rive1_bleue1
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:12.566+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.t.internal.TransactionImpl         : On TransactionImpl creation, JpaCompliance#isJpaTransactionComplianceEnabled == false
2025-10-20T23:20:12.566+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.t.internal.TransactionImpl         : begin
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: tenant_clinique_la_rive1_bleue1
2025-10-20T23:20:12.566+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE tenant_clinique_la_rive1_bleue1
2025-10-20T23:20:12.567+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: tenant_clinique_la_rive1_bleue1
2025-10-20T23:20:12.567+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.tenant.service.InboundCallService    : ✅ New Hibernate Session created with explicit tenantIdentifier: tenant_clinique_la_rive1_bleue1
2025-10-20T23:20:12.567+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.engine.spi.ActionQueue     : Executing identity-insert immediately
2025-10-20T23:20:12.568+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.SQL                        : 
    insert 
    into
        inbound_call_data
        (account_sid, api_version, call_sid, call_status, call_token, called, called_city, called_country, called_state, called_zip, caller, caller_city, caller_country, caller_state, caller_zip, created_at, direction, duration, end_time, forwarded_from, from_city, from_country, from_number, from_state, from_zip, parent_call_sid, recording_sid, recording_url, start_time, stir_verstat, to_city, to_country, to_number, to_state, to_zip, updated_at) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: 
    insert 
    into
        inbound_call_data
        (account_sid, api_version, call_sid, call_status, call_token, called, called_city, called_country, called_state, called_zip, caller, caller_city, caller_country, caller_state, caller_zip, created_at, direction, duration, end_time, forwarded_from, from_city, from_country, from_number, from_state, from_zip, parent_call_sid, recording_sid, recording_url, start_time, stir_verstat, to_city, to_country, to_number, to_state, to_zip, updated_at) 
    values
        (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2025-10-20T23:20:12.569+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.results                : Initializer list is empty
2025-10-20T23:20:12.569+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.id.IdentifierGeneratorHelper         : Extracted generated values [com.saas.tenant.entity.InboundCallData]: [Ljava.lang.Object;@270f6aac
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Processing flush-time cascades
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Dirty checking collections
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.hibernate.internal.util.EntityPrinter  : Listing entities:
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.hibernate.internal.util.EntityPrinter  : com.saas.tenant.entity.InboundCallData{callerCountry=null, called=null, fromZip=null, stirVerstat=null, parentCallSid=null, callerState=null, duration=null, createdAt=2025-10-20T23:20:12.568071, toState=null, apiVersion=null, recordingSid=null, callStatus=initiated, calledZip=null, startTime=2025-10-20T23:20:12.566850, id=12, direction=inbound, updatedAt=2025-10-20T23:20:12.568089, callerCity=null, fromState=null, callSid=v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, fromCountry=null, calledCity=null, toCity=null, calledCountry=null, callerZip=null, toCountry=null, calledState=null, fromNumber=i8h9mz6m@sip.telnyx.eu, toZip=null, callToken=null, caller=null, recordingUrl=null, endTime=null, forwardedFrom=null, accountSid=null, fromCity=null, toNumber=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com}
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.t.internal.TransactionImpl         : committing
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Processing flush-time cascades
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Dirty checking collections
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.i.AbstractFlushingEventListener    : Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.hibernate.internal.util.EntityPrinter  : Listing entities:
2025-10-20T23:20:12.570+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.hibernate.internal.util.EntityPrinter  : com.saas.tenant.entity.InboundCallData{callerCountry=null, called=null, fromZip=null, stirVerstat=null, parentCallSid=null, callerState=null, duration=null, createdAt=2025-10-20T23:20:12.568071, toState=null, apiVersion=null, recordingSid=null, callStatus=initiated, calledZip=null, startTime=2025-10-20T23:20:12.566850, id=12, direction=inbound, updatedAt=2025-10-20T23:20:12.568089, callerCity=null, fromState=null, callSid=v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, fromCountry=null, calledCity=null, toCity=null, calledCountry=null, callerZip=null, toCountry=null, calledState=null, fromNumber=i8h9mz6m@sip.telnyx.eu, toZip=null, callToken=null, caller=null, recordingUrl=null, endTime=null, forwardedFrom=null, accountSid=null, fromCity=null, toNumber=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com}
2025-10-20T23:20:12.571+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.tenant.service.InboundCallService    : 💾 Call data saved to TENANT schema 'tenant_clinique_la_rive1_bleue1' - CallSid: v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, From: i8h9mz6m@sip.telnyx.eu, To: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com
2025-10-20T23:20:12.571+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.tenant.service.InboundCallService    : 🔒 Closed manual Hibernate Session for schema: tenant_clinique_la_rive1_bleue1
2025-10-20T23:20:12.571+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : ✅ Telnyx call data saved to tenant schema: tenant_clinique_la_rive1_bleue1
2025-10-20T23:20:12.571+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.orm.jpa.JpaTransactionManager        : Found thread-bound EntityManager [SessionImpl(1414107194<open>)] for JPA transaction
2025-10-20T23:20:12.571+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.orm.jpa.JpaTransactionManager        : Creating new transaction with name [com.saas.shared.service.TenantVoipConfigRuntimeService.resolveVoipConfig]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly
2025-10-20T23:20:12.571+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:20:12.571+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:20:12.572+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:20:12.572+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.jdbc.datasource.DataSourceUtils      : Setting JDBC Connection [HikariProxyConnection@1643267946 wrapping com.mysql.cj.jdbc.ConnectionImpl@68303c3e] read-only
2025-10-20T23:20:12.572+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.t.internal.TransactionImpl         : On TransactionImpl creation, JpaCompliance#isJpaTransactionComplianceEnabled == false
2025-10-20T23:20:12.572+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.t.internal.TransactionImpl         : begin
2025-10-20T23:20:12.572+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.orm.jpa.JpaTransactionManager        : Exposing JPA transaction as JDBC [org.springframework.orm.jpa.vendor.HibernateJpaDialect$HibernateConnectionHandle@2b14865a]
2025-10-20T23:20:12.572+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.s.TenantVoipConfigRuntimeService   : 🔍 Resolving VoIP config for tenant: e7f7179a-5393-4711-adae-083a22cf9e68, provider: TELNYX
2025-10-20T23:20:12.572+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.create         : Created new SQL alias : tvc1_0
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.TenantVoipConfig(90))] with identifierForTableGroup [com.saas.admin.entity.TenantVoipConfig] for NavigablePath [com.saas.admin.entity.TenantVoipConfig] 
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@5da1b954
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.TenantVoipConfig(90).tenantId) 
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@45f12a9a
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.TenantVoipConfig(90).provider) 
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@364bfc59
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.TenantVoipConfig(90).isActive) 
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.TenantVoipConfig(90)]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).aiAssistantId]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).aiType]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).isActive]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).messagingProfileId]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).metadata]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).provider]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).streamUrl]
 |  +-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.TenantVoipConfig(90).updatedAt]

2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (tvc1 : com.saas.admin.entity.TenantVoipConfig(90)) {
          primaryTableReference : tenant_voip_configs as tvc1_0
        }
      }
    }

2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:20:12.573+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.SQL                        : 
    select
        tvc1_0.id,
        tvc1_0.ai_assistant_id,
        tvc1_0.ai_type,
        tvc1_0.created_at,
        tvc1_0.is_active,
        tvc1_0.messaging_profile_id,
        tvc1_0.metadata,
        tvc1_0.provider,
        tvc1_0.stream_url,
        tvc1_0.tenant_id,
        tvc1_0.updated_at 
    from
        tenant_voip_configs tvc1_0 
    where
        tvc1_0.tenant_id=? 
        and tvc1_0.provider=? 
        and tvc1_0.is_active=?
Hibernate: 
    select
        tvc1_0.id,
        tvc1_0.ai_assistant_id,
        tvc1_0.ai_type,
        tvc1_0.created_at,
        tvc1_0.is_active,
        tvc1_0.messaging_profile_id,
        tvc1_0.metadata,
        tvc1_0.provider,
        tvc1_0.stream_url,
        tvc1_0.tenant_id,
        tvc1_0.updated_at 
    from
        tenant_voip_configs tvc1_0 
    where
        tvc1_0.tenant_id=? 
        and tvc1_0.provider=? 
        and tvc1_0.is_active=?
2025-10-20T23:20:12.574+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.TenantVoipConfig(90) -> EntityJoinedFetchInitializer(com.saas.admin.entity.TenantVoipConfig(90))@1737921540 (SingleTableEntityPersister(com.saas.admin.entity.TenantVoipConfig))

2025-10-20T23:20:12.574+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.s.TenantVoipConfigRuntimeService   : ✅ VoIP config found in database (active)
2025-10-20T23:20:12.574+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.orm.jpa.JpaTransactionManager        : Initiating transaction commit
2025-10-20T23:20:12.574+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.orm.jpa.JpaTransactionManager        : Committing JPA transaction on EntityManager [SessionImpl(1414107194<open>)]
2025-10-20T23:20:12.574+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.h.e.t.internal.TransactionImpl         : committing
2025-10-20T23:20:12.575+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.jdbc.datasource.DataSourceUtils      : Resetting read-only flag of JDBC Connection [HikariProxyConnection@1643267946 wrapping com.mysql.cj.jdbc.ConnectionImpl@68303c3e]
2025-10-20T23:20:12.575+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.orm.jpa.JpaTransactionManager        : Not closing pre-bound JPA EntityManager after transaction
2025-10-20T23:20:12.575+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : 📋 VoIP Config loaded for tenant: e7f7179a-5393-4711-adae-083a22cf9e68 - Type: TELNYX_NATIVE_AI, AssistantID: assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d
2025-10-20T23:20:12.575+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : 🔧 VoIP Config - Type: TELNYX_NATIVE_AI, AssistantID: assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d, StreamURL: wss://benedictory-provocative-lauralee.ngrok-free.dev/stream, Source: DATABASE
2025-10-20T23:20:12.575+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : 🤖 Starting Telnyx Native AI Assistant with Connect: assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d
2025-10-20T23:20:12.575+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : 📞 StatusCallback configured: https://benedictory-provocative-lauralee.ngrok-free.dev/api/voip/telnyx/status-callback
2025-10-20T23:20:12.575+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.controller.TelnyxTeXMLController   : 📄 TeXML Response:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <!-- Telnyx AI Assistant - Full Conversation Mode -->
  <Connect statusCallback="https://benedictory-provocative-lauralee.ngrok-free.dev/api/voip/telnyx/status-callback" statusCallbackEvent="initiated ringing answered completed">
    <AIAssistant id="assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d"/>
  </Connect>
</Response>
2025-10-20T23:20:12.575+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] m.m.a.RequestResponseBodyMethodProcessor : Using 'application/xml', given [*/*] and supported [application/xml]
2025-10-20T23:20:12.575+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] m.m.a.RequestResponseBodyMethodProcessor : Writing ["<?xml version="1.0" encoding="UTF-8"?><EOL><Response><EOL>  <!-- Telnyx AI Assistant - Full Conversation Mod (truncated)..."]
2025-10-20T23:20:12.576+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:20:12.576+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] o.s.web.servlet.DispatcherServlet        : Completed 200 OK
2025-10-20T23:20:12.577+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.s.security.TenantIdentifierFilter    : 🧹 TenantIdentifierFilter: Cleared TenantContext after request
2025-10-20T23:20:12.577+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-4] c.s.v.filter.TelnyxTenantResolverFilter  : 🧹 TelnyxTenantResolverFilter: Cleared TenantContext
2025-10-20T23:20:12.734+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Pool stats (total=10/10, idle=10/10, active=0, waiting=0)
2025-10-20T23:20:12.735+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Fill pool skipped, pool has sufficient level or currently being filled.
2025-10-20T23:20:24.452+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.v.filter.TelnyxTenantResolverFilter  : 🎯 TelnyxTenantResolverFilter: Intercepting webhook: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.453+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:20:24.453+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:24.454+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.ast.create         : Created new SQL alias : pn1_0
2025-10-20T23:20:24.455+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.PhoneNumber(26))] with identifierForTableGroup [com.saas.admin.entity.PhoneNumber] for NavigablePath [com.saas.admin.entity.PhoneNumber] 
2025-10-20T23:20:24.455+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@ebe7e26
2025-10-20T23:20:24.455+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.PhoneNumber(26).phoneNumber) 
2025-10-20T23:20:24.456+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.PhoneNumber(26)]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).description]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).friendlyName]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).isActive]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).phoneNumber]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).provider]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.PhoneNumber(26).updatedAt]

2025-10-20T23:20:24.456+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (pn1 : com.saas.admin.entity.PhoneNumber(26)) {
          primaryTableReference : phone_numbers as pn1_0
        }
      }
    }

2025-10-20T23:20:24.456+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:20:24.456+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.SQL                        : 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
Hibernate: 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
2025-10-20T23:20:24.457+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:20:24.457+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:20:24.459+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:20:24.460+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.PhoneNumber(26) -> EntityJoinedFetchInitializer(com.saas.admin.entity.PhoneNumber(26))@1884289388 (SingleTableEntityPersister(com.saas.admin.entity.PhoneNumber))

2025-10-20T23:20:24.463+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:20:24.463+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:24.464+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.ast.create         : Created new SQL alias : t1_0
2025-10-20T23:20:24.464+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.Tenant(34))] with identifierForTableGroup [com.saas.admin.entity.Tenant] for NavigablePath [com.saas.admin.entity.Tenant] 
2025-10-20T23:20:24.465+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@5f9322fc
2025-10-20T23:20:24.465+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.Tenant(34).tenantId) 
2025-10-20T23:20:24.465+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.Tenant(34)]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).schemaName]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).status]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantId]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantName]
 |  \-BasicFetch [com.saas.admin.entity.Tenant(34).updatedAt]

2025-10-20T23:20:24.465+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (t1 : com.saas.admin.entity.Tenant(34)) {
          primaryTableReference : tenants as t1_0
        }
      }
    }

2025-10-20T23:20:24.466+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:20:24.466+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.SQL                        : 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
Hibernate: 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
2025-10-20T23:20:24.466+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:20:24.466+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:20:24.467+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:20:24.468+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.Tenant(34) -> EntityJoinedFetchInitializer(com.saas.admin.entity.Tenant(34))@1008296054 (SingleTableEntityPersister(com.saas.admin.entity.Tenant))

2025-10-20T23:20:24.470+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.v.filter.TelnyxTenantResolverFilter  : ✅ TelnyxTenantResolverFilter: Resolved tenant 'e7f7179a-5393-4711-adae-083a22cf9e68' (schema: tenant_clinique_la_rive1_bleue1) for number: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com - Context remains 'saas_db'
2025-10-20T23:20:24.470+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.s.security.web.FilterChainProxy        : Securing POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.470+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.s.security.TenantIdentifierFilter    : 🔒 TenantIdentifierFilter: Tenant already set to 'saas_db', skipping JWT extraction for URI: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.470+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
2025-10-20T23:20:24.471+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.s.security.web.FilterChainProxy        : Secured POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.471+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.s.web.servlet.DispatcherServlet        : POST "/api/voip/telnyx/ai/conversation-event", parameters={masked}
2025-10-20T23:20:24.471+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.saas.voip.controller.TelnyxEventController#handleConversationEvent(HttpServletRequest, Map)
2025-10-20T23:20:24.471+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:20:24.471+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:24.471+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.v.controller.TelnyxEventController   : === TELNYX AI CONVERSATION EVENT ===
2025-10-20T23:20:24.471+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.v.controller.TelnyxEventController   : 📥 Content-Type: application/x-www-form-urlencoded
2025-10-20T23:20:24.471+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.v.controller.TelnyxEventController   : 📥 All parameters: {AccountSid=24b8c68c-c52a-4dd2-859c-22f1d2e62203, AnsweredTime=2025-10-20T22:20:13.028463Z, CallControlId=v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, CallDuration=11, CallLegId=f1d3f380-ae02-11f0-b45e-02420a1f1069, CallQualityStats={"inbound":{"jitter_max_variance":"344.04","jitter_packet_count":"0","mos":"4.50","packet_count":"486","skip_packet_count":"84"},"outbound":{"packet_count":"478","skip_packet_count":"0"}}, CallSessionId=f1d3e750-ae02-11f0-950b-02420a1f1069, CallSid=v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, CallSidLegacy=v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, CallStatus=completed, CallbackSource=call-progress-events, CallingPartyType=sip, ConnectionId=2806750933822736154, EndTime=2025-10-20T22:20:24.328471Z, From=i8h9mz6m@sip.telnyx.eu, FromSipUri=i8h9mz6m@sip.telnyx.eu, HangupCause=normal_clearing, HangupSource=caller, OccurredAt=2025-10-20T22:20:24.328471Z, OrganizationId=24b8c68c-c52a-4dd2-859c-22f1d2e62203, SequenceNumber=0, SipHangupCause=200, StartTime=2025-10-20T22:20:13.028463Z, Timestamp=2025-10-20 22:20:24.440971Z, To=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, ToSipUri=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, UserId=24b8c68c-c52a-4dd2-859c-22f1d2e62203}
2025-10-20T23:20:24.471+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/*+xml;charset=UTF-8]
2025-10-20T23:20:24.471+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [{status=received, params_count=27}]
2025-10-20T23:20:24.472+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:20:24.472+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] o.s.web.servlet.DispatcherServlet        : Completed 200 OK
2025-10-20T23:20:24.472+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.s.security.TenantIdentifierFilter    : 🧹 TenantIdentifierFilter: Cleared TenantContext after request
2025-10-20T23:20:24.472+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-5] c.s.v.filter.TelnyxTenantResolverFilter  : 🧹 TelnyxTenantResolverFilter: Cleared TenantContext
2025-10-20T23:20:24.814+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.v.filter.TelnyxTenantResolverFilter  : 🎯 TelnyxTenantResolverFilter: Intercepting webhook: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.815+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:20:24.816+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:24.817+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.ast.create         : Created new SQL alias : pn1_0
2025-10-20T23:20:24.817+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.PhoneNumber(26))] with identifierForTableGroup [com.saas.admin.entity.PhoneNumber] for NavigablePath [com.saas.admin.entity.PhoneNumber] 
2025-10-20T23:20:24.818+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@1a3a9a15
2025-10-20T23:20:24.818+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.PhoneNumber(26).phoneNumber) 
2025-10-20T23:20:24.818+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.PhoneNumber(26)]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).description]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).friendlyName]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).isActive]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).phoneNumber]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).provider]
 |  +-BasicFetch [com.saas.admin.entity.PhoneNumber(26).tenantId]
 |  \-BasicFetch [com.saas.admin.entity.PhoneNumber(26).updatedAt]

2025-10-20T23:20:24.818+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (pn1 : com.saas.admin.entity.PhoneNumber(26)) {
          primaryTableReference : phone_numbers as pn1_0
        }
      }
    }

2025-10-20T23:20:24.818+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:20:24.818+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.SQL                        : 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
Hibernate: 
    select
        pn1_0.id,
        pn1_0.created_at,
        pn1_0.description,
        pn1_0.friendly_name,
        pn1_0.is_active,
        pn1_0.phone_number,
        pn1_0.provider,
        pn1_0.tenant_id,
        pn1_0.updated_at 
    from
        phone_numbers pn1_0 
    where
        pn1_0.phone_number=?
2025-10-20T23:20:24.819+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:20:24.819+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:20:24.819+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:20:24.820+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.PhoneNumber(26) -> EntityJoinedFetchInitializer(com.saas.admin.entity.PhoneNumber(26))@1683955631 (SingleTableEntityPersister(com.saas.admin.entity.PhoneNumber))

2025-10-20T23:20:24.822+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] tor$SharedEntityManagerInvocationHandler : Creating new EntityManager for shared EntityManager invocation
2025-10-20T23:20:24.822+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:24.822+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.ast.create         : Created new SQL alias : t1_0
2025-10-20T23:20:24.822+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.ast.create         : Registration of TableGroup [StandardTableGroup(com.saas.admin.entity.Tenant(34))] with identifierForTableGroup [com.saas.admin.entity.Tenant] for NavigablePath [com.saas.admin.entity.Tenant] 
2025-10-20T23:20:24.823+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmParameter : org.hibernate.query.sqm.tree.expression.SqmJpaCriteriaParameterWrapper@78958b66
2025-10-20T23:20:24.823+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.h.q.sqm.sql.BaseSqmToSqlAstConverter   : Determining mapping-model type for SqmPath : SqmBasicValuedSimplePath(com.saas.admin.entity.Tenant(34).tenantId) 
2025-10-20T23:20:24.823+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.results.graph.AST      : DomainResult Graph:
 \-EntityResultImpl [com.saas.admin.entity.Tenant(34)]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).createdAt]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).schemaName]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).status]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantId]
 |  +-BasicFetch [com.saas.admin.entity.Tenant(34).tenantName]
 |  \-BasicFetch [com.saas.admin.entity.Tenant(34).updatedAt]

2025-10-20T23:20:24.823+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.ast.tree           : SQL AST Tree:
    SelectStatement {
      FromClause {
        StandardTableGroup (t1 : com.saas.admin.entity.Tenant(34)) {
          primaryTableReference : tenants as t1_0
        }
      }
    }

2025-10-20T23:20:24.823+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.sql.exec               : Skipping reading Query result cache data: cache-enabled = false, cache-mode = NORMAL
2025-10-20T23:20:24.823+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.SQL                        : 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
Hibernate: 
    select
        t1_0.id,
        t1_0.created_at,
        t1_0.schema_name,
        t1_0.status,
        t1_0.tenant_id,
        t1_0.tenant_name,
        t1_0.updated_at 
    from
        tenants t1_0 
    where
        t1_0.tenant_id=?
2025-10-20T23:20:24.823+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] .s.c.SchemaMultiTenantConnectionProvider : 🔥 getConnection() CALLED with tenantIdentifier: saas_db
2025-10-20T23:20:24.823+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] .s.c.SchemaMultiTenantConnectionProvider : ⚡ Executing: USE saas_db
2025-10-20T23:20:24.824+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] .s.c.SchemaMultiTenantConnectionProvider : ✅ Successfully switched to database: saas_db
2025-10-20T23:20:24.825+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] org.hibernate.orm.results                : Initializer list:
	  com.saas.admin.entity.Tenant(34) -> EntityJoinedFetchInitializer(com.saas.admin.entity.Tenant(34))@806115610 (SingleTableEntityPersister(com.saas.admin.entity.Tenant))

2025-10-20T23:20:24.826+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.v.filter.TelnyxTenantResolverFilter  : ✅ TelnyxTenantResolverFilter: Resolved tenant 'e7f7179a-5393-4711-adae-083a22cf9e68' (schema: tenant_clinique_la_rive1_bleue1) for number: telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com - Context remains 'saas_db'
2025-10-20T23:20:24.826+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.s.security.web.FilterChainProxy        : Securing POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.827+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.s.security.TenantIdentifierFilter    : 🔒 TenantIdentifierFilter: Tenant already set to 'saas_db', skipping JWT extraction for URI: /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.827+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
2025-10-20T23:20:24.827+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.s.security.web.FilterChainProxy        : Secured POST /api/voip/telnyx/ai/conversation-event
2025-10-20T23:20:24.828+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.s.web.servlet.DispatcherServlet        : POST "/api/voip/telnyx/ai/conversation-event", parameters={masked}
2025-10-20T23:20:24.828+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to com.saas.voip.controller.TelnyxEventController#handleConversationEvent(HttpServletRequest, Map)
2025-10-20T23:20:24.828+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:20:24.828+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.s.core.TenantIdentifierResolverImpl  : 🔍 resolveCurrentTenantIdentifier() CALLED - returning: saas_db
2025-10-20T23:20:24.828+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.v.controller.TelnyxEventController   : === TELNYX AI CONVERSATION EVENT ===
2025-10-20T23:20:24.828+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.v.controller.TelnyxEventController   : 📥 Content-Type: application/x-www-form-urlencoded
2025-10-20T23:20:24.828+01:00  INFO 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.v.controller.TelnyxEventController   : 📥 All parameters: {AccountSid=24b8c68c-c52a-4dd2-859c-22f1d2e62203, BilledDurationSeconds[v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg]=12, CallCost[v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg]=0.0008, CallSid=v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, CallSidLegacy=v3:ableP-aVrJuEt4USwZlQShIcxhB_IwPLZ1g-u0t9GKSjnBF51hrqTg, CallbackSource=call-cost-events, CallerId=Telnyx Web Dialer, CallingPartyType=sip, ConnectionId=2806750933822736154, From=i8h9mz6m@sip.telnyx.eu, FromSipUri=i8h9mz6m@sip.telnyx.eu, To=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com, ToSipUri=telnyxportal@assistant-265ff822-c3e7-43ca-b9f3-02d3ae189e7d.sip.telnyx.com}
2025-10-20T23:20:24.829+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/yaml, application/xml;charset=UTF-8, text/xml;charset=UTF-8, application/*+xml;charset=UTF-8]
2025-10-20T23:20:24.829+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [{status=received, params_count=13}]
2025-10-20T23:20:24.830+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
2025-10-20T23:20:24.830+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] o.s.web.servlet.DispatcherServlet        : Completed 200 OK
2025-10-20T23:20:24.831+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.s.security.TenantIdentifierFilter    : 🧹 TenantIdentifierFilter: Cleared TenantContext after request
2025-10-20T23:20:24.831+01:00 DEBUG 30141 --- [saas-multitenant-api] [nio-7001-exec-6] c.s.v.filter.TelnyxTenantResolverFilter  : 🧹 TelnyxTenantResolverFilter: Cleared TenantContext
2025-10-20T23:20:42.738+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Pool stats (total=10/10, idle=10/10, active=0, waiting=0)
2025-10-20T23:20:42.739+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - Fill pool skipped, pool has sufficient level or currently being filled.
2025-10-20T23:20:49.127+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@38d96dcb is alive
2025-10-20T23:20:49.748+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@606dcf9 is alive
2025-10-20T23:20:50.827+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@54e36bbf is alive
2025-10-20T23:20:56.459+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@767f63d2 is alive
2025-10-20T23:20:58.460+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@3df6e879 is alive
2025-10-20T23:21:01.859+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@24a914ef is alive
2025-10-20T23:21:04.779+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@409c35e2 is alive
2025-10-20T23:21:07.382+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@c191a86 is alive
2025-10-20T23:21:07.664+01:00 DEBUG 30141 --- [saas-multitenant-api] [l-1:housekeeper] com.zaxxer.hikari.pool.HikariPool        : HikariPool-1 - keepalive: connection com.mysql.cj.jdbc.ConnectionImpl@5b981d48 is alive
