Module: kamailio
Branch: 6.0
Commit: c0e60449ae0d35fd9e753d0da92c98c03e2a4494
URL: 
https://github.com/kamailio/kamailio/commit/c0e60449ae0d35fd9e753d0da92c98c03e2a4494

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <22965395+xkara...@users.noreply.github.com>
Date: 2025-06-18T08:41:37Z

dlgs: Fix spelling mistake

(cherry picked from commit 994d4dfa9cd284f63092543400a5ed82b746a758)

---

Modified: src/modules/dlgs/dlgs_records.c
Modified: src/modules/dlgs/dlgs_records.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/c0e60449ae0d35fd9e753d0da92c98c03e2a4494.diff
Patch: 
https://github.com/kamailio/kamailio/commit/c0e60449ae0d35fd9e753d0da92c98c03e2a4494.patch

---

diff --git a/src/modules/dlgs/dlgs_records.c b/src/modules/dlgs/dlgs_records.c
index f6cad29856e..38ecb3d5ee3 100644
--- a/src/modules/dlgs/dlgs_records.c
+++ b/src/modules/dlgs/dlgs_records.c
@@ -692,7 +692,7 @@ void dlgs_update_stats(dlgs_stats_t *stats, int state, int 
val)
                        stats->c_confirmed += val;
                        return;
                case DLGS_STATE_TERMINATED:
-                       stats->c_terminted += val;
+                       stats->c_terminated += val;
                        return;
                case DLGS_STATE_NOTANSWERED:
                        stats->c_notanswered += val;
@@ -1046,7 +1046,7 @@ static void dlgs_rpc_stats(rpc_t *rpc, void *ctx)
                                sta.c_progress += 
_dlgs_htb->slots[i].astats.c_progress;
                                sta.c_answered += 
_dlgs_htb->slots[i].astats.c_answered;
                                sta.c_confirmed += 
_dlgs_htb->slots[i].astats.c_confirmed;
-                               sta.c_terminted += 
_dlgs_htb->slots[i].astats.c_terminted;
+                               sta.c_terminated += 
_dlgs_htb->slots[i].astats.c_terminated;
                                sta.c_notanswered += 
_dlgs_htb->slots[i].astats.c_notanswered;
                        }
                        sti = &sta;
@@ -1058,7 +1058,7 @@ static void dlgs_rpc_stats(rpc_t *rpc, void *ctx)
                }
                if(rpc->struct_add(ti, "uuuuuu", "init", sti->c_init, 
"progress",
                                   sti->c_progress, "answered", 
sti->c_answered, "confirmed",
-                                  sti->c_confirmed, "terminted", 
sti->c_terminted,
+                                  sti->c_confirmed, "terminated", 
sti->c_terminated,
                                   "notanswered", sti->c_notanswered)
                                < 0) {
                        rpc->fault(ctx, 500, "Internal error creating values");
diff --git a/src/modules/dlgs/dlgs_records.h b/src/modules/dlgs/dlgs_records.h
index e6a02824a62..0dfeba797c9 100644
--- a/src/modules/dlgs/dlgs_records.h
+++ b/src/modules/dlgs/dlgs_records.h
@@ -43,7 +43,7 @@ typedef struct _dlgs_stats {
        unsigned int c_progress;
        unsigned int c_answered;
        unsigned int c_confirmed;
-       unsigned int c_terminted;
+       unsigned int c_terminated;
        unsigned int c_notanswered;
 } dlgs_stats_t;
 

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to