[SR-Users] Dialog - Kamailio 5.2

Nicolas Breuer Nicolas.Breuer at belcenter.biz
Mon Feb 25 18:31:25 CET 2019


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:+3280033800 at 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 at sip.YY.XX.net>;tag=aafa7512+1+1ec302b6+cfd5ba9f.

How can we fix this ?

De : Daniel-Constantin Mierla <miconda at gmail.com>
Envoyé : lundi 18 février 2019 15:20
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>; Nicolas Breuer <Nicolas.Breuer at 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<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190225/65515b62/attachment.html>


More information about the sr-users mailing list