cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1112
Views
10
Helpful
3
Replies

CUBE - SIP Normalization

Hello all,

My telephone provider requires to change the PAID (P-Asserted-Identity) SIP Header field, in order to present a different CLID, else only the default number is allowed.  

I have manage to change all the internal numbers (2XXX) to a specific one,

request INVITE sip-header P-Asserted-Identity modify "<sip:2(.*)@192.168.111.2>" "<sip:5553277930@itsp.net>"

but I am not sure how to change lets say 2XXX to 555327XXX (ie 2001 to 555327001 / 2002 to 555327001 etc.)

I used:

request INVITE sip-header P-Asserted-Identity modify "<sip:2(.*)@192.168.111.2>" "<sip:5553272(.*)@itsp.net>"

but it seems that the number is translated to 5553272(.*)

(Send to the CUBE) P-Asserted-Identity:  <sip:2111@192.168.111.2>

(Translated by the CUBE) P-Asserted-Identity: <sip:5553272(.*)@itsp.net>

1 Accepted Solution

Accepted Solutions

Thank you Chris for the link with the useful examples. I managed to sort it out

request INVITE sip-header P-Asserted-Identity modify "<sip:2(.*)@192.168.111.2>" "<sip:5553272\1@itsp.net>"

View solution in original post

3 Replies 3

Chris Deren
Hall of Fame
Hall of Fame

Check out following section in the below link for similar requirement:

Example: Modify Diversion Headers from Three-Digit Extensions to Ten Digits.

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube_fund/configuration/xe-3s/cube-fund-xe-3s-book/voi-sip-param-mod.html

Thank you Chris for the link with the useful examples. I managed to sort it out

request INVITE sip-header P-Asserted-Identity modify "<sip:2(.*)@192.168.111.2>" "<sip:5553272\1@itsp.net>"

Good job, +5 for future users needing something similar :-)