Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Help with SIP Diversion Header

Is there a way in UCM to have the diverted party shown transformed to the external phone mask when calls are diverted back to the PSTN?

Scenario: ITSP to CUBE to UCM --- SIP end-to-end. IP phone is forwarded to PSTN number and diversion headers are enabled on the outbound direction of the trunk. But unlike standard calls which are transformed to the external mask at the trunk level, diversion headers show only the private extension. ITSP rejects the diverted call because it does not accept calls from unknown DIDs.

Any ideas?

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: Help with SIP Diversion Header

On your CUBE you can do something like this

voice translation-rule 9
rule 1 /^9\(.*\)/ /\1/ <-- Strips the 9 from the Called Number

voice translation-rule 11
rule 1 /1...$/ /2125551212/

***  this rule Matches a 4 Digit Diversion number that starts with a 1 from Call Manager and  translates it to a number that is allowed on the SIP  network.  Depending on your Version of CM or Gateway type you might not see the 4 Digits  Diversion header, so you might try this rule 1 /.*/ /2125551212/. ***

voice translation-profile strip9
translate called 9
translate redirect-called 11

dial-peer voice 10 voip
translation-profile outgoing strip9
destination-pattern 9T
voice-class codec 1
voice-class sip early-offer forced
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
fax protocol t38 ls-redundancy 2 hs-redundancy 0 fallback none
no vad

Hope that helps

2 REPLIES
New Member

Re: Help with SIP Diversion Header

On your CUBE you can do something like this

voice translation-rule 9
rule 1 /^9\(.*\)/ /\1/ <-- Strips the 9 from the Called Number

voice translation-rule 11
rule 1 /1...$/ /2125551212/

***  this rule Matches a 4 Digit Diversion number that starts with a 1 from Call Manager and  translates it to a number that is allowed on the SIP  network.  Depending on your Version of CM or Gateway type you might not see the 4 Digits  Diversion header, so you might try this rule 1 /.*/ /2125551212/. ***

voice translation-profile strip9
translate called 9
translate redirect-called 11

dial-peer voice 10 voip
translation-profile outgoing strip9
destination-pattern 9T
voice-class codec 1
voice-class sip early-offer forced
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
fax protocol t38 ls-redundancy 2 hs-redundancy 0 fallback none
no vad

Hope that helps

New Member

Re: Help with SIP Diversion Header

Thanks for the help!

865
Views
0
Helpful
2
Replies