From 5c5c78822e2c207a2b437dd5ef1788dcf4cbaf21 Mon Sep 17 00:00:00 2001 From: Keith Date: Fri, 23 Aug 2019 19:04:38 +0200 Subject: [PATCH] Tweak CC cause SIP 404 response from POC POC sends us back a 404 for a SIP phone that is not currently registered. This is not an "Unassigned Number", but rather "temporarily unavailable" so send USER_NOTRESPOND to MNCC for 404. Change-Id: Id67f2709fc16d614ad07db348f91a8f89627a9a0 --- src/sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sip.c b/src/sip.c index 2b28b4e..4ebe6d0 100644 --- a/src/sip.c +++ b/src/sip.c @@ -271,7 +271,7 @@ static struct cause_map { { SIP_407_PROXY_AUTH_REQUIRED, GSM48_CC_CAUSE_CALL_REJECTED, "Call Rejected" }, { SIP_603_DECLINE, GSM48_CC_CAUSE_CALL_REJECTED, "Call Rejected" }, { SIP_406_NOT_ACCEPTABLE, GSM48_CC_CAUSE_CHAN_UNACCEPT, "Channel Unacceptable" }, - { SIP_404_NOT_FOUND, GSM48_CC_CAUSE_UNASSIGNED_NR, "Unallocated Number" }, + { SIP_404_NOT_FOUND, GSM48_CC_CAUSE_USER_NOTRESPOND, "Unallocated Number" }, { SIP_485_AMBIGUOUS, GSM48_CC_CAUSE_NO_ROUTE, "No Route to Destination" }, { SIP_604_DOES_NOT_EXIST_ANYWHERE, GSM48_CC_CAUSE_NO_ROUTE, "No Route to Destination" }, { SIP_504_GATEWAY_TIME_OUT, GSM48_CC_CAUSE_RECOVERY_TIMER, "Recovery on Timer Expiry" },