Hello, Seems, in my case, the some dialog variables (uac_tonew/uac_fromnew) are not loaded from database to memory
* Before sending the INVITE to the carrier, I replace the from / to (with the help of uac_replace) -> values are inserted into dialog_vars table (_uac_funew & _uac_tonew) * When I restart the Kamailio between the INVITE & the BYE 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:[email protected]:5060>;tag=aafa7512+1+e86202c6+70c101cd. >From is correct with + in front of number Restarting Kamailio between the two messages : To: <sip:[email protected]>;tag=aafa7512+1+1ec302b6+cfd5ba9f. How can we fix this ? De : Daniel-Constantin Mierla <[email protected]> Envoyé : lundi 18 février 2019 15:20 À : Kamailio (SER) - Users Mailing List <[email protected]>; Nicolas Breuer <[email protected]> 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<http://www.asipto.com> www.twitter.com/miconda<http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda<http://www.linkedin.com/in/miconda> Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com<http://www.kamailioworld.com> Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com<http://www.asipto.com>
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
