cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
270
Views
0
Helpful
2
Replies

Modify SIP Header

Hi all

I have a small problem but I can't figure out where the issue is...

I want to modify...

INVITE sip:*8200xxyyzzzzzzz@192.168.116.30:5061 SIP/2.0 0 => INVITE sip:*+xxyyzzzzzzz@192.168.116.30:5061 SIP/2.0

as well as:

To: <sip:*8200xxyyzzzzzzz@192.168.116.30> => To: <sip:+xxyyzzzzzzz@192.168.116.30>

This has to be done on a outgoing dial-peer with a SIP profile.

I tried this:  request INVITE sip-header To modify "To:(.*)<sip:\*8200(.*)@" "To: <sip:+\2@"

Can anybody help me please?

Thank you very much.

Best regards,

Pascal

 

Sent:
INVITE sip:*8200xxyyzzzzzzz@192.168.116.30:5061 SIP/2.0
Via: SIP/2.0/TLS 192.168.116.36:5061;branch=z9hG4bK290151E6F
From: "Firstname Surname" <sip:+xxyyaaaaaaa@192.168.116.36>;tag=9694EB50-884
To: <sip:*8200xxyyzzzzzzz@192.168.116.30>
Date: Wed, 12 Aug 2015 14:28:40 GMT
Call-ID: 42F3D90F-403511E5-8CF6BB2F-209F2ADF@192.168.116.36
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE:  1800
Cisco-Guid: 1809015168-0000065536-0000166237-0352451082
User-Agent: Cisco-SIPGateway/IOS-15.5.2.S
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1439389720
Contact: <sip:+xxyyaaaaaaa@192.168.116.36:5061;transport=tls>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 68
P-Asserted-Identity: <sip:+xxyyaaaaaaa@192.168.116.36>
Privacy: none
Session-Expires:  3600
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 338

 

2 Replies 2

Nadeem Ahmed
Cisco Employee
Cisco Employee

Can you please try this

request INVITE sip-header To modify "(*8200<sip:)(.*)" "\1+\2"

 

Br,

Nadeem

Br, Nadeem Please rate all useful post.

Hi Nadeem

Thank you for your help.

Unfortunately, it doesn't work.

Any other idea?

Best regards,
Pascal