cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1028
Views
10
Helpful
4
Replies

Sip profiles CUBE

j.huizinga
Level 6
Level 6

Hi

I am trying to apply a sip profile that should replace an IP with a domain name

As an example Cisco gives:

request ANY sip-header SIP-Req-URI modify "10.67.138.241:5060" "sipp.cisco.com"

The INVITE is correct, but the from and contact contain the IP from the outgoing interface and we need a domain name here

When I apply this profile to a dial peer the INVITE is send out to the provider still with the IP address

Am I doing something wrong?

 

Thnanks

 

JH

4 Replies 4

b.winter
VIP
VIP

Hi,

 

if you want to modify the FROM and CONTACT, than you are using the wrong parameter in the rule.

Currently, you are modifying the Request-URI header (SIP-Reg-URI parameter).

 

You need something like:

request ANY sip-header From modify "10.67.138.241:5060" "sipp.cisco.com"
request ANY sip-header Contact modify "10.67.138.241:5060" "sipp.cisco.com"

 

 --- Please rate this post as "Helpful" or accept as a solution, if your question has been answered ---

Like @b.winter wrote you'd have to have one line per SIP header that you'd like to modify.

Please check out this document for details on an amazing tool that Cisco has to test SIP profiles before putting them into use.

https://community.cisco.com/t5/collaboration-voice-and-video/sip-profile-test-tool/ta-p/3162632



Response Signature


Scott Leport
Level 7
Level 7

Hi @j.huizinga 

 

I think you'll need to consider the response if modifying the contact header too. In addition to the advice supplied above, you may also require this:

request ANY sip-header Contact modify "10.67.138.241:5060" "sipp.cisco.com"
response ANY sip-header Contact modify "10.67.138.241:5060" "sipp.cisco.com"

 

j.huizinga
Level 6
Level 6

Hi

 

Thank you for all the replies

It is working now

Thanks again!