cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1568
Views
10
Helpful
5
Replies

CUBE - ¿Change source and destination ports for ALL SIP traffic?

Liv_Liv
Level 1
Level 1

Hi, 

I am dealing with a SIP trunk installation in India (provider Tata). 

The provider has registration & authentication as a requisite and now they are requesting us to change all our sip traffic in order to communicate with them with source port as 5061 and destination port as 5060.

So far, I´ve only managed to:

- change the source port to 5060 for REGISTER requests sent from our side using connection-reuse under sip-ua config. 

- change the destination port to 5061 for REGISTER requests sent from our side using a sip profile: 

request REGISTER sip-header Via modify ":5060;" ":5061;"

 

Thing is I am not able to change ALL SIP messages to make them get out of our CUBE to the provider with source port as 5061. I see how I could to get to work this for destination port vía sip profiles, but I don´t see any other sample config where the source port can be modified to 5061 in all messages. 

 

Is this feature even possible?

 

Our CUBE is running on an ISR ISR4331 with the following version

 

Cisco IOS XE Software, Version 03.16.04b.S - Extended Support Release
Cisco IOS Software, ISR Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 15.5(3)S4b, RELEASE SOFTWARE (fc1)

 

thanks in advance for your help !!!

 

 

5 Replies 5

b.winter
VIP
VIP

Have you tried to just add the destination port to the commands?

E.g. for the registrar command:

registrar dns:test.com:5061 ...

Or for the destination in the dial-peer:

session target ipv4:10.10.10.10:5061

 

Also, do yourself a favour, and upgrade the router to a more current release.

For example IOS-XE 16.09.08 (The last without Smart Licensing)

https://software.cisco.com/download/home/285018115/type/282046477/release/Fuji-16.9.8

Hi, thanks for your reply !!

Indeed the suggestion you posted did work for destination port without an IOS upgrade, thanks for the tip  

 

my main issue here is now in doing the same thing for source port 5061, I still need this to be accomplished by the CUBE.

 

The source-port normally can be any port.

With the command connection-reuse via-port (only used for UDP), you say in principle, that the router should use the default listen-port as the source-port, which is 5060.

 

You can change the listen-port, but it is a global command. So, be aware of that.

 

In one of the newest versions (17.8.1a), Cisco added the feature to define listen-ports on per tenant level.

 

Or you manipulate everything with a SIP-profile. But it won't change the port in the UDP header, since it's a different layer.

Thanks again @b.winter 

the command "source-port" might be what Im looking for in order to change UDP to 5061 as a source port in my SIP requests. 

However I tried to look for this command under voice service voip level, sip level, sip-ua level and dial-peer level and didn´t find it anywhere. 

Is this a hidden command or maybe is not available in this version?

thank you, 

 

voice service voip 
sip listen-port non-secure <port> or listen-port secure <port>