06-23-2008 10:30 PM - edited 03-15-2019 11:28 AM
Hi! I have a problem with my ISP and SIP on my 2811.
My number 2922781 register well, I don't have a problem with incoming calls. But outgoing calls fails. ISP's techsupport sayd that problem with source port in my SIP session. My number register on SIP-server like logis@address:5060, but outgoing call come from different source port and that's why SIP-server reject call. How can I force use only 5060 port for SIP-session?
!
dial-peer voice 100 pots
destination-pattern 2922781
port 0/2/0
!
dial-peer voice 101 voip
destination-pattern .T
session protocol sipv2
session target sip-server
dtmf-relay h245-alphanumeric
codec g711alaw
no vad
!
!
gateway
timer receive-rtp 1200
!
sip-ua
authentication username login password password
registrar dns:test.media.ru expires 3600
sip-server ipv4:10.0.0.1
no transport tcp
!
06-24-2008 12:53 AM
SIP uses as destination port as 5060 & source port as random. So, I feel it's working as expected only.
Please convey message to your ISP that the source port can't be 5060 which they said the cause of the problem.
Please refer the following link to get understanding about SIP ports (TCP/UDP).
Regards...
-Ashok.
06-24-2008 02:53 AM
I got debugging of SIP packets. My 2811 send INVITE - UDP packet with src port 59538, dst port - 5060. My ISP sayd that call will be successful only if src port of my UDP will be 5060, because my 2811 was registered on they mediagate with port 5060 and packets from any other ports will be rejected:
Received:
SIP/2.0 487 LR2 - User not registered on this client
06-24-2008 04:18 AM
I find out that diffirent SIP-devices uses diffirent UDP src ports - some of them uses random port from pool, some of them always uses 5060 port. Both of this method is valid (based on SIP protocol description). But some of ISP required to use only 5060 src port. How can I configure 2811 to always send UDP SIP packet from port 5060?
06-24-2008 09:09 AM
Unfortunately, there is no specific command to set source port to 5060 as far as I know. I have seend a bind command to bind source ip to a particular interface but didn't have option to set port.
Just have a try with bind command & observe the source port...
http://www.cisco.com/en/US/docs/ios/12_3/sip/configuration/guide/chapter7.html
Regards...
-Ashok.
06-24-2008 02:45 PM
Apologies slightly off topic..
06-25-2008 12:05 AM
Ok, it is ISP mistake. Does anybody connect by SIP cisco router and Nortell MCS 5200?
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: