Hello,

 

Seems, in my case, the some dialog variables (uac_tonew/uac_fromnew) are not loaded from database to memory

 

I can see this message :

dialog [dlg_handlers.c:1284]: dlg_onroute(): unable to find dialog for BYE with route param '652.3d6'

 

When the BYE arrived, the From/To header is sent with the wrong From & To values (not the modified one)

 

Without restart Kamailio :

From: <sip:+3280033800@18.1.1.50:5060>;tag=aafa7512+1+e86202c6+70c101cd.

From is correct with + in front of number

 

Restarting Kamailio  between the two messages :

To: <sip:080033800@sip.YY.XX.net>;tag=aafa7512+1+1ec302b6+cfd5ba9f.

 

How can we fix this ?

 

De : Daniel-Constantin Mierla <miconda@gmail.com>
Envoyé : lundi 18 février 2019 15:20
À : Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>; Nicolas Breuer <Nicolas.Breuer@belcenter.biz>
Objet : Re: [SR-Users] Dialog - Kamailio 5.2

 

Hello,

On 18.02.19 14:36, Nicolas Breuer wrote:

Hello the world,

 

Can you give more informations about the new features of Dialog in K5.2 ?

 

 

https://www.kamailio.org/w/kamailio-v5-2-0-release-notes/

 

·  ability to load dialog records from database on demand

·  ability to load dialog records from database if they are not yet in memory cache

 

Indeed in 5.1, restart Kamailio doesn’t load the dialog data from database but we can see

https://www.kamailio.org/docs/modules/5.1.x/modules/dialog.html#dialog.p.db_skip_load

there is a function : Set db_skip_load to 1, to skip the loading of dialog data from the database.

 

If on restart, the dialogs are not loaded,  what this “db skip load “ does ?

the new features are related to the two functions listed at:

  * https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.f.dlg_db_load_callid

Dialog records are loaded in memory from database at startup, and that happens in 5.1 as well. Maybe you have different configuration options, but the new feature is not about start up, but for runtime behaviour by using functions in routing blocks.

Cheers,
Daniel

 

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com