03-04-2014 01:45 AM - edited 03-16-2019 10:00 PM
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.
Solved! Go to Solution.
03-04-2014 03:51 AM
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-
Rate helpful post.
Thanks
Manish
03-04-2014 02:06 AM
It should work. Did you checked correct outgoing dial-peer match by enabling "debug voice ccapi inout" ?
Thanks
Manish
03-04-2014 02:37 AM
I checked.
ccapi inout:
Guid=1CC0C300-0001-0000-1000-C4C00E02A30C, Outgoing Dial-peer=9
03-04-2014 03:51 AM
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-
Rate helpful post.
Thanks
Manish
03-04-2014 10:17 PM
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.
03-05-2014 12:47 AM
No option in SIP profile to match certain section of the message and replace on that criteria.
Rate all helpful post.
Thanks
Manish
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