261006_02_ENH: 발신번호 미등록 시 전화걸기 차단 및 CTI 발신 오류(MakeCallError) 처리

This commit is contained in:
2026-10-06 14:33:01 +09:00
parent 746f709e92
commit cf208b7f38
3 changed files with 40 additions and 1 deletions

View File

@@ -151,7 +151,15 @@ const ListContactInfoPanel = ({
return
}
if (!telNum) return
if (!telNum.trim()) {
alert('전화번호가 없습니다.')
return
}
// CTI는 ANINumber가 비어 있으면 Default 발신번호로 건다고 하지만, 의도치 않은 번호로 나가지 않도록 막는다.
if (!callerTelNum?.trim()) {
alert('프로젝트에 발신 번호가 등록되지 않았습니다.')
return
}
ctiClient.makeCall({ dialNumber: telNum, prjctIdx, sid, listHderId, aniNumber: callerTelNum ?? '' })
}