07-14-2019 11:51 PM
Hi All,
Could you please help me to edit the remote party id on the 180 ringing message sent out for the incoming call from cisco CUBE.
Original message
Sent:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 172.16.9.4:5069;branch=z9hG4bKic0hg9307gq0nmkj50a0.1
From: <sip:XXXX@vodafone.qa:5063>;tag=SDeouf501-581911ba-5d2c197a2e84ab0daluGWF-110369
To: <sip:+XXXX@vodafone.qa:5063>;tag=BAC8C7EE-1D25
Date: Mon, 15 Jul 2019 06:13:14 GMT
Call-ID: SDeouf501-be30ca66e072251aaa77d175d59bcc2e-c54e020
Timestamp: 1563171508
CSeq: 1 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, R EGISTER
Allow-Events: telephone-event
Remote-Party-ID: "test linetest line" <sip:4715@X.X.X.X>;party=called;screen=yes;priva cy=off
Contact: <sip:+XXXXXXX@X.X.X.X:5060>
Server: Cisco-SIPGateway/IOS-15.4.3.S4
Content-Length: 0
-----------------
Desired output
Sent:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 172.16.9.4:5069;branch=z9hG4bKic0hg9307gq0nmkj50a0.1
From: <sip:XXXX@vodafone.qa:5063>;tag=SDeouf501-581911ba-5d2c197a2e84ab0daluGWF-110369
To: <sip:+XXXX@vodafone.qa:5063>;tag=BAC8C7EE-1D25
Date: Mon, 15 Jul 2019 06:13:14 GMT
Call-ID: SDeouf501-be30ca66e072251aaa77d175d59bcc2e-c54e020
Timestamp: 1563171508
CSeq: 1 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, R EGISTER
Allow-Events: telephone-event
Remote-Party-ID: "test linetest line" <sip:1244715@X.X.X.X>;party=called;screen=yes;priva cy=off
Contact: <sip:+XXXXXXX@X.X.X.X:5060>
Server: Cisco-SIPGateway/IOS-15.4.3.S4
Content-Length: 0
Please help
Solved! Go to Solution.
07-16-2019 08:27 PM
It should look as follow: voice class sip-profiles 910 response 180 sip-header Remote-Party-ID modify "(.*)<sip:(.*)" "\1<sip:1234\2"
07-15-2019 01:29 AM
07-15-2019 09:19 AM
07-15-2019 06:10 PM
07-15-2019 09:38 PM
Original header
=============
Remote-Party-ID: "test linetest line" <sip:4715@X.X.X.X>;party=called;screen=yes;priva cy=off
Required header
============
Remote-Party-ID: "test linetest line" <sip:12344715@X.X.X.X>;party=called;screen=yes;priva cy=off
Thanks
07-16-2019 06:45 PM
Hi,
try this:
voice class sip-profiles 910 response 180 sip-header Remote-Party-ID modify "<sip:(.+)@" "<sip:1234\1@"
Hth
Andre
07-16-2019 08:27 PM
It should look as follow: voice class sip-profiles 910 response 180 sip-header Remote-Party-ID modify "(.*)<sip:(.*)" "\1<sip:1234\2"
07-16-2019 09:53 PM
Thank you so much Mohammed.It is working!!
07-16-2019 09:55 PM
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