[sr-dev] git:master:3331fa6e: dlgs: return sip attributes in rpc list command
Daniel-Constantin Mierla
miconda at gmail.com
Wed Jun 24 13:07:55 CEST 2020
Module: kamailio
Branch: master
Commit: 3331fa6e30b90489be8aec718c4e97232f610ba6
URL: https://github.com/kamailio/kamailio/commit/3331fa6e30b90489be8aec718c4e97232f610ba6
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-06-24T13:06:54+02:00
dlgs: return sip attributes in rpc list command
- adjust route types permissions for cfg functions
---
Modified: src/modules/dlgs/dlgs_mod.c
Modified: src/modules/dlgs/dlgs_records.c
---
Diff: https://github.com/kamailio/kamailio/commit/3331fa6e30b90489be8aec718c4e97232f610ba6.diff
Patch: https://github.com/kamailio/kamailio/commit/3331fa6e30b90489be8aec718c4e97232f610ba6.patch
---
diff --git a/src/modules/dlgs/dlgs_mod.c b/src/modules/dlgs/dlgs_mod.c
index c2f1a8146c..df6b746167 100644
--- a/src/modules/dlgs/dlgs_mod.c
+++ b/src/modules/dlgs/dlgs_mod.c
@@ -64,9 +64,9 @@ static int dlgs_sip_reply_out(sr_event_param_t *evp);
/* clang-format off */
static cmd_export_t cmds[]={
{"dlgs_init", (cmd_function)w_dlgs_init, 3, fixup_spve_all,
- fixup_free_spve_all, REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE|ONSEND_ROUTE},
+ fixup_free_spve_all, REQUEST_ROUTE|BRANCH_ROUTE|ONSEND_ROUTE},
{"dlgs_update", (cmd_function)w_dlgs_update, 0, 0,
- 0, ONSEND_ROUTE},
+ 0, REQUEST_ROUTE|BRANCH_ROUTE|ONSEND_ROUTE},
{"dlgs_tags_add", (cmd_function)w_dlgs_tags_add, 1, fixup_spve_null,
fixup_spve_null, ANY_ROUTE},
{"dlgs_tags_rm", (cmd_function)w_dlgs_tags_rm, 1, fixup_spve_null,
diff --git a/src/modules/dlgs/dlgs_records.c b/src/modules/dlgs/dlgs_records.c
index d837483ef4..08b0ab4bad 100644
--- a/src/modules/dlgs/dlgs_records.c
+++ b/src/modules/dlgs/dlgs_records.c
@@ -688,12 +688,15 @@ static void dlgs_rpc_list(rpc_t *rpc, void *ctx)
rpc->fault(ctx, 500, "Internal error creating rpc");
return;
}
- if(rpc->struct_add(th, "dSSSSuuu",
+ if(rpc->struct_add(th, "dSSSSSSSuuu",
"count", ++n,
"src", &it->src,
"dst", &it->dst,
"data", &it->data,
"ruid", &it->ruid,
+ "callid", &it->callid,
+ "ftag", &it->ftag,
+ "ttag", &it->ttag,
"ts_init", (unsigned int)it->ts_init,
"ts_answer", (unsigned int)it->ts_answer,
"state", it->state)<0) {
@@ -728,4 +731,4 @@ int dlgs_rpc_init(void)
return -1;
}
return 0;
-}
\ No newline at end of file
+}
More information about the sr-dev
mailing list