08-10-2017 03:47 PM - edited 03-18-2019 12:20 PM
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
08-11-2017 06:45 PM
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
08-11-2017 06:45 PM
a
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide