Asterisk listening on wrong port


#1

My sip.conf file has the following:

[general ]
port = 5060
bindaddr = 0.0.0.0
disallow=all
allow=ulaw
allow=alaw
maxexpirey=3600
defaultexpirey=120
context=default
language=en

But sip show peers shows that asterisk is listening on port 13524. I can’t figure out what is wrong and what I can do, Because sip.conf file has port = 5060. Can somebody help?

phone*CLI> sip show peers
Name/username Host Dyn Nat ACL Mask Port Status
1000/1000 217.36.252.20 D 255.255.255.255 13524 Unmonitored


#2

no, that’s some SIP softphone you have (or somesuch) your asterisk won’t show up in that command - that command shows other hosts peered with your asterisk.


#3

Thanks dswartz,

I am using grandstream 102 SIP phone. That must mean my grandstream phone is trying to connect to the asterisk server on port 13524, although the phone is setup to use port 5060.

Thanks for the explanation.


#4

no, you’re still not understanding. port 13524 is the port your SIP phone is connecting from to the asterisk. the way udp or tcp work, you can uniquely identify any connection based on the source ip, dest ip, source port and dest port. the asterisk already knows who it is, so it doesn’t list its own info in that command.