« Return to Thread: Server sends request using UDP instead of TCP.

Re: Server sends request using UDP instead of TCP.

by java.sip.dev :: Rate this Message:

| View in Thread

Hi,
Thanks a lot, it did the trick.


Hi.

You should change your domain.xml in the following line:

<sip-protocol default-tcp-transport="true"  (change from false (default) to true)

Franklin.



Pavs wrote:
Hi,
I use B2BUA mechanism to establish the call. When new INVITE comes using UDP protocol, everything works fine, server creates new b2b INVITE and sends it using UDP. But when new INVITE comes using TCP protocol, after creating b2b INVITE, server sends it using UDP. I want to use TCP protocol to send b2b INVITE when original one received through TCP, but I havn't found how to force sailfin to do it.

b2b INVITE sends using the following code:
public void doInvite( SipServletRequest origReq) throws ServletException, IOException {
    ...
    SipServletRequest b2bReq = origReq.getB2buaHelper().createRequest(origReq);
    ...
    b2bReq.send();
}

Any help will be appreciated.

 « Return to Thread: Server sends request using UDP instead of TCP.