Module: kamailio Branch: master Commit: 76f0fa8a0330de3885f5f3830eb90061c59045d4 URL: https://github.com/kamailio/kamailio/commit/76f0fa8a0330de3885f5f3830eb90061c59045d4
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2019-05-28T08:44:32+02:00 usrloc: clone xavp list in contact struct in memory mode --- Modified: src/modules/usrloc/ucontact.h Modified: src/modules/usrloc/usrloc_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/76f0fa8a0330de3885f5f3830eb90061c59045d4.diff Patch: https://github.com/kamailio/kamailio/commit/76f0fa8a0330de3885f5f3830eb90061c59045d4.patch --- diff --git a/src/modules/usrloc/ucontact.h b/src/modules/usrloc/ucontact.h index c0e0bcfde7..abe7353ce7 100644 --- a/src/modules/usrloc/ucontact.h +++ b/src/modules/usrloc/ucontact.h @@ -169,4 +169,11 @@ int uldb_delete_attrs(str* _dname, str *_user, str *_domain, str *_ruid); */ int uldb_insert_attrs(str *_dname, str *_user, str *_domain, str *_ruid, sr_xavp_t *_xhead); + +/*! + * \brief Set the value for cloning the xavp list to contact structure + * \param v - the value to be set + */ +void ul_set_xavp_contact_clone(int v); + #endif diff --git a/src/modules/usrloc/usrloc_mod.c b/src/modules/usrloc/usrloc_mod.c index 240b9f24f3..a834fe0040 100644 --- a/src/modules/usrloc/usrloc_mod.c +++ b/src/modules/usrloc/usrloc_mod.c @@ -377,8 +377,11 @@ static int mod_init(void) if (handle_lost_tcp && db_mode == DB_ONLY) LM_WARN("handle_lost_tcp option makes nothing in DB_ONLY mode\n"); - init_flag = 1; + if(db_mode != DB_ONLY) { + ul_set_xavp_contact_clone(1); + } + init_flag = 1; return 0; } _______________________________________________ Kamailio (SER) - Development Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
