cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1201
Views
0
Helpful
2
Replies

CUBE SIP Profile Help

schaef350
Level 1
Level 1

I know CUBE can do some things like this but I'm not having any luck making it happen...

I would like change the From header from something like this: 

From: "Anonymous" <sip:Anonymous@5.6.7.8> 

header to something more like this:

From: "Anonymous" <sip:0000000000@5.6.7.8>

Other details, this comes in from the carrier on dial-peer 100 and exits toward CUCM on dial-peer 200.  I have to following applied to dial-peer 100 now.

voice class sip-profiles 1
 request INVITE sip-header From modify "<sip:Anonymous@(.*)>" "<sip:0000000000@\1>"

Can this in fact be done?  Is this profile right correct or should it be applied someplace else?  

SIP message looks something like coming in:

INVITE sip:4085555555@1.2.3.4:61482 SIP/2.0
Via: SIP/2.0/UDP 5.6.7.8:5060;branch=z9hG4bK1439e2a1;rport
Max-Forwards: 70
From: "Anonymous" <sip:Anonymous@5.6.7.8>;tag=as3bcef15a
To: <sip:4085555555@1.2.3.4:61482>
Contact: <sip:Anonymous@5.6.7.8:5060>
Call-ID: 6de2e4442c4ac0575ec457e518f1e609@5.6.7.8:5060
CSeq: 102 INVITE
User-Agent: voip.ms
Date: Thu, 10 Aug 2017 22:30:21 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Remote-Party-ID: "Anonymous" <sip:Anonymous@5.6.7.8>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 266

- Be sure to rate all helpful posts
2 Replies 2

schaef350
Level 1
Level 1

So this did it: 

request INVITE sip-header From modify "<sip:Anonymous@" "<sip:0000000000@"

I'm assuming my regex was incorrect...  Wrote a more detailed explanation here:

http://technologyordie.com/calling-party-routing-of-anonymous-calls-sip-header-fix-up

- Be sure to rate all helpful posts

schaef350
Level 1
Level 1

a

- Be sure to rate all helpful posts
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: