12-02-2021 12:40 AM
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
12-02-2021 07:22 AM
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 ---
12-02-2021 09:35 AM - edited 12-02-2021 10:22 PM
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
12-02-2021 03:02 PM
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"
12-13-2021 05:11 AM
Hi
Thank you for all the replies
It is working now
Thanks again!
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