From 498dc6bcc7cfc50e3abafdaab6a514c32f998800 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 3 Dec 2023 11:33:40 +0100 Subject: [PATCH] processCalledNo: Fix typo / copy+paste error Surely, the treatment of the *called* party type/plan should not depend on the *calling* party type/plan. --- libs/ysig/q931.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ysig/q931.cpp b/libs/ysig/q931.cpp index 9749300b..7b7f8a21 100644 --- a/libs/ysig/q931.cpp +++ b/libs/ysig/q931.cpp @@ -459,9 +459,9 @@ bool ISDNQ931IEData::processCalledNo(ISDNQ931Message* msg, bool add, if (add) { ISDNQ931IE* ie = new ISDNQ931IE(ISDNQ931IE::CalledNo); ie->addParam("number",m_calledNo); - if (!m_callerType.null()) + if (!m_calledType.null()) ie->addParam("type",m_calledType); - if (!m_callerPlan.null()) + if (!m_calledPlan.null()) ie->addParam("plan",m_calledPlan); msg->appendSafe(ie); return true;