hudamalmsteen / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

question: the range of media port #1318

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

In our school, we will use CSipsimple to get free call in the school.
We want to config a safe sip server, so I need to know the range of media port.

I use wireshark to see the sip "invite" package, the media port is dynamic.

could you tell me? I need to know it. Thanks!

Original issue reported on code.google.com by yingqiwe...@gmail.com on 10 Oct 2011 at 7:08

GoogleCodeExporter commented 9 years ago
Hi, sorry for the delay to reply I was very busy with last version.

You have to distinguish two kind of ports. The media ports (by default in 
csipsimple it is from 4000 to 4010) and the locally bound UDP/TCP port (by 
default in csipsimple it is random to the first available port).
On wireshark you'll see that invite is sent from UDP port (by default random) 
of the phone to port of your server (I guess 5060). This is not the media port 
however, this is about signalisation. To see the media port in the sip trace 
captured by wireshark, you have to read the SDP sent inside the invite. In the 
SDP sent by csipsimple, by default you'll see something like 4000. This is 
constant by default.

You can setup manually all these ports. To do so, first switch to 
ExpertSettingMode (for global settings). Then in settings > network, you'll 
find UDP and TCP port (for sig) and RTP port (for media).
All these port are about ports locally bound on the phone. 
The remote port on the server is an account setting and has to be setup in 
server_ip:port - with the :port -

I hope it reply to your question, do not hesitate to ask if you need more 
details.

Original comment by r3gis...@gmail.com on 21 Oct 2011 at 4:49