08-04-2021 01:52 AM
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
08-04-2021 02:36 AM
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.
08-04-2021 07:11 AM - edited 08-04-2021 09:13 AM
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.
08-04-2021 10:04 AM
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
08-04-2021 10:53 PM
Never tried any of these commands. Would it actually achieve the same result as what the OP asked for?
08-06-2021 02:35 AM
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
08-06-2021 03:39 AM
Is the directory number always “123456789”?
08-06-2021 04:31 AM
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
08-06-2021 06:10 AM - edited 08-06-2021 07:03 AM
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.
08-04-2021 09:58 PM
Hello all,
Thank you all for your answers, I have been able to make a sip profile that does what is needed
JH
08-05-2021 11:23 PM
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?
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