cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6825
Views
0
Helpful
5
Replies

****Cisco CUBE SIP Port Change****

Hi,

My ITSP has requested that I send different port for a specific range of numbers:

Example:

When I dial -- 123456 It should be sent to sip port 5000

When I dial -- 6789 It should be sent to sip port 5001

I tried to change the port in the dial-peer

dial-peer voice 9 voip

description "TO Verizon"

destination-pattern 12345

session protocol sipv2

session target ipv4:192.168.1.100:5000

dial-peer voice 10 voip

description "TO Verizon"

destination-pattern 6789

session protocol sipv2

session target ipv4:192.168.1.100:5001

But No changes when I looked at the debug ccsip messages:

Sent:

INVITE sip:12345@192.168.1.100:5000 SIP/2.0

Via: SIP/2.0/UDP 172.29.26.238:5060;branch=z9hG4bK220B61D22

But I see the port 5060 ib the Via section, Can that be changed?

Instead of:

INVITE sip:12345@192.168.1.100:5000 SIP/2.0   (My Mistake)

Is it possible to change the sip port per dial-peer?

F.Y.I ---- The dial-peer point to the same SBC but on different ports.

Thanks.

1 Accepted Solution

Accepted Solutions

But I see the port 5060 ib the Via section, Can that be changed?

Yes that can be changed using sip profile as you have to send different ports for different dial-peer.

voice class sip-profiles 1

request INVITE sip-header Via modify ":5060;" ":5000;"

And apply this to dial-peer 9

dial-peer voice 9 voip

voice-class sip profiles 1

Here is doc for sip profile-

https://supportforums.cisco.com/community/netpro/collaboration-voice-video/ip-telephony/blog/2013/05/28/cube-sip-profile-configuration-examples

Rate helpful post.

Thanks

Manish

View solution in original post

5 Replies 5

Manish Prasad
Level 5
Level 5

It should work. Did you checked correct outgoing dial-peer match by enabling "debug voice ccapi inout" ?

Thanks

Manish

I checked.

ccapi inout:

   Guid=1CC0C300-0001-0000-1000-C4C00E02A30C, Outgoing Dial-peer=9

But I see the port 5060 ib the Via section, Can that be changed?

Yes that can be changed using sip profile as you have to send different ports for different dial-peer.

voice class sip-profiles 1

request INVITE sip-header Via modify ":5060;" ":5000;"

And apply this to dial-peer 9

dial-peer voice 9 voip

voice-class sip profiles 1

Here is doc for sip profile-

https://supportforums.cisco.com/community/netpro/collaboration-voice-video/ip-telephony/blog/2013/05/28/cube-sip-profile-configuration-examples

Rate helpful post.

Thanks

Manish

Thanks Manihs.

Is it possible to modify the port based on the caller id in the FROM section:

for example:

I only want user's that have 5XXX Range to modify there Via and INVITE header to port 5000

And

User with 6XXX to be modified to 5001 in both the Via and INVITE header.

thanks.

No option in SIP profile to match certain section of the message and replace on that criteria.

Rate all helpful post.

Thanks

Manish

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: