1
votes

What is the purpose for using sip with VOIP ? is it just to know the remote ip address ?

If i know (by server) the remote IP address ,then established a direct TCP socket connection for call negotiation, and send the media over RTP protocol ,so am i still need sip protocol ? or how can sip help me here?

4

4 Answers

2
votes

The Session Initiation Protocol does rather a lot more than find out a remote IP address/port/transport triple.

It lets two parties

  • negotiate the media streams (including codecs and transports) and
  • establish commonly understood extensions to the protocol.

It also describes how to build scalable infrastructure (proxies, using SRV and NAPTR records, back to back user agents), location services and a host of other details that go into making a voice (or any other kind of) call to arbitrary third parties.

1
votes

then you have implemented a sip alternative. sip (session instanciation protocol) does just control the "phone call". if you want to do that on your own, why not? the only problem would be that there are many sip clients and just one (or few) clients using your protocol.

1
votes

SIP allocates a IP:port to a voip call. The RTP flows (one for each direction) will then use this IP:port as a destination address. If you have only one static RTP flow to send to your server, it may be useful and ok to do what you said.

Otherwise, if there are many clients, or if your system has to change a lot, it's better to use a polished protocol which will dynamically allocate ports and establish your sessions.

0
votes

nobody forces you to implement a standard.

e.g. why do you implement the media stream in RTP? most likely because you already have code that "talks" RTP (e.g. a library, or a raedymade application).

the nice thing about standards is, that it will work "out-of-the-box" with all other applications implementing the same standard.

if it is an open standard, there's another nice thing: other people have already spent a lot of brain power into getting the implementation right. you don't need to fall into the same problems.