processCalledNo: Fix typo / copy+paste error

Surely, the treatment of the *called* party type/plan should
not depend on the *calling* party type/plan.
This commit is contained in:
Harald Welte 2023-12-03 11:33:40 +01:00
parent 22aabade2d
commit 498dc6bcc7
1 changed files with 2 additions and 2 deletions

View File

@ -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;