Quest | 23 Apr 2004 17:46
Picon
Picon
Picon
Favicon

TCP support?

I have a client I want to support that uses TCP to make SIP
connections. Is there any plans to support TCP connections with
siproxd?
--

-- 
Anders "Quest" Qvist

"Alvays remember: _any_ plan vere you lose you hat is a bad plan."

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
Thomas Ries | 24 Apr 2004 08:51
Picon

Re: TCP support?

Hi,

up to now, no TCP support is planned. But I'll put it on the
nice-to-have list.

Does this UA you mention *only* support TCP? This sounds rather strange
to me.

Regards,
/Thomas

On 23 Apr, Quest wrote:
> I have a client I want to support that uses TCP to make SIP
> connections. Is there any plans to support TCP connections with
> siproxd?
> -- 
> Anders "Quest" Qvist
> 
> "Alvays remember: _any_ plan vere you lose you hat is a bad plan."
> 
> 
--

-- 
GnuPG: pub  1024D/87BCDC94 2000-03-19 Thomas Ries <tries@...>
-      Fingerprint = 13D1 19F5 77D0 4CEC 8D3F  A24E 09FC C18A 87BC DC94
-      Key via pgp.openpkg.org / http://www.ries.ch.vu/87BCDC94.pub
VoIP:  sip:17476691342@...
Quest | 24 Apr 2004 13:26
Picon
Picon
Picon
Favicon

Re: TCP support?

Thomas Ries <tries@...> writes:

> up to now, no TCP support is planned. But I'll put it on the
> nice-to-have list.

I'll take a shot at implementing it.

> Does this UA you mention *only* support TCP? This sounds rather strange
> to me.

So it seems. It's not that I must absolutely use that particular UA.
It's more of an excuse to get into the SIP protocol. :)

The client is called ActiveContacts.
--

-- 
Anders "Quest" Qvist

"Alvays remember: _any_ plan vere you lose you hat is a bad plan."

-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
Thomas Ries | 24 Apr 2004 17:53
Picon

Re: TCP support?

Hi Anders,

You may want to use tha latest snapshot to start with (I just cleaned
up some things around sending/receiving SIP packets).
For implementing TCP transport, I think changes can be limited to
sock.c. 
	sipsock_listen()
	  - create socket and listen on TCP port
	sipsock_wait()
	  - include active TCP sockets to fd_set
	  - accept() new connections
	  - close() expired TCP connections (Criteria? In the 1st run
	    this will probably a timeout of 'n' seconds without traffic)
	sipsock_read()
	  - read one SIP message from transport (UDP or TCP)
	sipsock_send()
	  - figure out the transport protocol to use *)
	  - send to destination

*) I did not yet look through RFC3261 how to determine the transport
   to be used for sending. I'll let you figure how to do this ;-)

I hope this may help as a starting point. Looking forward to see
some what will come out.

Regards,
/Thomas

On 24 Apr, Quest wrote:
> Thomas Ries <tries@...> writes:
(Continue reading)


Gmane