cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1651
Views
15
Helpful
8
Replies

Remote party header modification

SAIFUDEEN C .K
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

It should look as follow:

voice class sip-profiles 910
 response 180 sip-header Remote-Party-ID modify "(.*)<sip:(.*)" "\1<sip:1234\2"

View solution in original post

8 Replies 8

Try this

voice class sip-profiles 910
response 180 sip-header Remote-Party-ID modify
"Remote-Party-ID:(.*)<>
!

dial-peer voice x voip

voice-class sip profiles 910


*** remember to rate useful posts

Thank you so much for your quick response.

Could you please help me how to add tbe prifix 4008.sorry I am very new to sip profikes.

How you want the header to look like?

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

Hi,

try this:

voice class sip-profiles 910
 response 180 sip-header Remote-Party-ID modify "<sip:(.+)@" "<sip:1234\1@"

Hth

Andre

It should look as follow:

voice class sip-profiles 910
 response 180 sip-header Remote-Party-ID modify "(.*)<sip:(.*)" "\1<sip:1234\2"

Thank you so much Mohammed.It is working!!

 

G8 news :)
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: