cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5194
Views
0
Helpful
6
Replies

SIP outgoing calls - change port

paa
Level 1
Level 1

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

!

6 Replies 6

ashok_boin
Level 5
Level 5

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).

http://books.google.com/books?id=VMP6gCBazzIC&pg=PA40&lpg=PA40&dq=sip+user+agent+TCP+source+port&source=web&ots=EtnFfh2YO1&sig=n5uKzZ7uFOzuGmt9JjcS9f-W9i4&hl=en&sa=X&oi=book_result&resnum=3&ct=result#PPA40,M1

Regards...

-Ashok.


With best regards...
Ashok

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

paa
Level 1
Level 1

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?

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.


With best regards...
Ashok

exonetinf1nity
Level 1
Level 1

Apologies slightly off topic..

Ok, it is ISP mistake. Does anybody connect by SIP cisco router and Nortell MCS 5200?

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: