cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3174
Views
15
Helpful
1
Replies

Gateway call Reject on SIP gateway

Ronit Malhotra
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

Adarsh Chauhan
Level 3
Level 3

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


Please rate and mark correct if helpful
Regards,
Adarsh Chauhan

View solution in original post

1 Reply 1

Adarsh Chauhan
Level 3
Level 3

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


Please rate and mark correct if helpful
Regards,
Adarsh Chauhan