I have linphone installed on my Ubuntu 12.04 box. A coworker would like to test out a Windows SIP phone that uses, he says, SIP over TCP rather than UDP.
IT occurs to me that I could create a 20 cent C++ program that has two threads, one for the UDP side, one for the TCP side, which simply receives one protocol and sends it to the other. Since the UDP portion would be only on the linux box, I doubt there be any issues with datagrams vs. streams, and SIP is not particularly 'streamy" anyway.
Would this work or is there some underlying protocol nastiness that I am unaware of. Is the SIP used over TCP the same SIP that normally travels by UDP? Is there a well known C++ solution for this?
I've looked around for possible solutions and socat is a possibility but it is GPL and this is intended for an embedded OCO project.
Any additional advice or suggestions would be quite welcome.
socat
do that for you? – Kerrek SB