01-12-2017 09:15 AM - edited 03-17-2019 09:09 AM
I have made a translation pattern on SIP gateway to reject one number.
I want 503 message to be sent to provider while rejecting the call.
Solved! Go to Solution.
01-12-2017 11:05 PM
Hi Dheeraj,
I tried this in lab and I was able to achieve this in the following way.
Config to reject the call:
voice translation-rule 11
rule 1 reject /5678/
voice translation-profile 11
translate called 11
dial-peer voice 11 voip
call-block translation-profile incoming 11
call-block disconnect-cause incoming call-reject
session protocol sipv2
incoming called-number 5678
The above config sends the following to CUCM
Sent:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.77.183.30:5060;branch=z9hG4bKa2abea046
From: <sip:1006@10.77.183.30>;tag=12~ac20a5a3-199f-4a7b-8aea-a499cef66f65-28468956
To: <sip:5678@10.77.182.241>;tag=3938BC8-F79
Date: Fri, 13 Jan 2017 06:50:35 GMT
Call-ID: 944b3500-878178bb-b-1eb74d0a@10.77.183.30
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Reason: Q.850;cause=21
Content-Length: 0
I then applied the following under sip-ua:
sip-ua
set pstn-cause 21 sip-status 503
Now the Gw sends the following:
Sent:
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 10.77.183.30:5060;branch=z9hG4bKb456b7c76
From: <sip:1006@10.77.183.30>;tag=13~ac20a5a3-199f-4a7b-8aea-a499cef66f65-28468958
To: <sip:5678@10.77.182.241>;tag=3973F80-1463
Date: Fri, 13 Jan 2017 06:54:38 GMT
Call-ID: 24897a00-878179ad-c-1eb74d0a@10.77.183.30
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Reason: Q.850;cause=21
Content-Length: 0
Please rate and mark correct if helpful
Regards,
Adarsh Chauhan
01-12-2017 11:05 PM
Hi Dheeraj,
I tried this in lab and I was able to achieve this in the following way.
Config to reject the call:
voice translation-rule 11
rule 1 reject /5678/
voice translation-profile 11
translate called 11
dial-peer voice 11 voip
call-block translation-profile incoming 11
call-block disconnect-cause incoming call-reject
session protocol sipv2
incoming called-number 5678
The above config sends the following to CUCM
Sent:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.77.183.30:5060;branch=z9hG4bKa2abea046
From: <sip:1006@10.77.183.30>;tag=12~ac20a5a3-199f-4a7b-8aea-a499cef66f65-28468956
To: <sip:5678@10.77.182.241>;tag=3938BC8-F79
Date: Fri, 13 Jan 2017 06:50:35 GMT
Call-ID: 944b3500-878178bb-b-1eb74d0a@10.77.183.30
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Reason: Q.850;cause=21
Content-Length: 0
I then applied the following under sip-ua:
sip-ua
set pstn-cause 21 sip-status 503
Now the Gw sends the following:
Sent:
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 10.77.183.30:5060;branch=z9hG4bKb456b7c76
From: <sip:1006@10.77.183.30>;tag=13~ac20a5a3-199f-4a7b-8aea-a499cef66f65-28468958
To: <sip:5678@10.77.182.241>;tag=3973F80-1463
Date: Fri, 13 Jan 2017 06:54:38 GMT
Call-ID: 24897a00-878179ad-c-1eb74d0a@10.77.183.30
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Reason: Q.850;cause=21
Content-Length: 0
Please rate and mark correct if helpful
Regards,
Adarsh Chauhan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide