Convert HTTP-HTML5 to SIP format and vise verse?

How can i convert http-html5 messages to UDP SIP messages?
I want web phone to register my sip server, my sip server is listening 5060 udp/tcp.

how can i convert http-html5 to sip udp package? and vise verse?


Hmm not sure if by message you mean any kind of request or you mean a text message like a sms but from web to sip.

Maybe you should take a look on the WebRTC APIs out there to check if it fit your needs: