02-06-2015 06:06 AM - edited 03-18-2019 11:28 AM
Hello,
I'm configuring Cisco UBE. Successfully modify From & To headers for INVITE that is sent from UBE.
Now ITSP says they need 'itsp.domain' value also at the top of INVITE (don't know how it is called in terms of SIP signaling).
I mean of how to change 'ip_address_from_dial_peer_to_itsp' to 'itsp.domain'?
Sent:
INVITE sip:74951234567@ip_address_from_dial_peer_to_itsp:5060 SIP/2.0
From: <sip:79251234567@itsp.domain>;tag=F85E28-1393
To: <sip:74951234567@itsp.domain>
Thank you.
Solved! Go to Solution.
02-06-2015 07:21 AM
Well these requirements are a little strange. But you can change the To: header to use the domain using sip profiles. Have you tried it?
The first string is the RURI, ie the request URI. I doubt if you can change that using sip profiles..This can be changed by using dns as session target. The From header is none of their business. It cant be their domain especially when its an outbound call. Its the originator who sets that
02-06-2015 06:17 AM
The easiest way to do this is to change your session target destination to be dns based..
Eg
dial-peer voice 1 voip
destination-pattern XXXXX
session protocol sipv2
session target dns:itsp.domain
You will need to ensure that CUBE can resolve the DNS name by configuring it to use a DNS server..
Or you can configure DNS functionality on CUBE itself
ip name-server 127.0.0.1 (tells cube to use itself as DNS server)
ip host itsp.domain 10.0.0.1 (whatever the ip address for the SBC is)
02-06-2015 06:34 AM
ITSP SBC's IP address is 1.2.3.4 or itsp.domain
Before:
dial-peer voice 101 voip
description -= outbound dial-peer to itsp =-
session target ipv4:1.2.3.4
!
After:
(config)#ip host itsp.domain 1.2.3.4
(config)#ip name-server 127.0.0.1
Not a valid name-server address - 127.0.0.1
(config)#
(config)#dial-peer voice 101 voip
(config-dial-peer)#session target dns:itsp.domain
#ping itsp.domain
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.2.3.4, timeout is 2 seconds:
Check:
After CUBE receives incoming INVITE from originating side (which is CUCM) it sends back Trying to CUCM and that's all: no outbound INVITE to ITSP.. Only abovementioned two messages.
02-06-2015 06:48 AM
First of all, is ip domain lookup enabled on the gateway?
Second, the itsp.domain is a domain..You should have a host on that domain eg server1.itsp.domain so you can configure your session target to point to the server1.itsp.domain
You will then configure your gateway to resolve the server1.itsp.domain using the ip host command
Thirdly, You may need to add the domain to your cube
ip domain name itsp.domain
02-06-2015 07:03 AM
Ayodeji,
#sh run | i domain
no ip domain lookup
ip domain name corporate.domain
ITSP gave me only IP address of its SBC and manadatory requiriments to have itsp.domain in INVITE (From, To and 'first' string).
I surely understand that I need host within itsp.domain but I have no ones :)
Am I right in assuming that without host within itsp.domain I will not be able to solve initial task?
Or I can solve it using SIP profiles normalization?
02-06-2015 07:21 AM
Well these requirements are a little strange. But you can change the To: header to use the domain using sip profiles. Have you tried it?
The first string is the RURI, ie the request URI. I doubt if you can change that using sip profiles..This can be changed by using dns as session target. The From header is none of their business. It cant be their domain especially when its an outbound call. Its the originator who sets that
02-10-2015 05:51 AM
Ayodeji,
Thank you much. I found the solution using your recommendations and this good url:
http://ben.thepolzins.us/2010/02/06/using-dns-srv-records-with-ios-dial-peers/
ip host sbc1.itsp.domain 30.30.30.30
ip host _sip._udp.sbc.itsp.domain srv 1 50 5060 sbc1.itsp.domain
!
dial-peer voice 100 voip
description -= outbound leg from CUBE to ITSP =-
session target dns:sbc.itsp.domain
!
Sent (to ITSP):
INVITE sip:79011234567@sbc.itsp.domain:5060 SIP/2.0
From: <sip:79017654321@itsp.domain>;tag=15809CB0-1BF
To: <sip:79011234567@itsp.domain>
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