cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6446
Views
15
Helpful
10
Replies

Sip Profiles for Remote-Party-ID

j.huizinga
Level 6
Level 6

Hi

We have a CUBE and we need to modify the Remote-Party-ID

Now it looks like this: Remote-Party-ID: "personal name" <sip:123456789@X.X.X.X>;party=calling;screen=no;privacy=off

What we want: Remote-Party-ID: "123456789" <sip:123456789@X.X.X.X>;party=calling;screen=no;privacy=off

 

Basically replace the personal name with the phone number

Can someone help?

 

Thanks

 

JH

10 Replies 10

Scott Leport
Level 7
Level 7

Hi,


Try this:

 

voice class sip-profiles 1
request INVITE sip-header Remote-Party-ID modify "sip:personal name@" "sip:123456789@"

 

Then apply the sip-profile to your dial-peer and test.

 

I ran this through the SIP profile test tool which you can find in the tools section on the Cisco website and modified an INVITE message I had handy with some of the details in your first post and it seems to do the job.

https://cway.cisco.com/tools/SipProfileTest/

 

Let us know how you get on.

 

Do this.

voice class sip-profiles 1
request INVITE sip-header Remote-Party-ID modify ".* (<sip:)(.*)@(.*)“ "\2 \1@\3"

For additional details see these documents.

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube/configuration/cube-book/voi-sip-param-mod.html?bookSearch=true

https://www.cisco.com/c/en/us/support/docs/unified-communications/unified-border-element/118825-technote-sip-00.html



Response Signature


Instead of sip profile you can use no remote-party id on sip-ua

After that please ensure that asserted-id pai is configured on voice service voip

 

Never tried any of these commands. Would it actually achieve the same result as what the OP asked for?



Response Signature


Hi

 

I combined some solutions together and this worked for me:

request ANY sip-header Remote-Party-ID modify "\".*(<sip:.*)" "\"123456789\" \1"

Thank you everyone

Is the directory number always “123456789”?



Response Signature


Hi

 

No this was an example

The Remote-Party-ID had the personal name and should be replaced with the main number

the number 123456789 is and example number

 

I see, if you’ll read your OP that’s not really what you asked about, or anyway not what I’ve read from it.

You wrote that you’d wanted to get the phone number in the line of the remote party ID to replace the personal name information.

Basically replace the personal name with the phone number”.


In the shared line you’d had this. “Remote-Party-ID: "personal name" <sip:123456789@X.X.X.X>;party=calling;screen=no;privacy=off”.

The way I’ve read this is that you’d wanted to copy the number after “sip:” and replace the personal name with this.



Response Signature


j.huizinga
Level 6
Level 6

Hello all,

Thank you all for your answers, I have been able to make a sip profile that does what is needed

JH

 

Glad to hear that you got it to work. Would you mind to share your SIP profile for the greater good of the community and mark the answer that you see fits as an answer to your question?



Response Signature