Module: kamailio
Branch: 5.4
Commit: 17cb589ce5ac07dbb12f1b99f17258f313adf783
URL:
https://github.com/kamailio/kamailio/commit/17cb589ce5ac07dbb12f1b99f17258f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-19T13:22:55+01:00
dialog: small formatting changes
(cherry picked from commit a3443211515068bb12ecbd53541785a5ebf1cb6c)
---
Modified: src/modules/dialog/dlg_dmq.c
Modified: src/modules/dialog/dlg_handlers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/17cb589ce5ac07dbb12f1b99f17258f…
Patch:
https://github.com/kamailio/kamailio/commit/17cb589ce5ac07dbb12f1b99f17258f…
---
diff --git a/src/modules/dialog/dlg_dmq.c b/src/modules/dialog/dlg_dmq.c
index a5628f485b..9f70354d50 100644
--- a/src/modules/dialog/dlg_dmq.c
+++ b/src/modules/dialog/dlg_dmq.c
@@ -534,11 +534,11 @@ int dlg_dmq_replicate_action(dlg_dmq_action_t action, dlg_cell_t*
dlg,
if (dlg->vars != NULL) {
srjson_t *pj = NULL;
pj = srjson_CreateObject(&jdoc);
- for(var=dlg->vars ; var ; var=var->next) {
+ for(var=dlg->vars ; var ; var=var->next) {
srjson_AddStrToObject(&jdoc, pj, var->key.s,
var->value.s, var->value.len);
- }
- srjson_AddItemToObject(&jdoc, jdoc.root, "vars", pj);
+ }
+ srjson_AddItemToObject(&jdoc, jdoc.root, "vars", pj);
}
if (dlg->profile_links) {
@@ -657,8 +657,8 @@ int dmq_send_all_dlgs(dmq_node_t* dmq_node) {
dlg_lock( d_table, &entry);
for(dlg = entry.first; dlg != NULL; dlg = dlg->next){
- dlg->dflags |= DLG_FLAG_CHANGED_PROF;
- dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 0, dmq_node);
+ dlg->dflags |= DLG_FLAG_CHANGED_PROF;
+ dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 0, dmq_node);
}
dlg_unlock( d_table, &entry);
@@ -672,7 +672,7 @@ int dmq_send_all_dlgs(dmq_node_t* dmq_node) {
* @brief dmq response callback
*/
int dlg_dmq_resp_callback_f(struct sip_msg* msg, int code,
- dmq_node_t* node, void* param)
+ dmq_node_t* node, void* param)
{
LM_DBG("dmq response callback triggered [%p %d %p]\n", msg, code, param);
return 0;
diff --git a/src/modules/dialog/dlg_handlers.c b/src/modules/dialog/dlg_handlers.c
index 7cf6b7ba7a..3f8adefb79 100644
--- a/src/modules/dialog/dlg_handlers.c
+++ b/src/modules/dialog/dlg_handlers.c
@@ -749,15 +749,15 @@ static void dlg_on_send(struct cell* t, int type, struct tmcb_params
*param)
LM_DBG("dialog_on_send CB\n");
iuid = (dlg_iuid_t*)(*param->param);
if (iuid==NULL)
- return;
+ return;
dlg = dlg_get_by_iuid(iuid);
if(dlg==NULL)
- return;
+ return;
/* sync over dmq */
if (dlg_enable_dmq) {
- dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 1, 0);
+ dlg_dmq_replicate_action(DLG_DMQ_UPDATE, dlg, 1, 0);
}
/* unref by 2: 1 set when adding in tm cb, 1 set by dlg_get_by_iuid() */