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

Remote party header modification

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

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
VIP Advisor

Re: Remote party header modification

It should look as follow:

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

Re: Remote party header modification

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

Beginner

Re: Remote party header modification

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.
VIP Advisor

Re: Remote party header modification

How you want the header to look like?
Beginner

Re: Remote party header modification

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

Beginner

Re: Remote party header modification

Hi,

try this:

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

Hth

Andre

VIP Advisor

Re: Remote party header modification

It should look as follow:

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

Re: Remote party header modification

Thank you so much Mohammed.It is working!!

 

Highlighted
VIP Advisor

Re: Remote party header modification

G8 news :)
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards