cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
692
Views
0
Helpful
1
Replies

Modify CUBE SIP Diversion Header from 3 digit extension to 10 digits

Neil Sheridan
Level 1
Level 1

Hi,

I have a working diversion, however the method used is hard-set to one extension leaving all calls forwarded to showing one number as the diverted party. I would like to have the diverted number shown for the DiD of the correct user. Below is the SIP profile in use.

voice class sip-profiles 1

request INVITE sip-header Diversion modify "<sip:(.*)@(.*)>" "<sip:0862702734@amcomvoice.ipsystems.com.au>"

request INVITE sip-header Diversion copy "<sip:(.*)@.*" u01

request INVITE sip-header From copy ".*<sip:(.*)@.*" u02

request INVITE sip-header From modify "(.*)<sip:.*@(.*)" "\1<sip:\u01@\2"

request INVITE sip-header From modify "<sip:@" "<sip:\u02@"

The DiD number range is - 0862702725 thru 34

The internal extension range is 2XX

I've tried to use a heap of methods to have the diversion header see 2XX, strip the 2 and append the XX to the diversion header with not luck. I'm hoping someone here could help :)

Regards

1 Reply 1

Hi,

Two things:

1. What is behind your CUBE? What you are looking for is a basic feature which the forwarding station should do. You don't need SIP normalization to achieve this. 

2. If you still want to use sip-profiles, what IOS version are you running and are you copying in inbound dialpeer or outbound dialpeer? sip-profiles advanced rapidly in the last couple of releases and the version of your IOS can make a difference.