02-01-2013 07:49 AM - edited 03-16-2019 03:29 PM
Hello Sirs,
I have CUCM 8.6 with TopLevel Domain in Enterprise parameteres configured as "Test.com", and also a SIP Trunk with destination IP 211.211.211.211.
When I make a call using the trunk, the Request URI has the format XXXX@211.211.211.211 and my network needs to manage calls as XXXX@Test.com.
Can you help me to arrange this?
Thanks
Solved! Go to Solution.
02-02-2013 01:13 PM
You will need to use sip normalization scripts to do this..To do this do the following:
1. Go to device>device settings>sip normalization script
2. Click on Add new
3. Give the script a name
4. Copy and paste the script below into the contect box
M = {}
function M.outbound_INVITE(msg)
local method, ruri, ver = msg:getRequestLine()
local uri = string.gsub (ruri, “211.211.211.211″, “Test.com”)
msg:setRequestUri(uri)
end
return M
5. save it.
6. Then go to the sip trunk in question, scroll down to Normalization script (its right at the bottom) Select this script. Save and reset the trunk.
NB: change the IP and name to the values that match your system
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
02-01-2013 09:41 AM
What do you have in your environment. Do you have CUBE or you are connecting directly to the provider using a sip trunk
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
02-02-2013 08:34 AM
02-02-2013 01:12 AM
Thanks Sir,
I have nothing more than cucm to do this.
Regards
Sent from Cisco Technical Support Android App
02-02-2013 01:13 PM
You will need to use sip normalization scripts to do this..To do this do the following:
1. Go to device>device settings>sip normalization script
2. Click on Add new
3. Give the script a name
4. Copy and paste the script below into the contect box
M = {}
function M.outbound_INVITE(msg)
local method, ruri, ver = msg:getRequestLine()
local uri = string.gsub (ruri, “211.211.211.211″, “Test.com”)
msg:setRequestUri(uri)
end
return M
5. save it.
6. Then go to the sip trunk in question, scroll down to Normalization script (its right at the bottom) Select this script. Save and reset the trunk.
NB: change the IP and name to the values that match your system
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
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