Dears,

 

I am facing the issue that when REST API triggers the freeswitch I am sending the reply with

 

Following code:

 

    stream:write("HTTP/1.1 200 OK\r\n")

    if (accept == "application/json" or accept == "*/*") then

        stream:write("Content-Type: application/json\r\n")

    else

        stream:write("Content-Type: text/plain\r\n")

    end

    stream:write("\r\n")

 

but it seems before packet it out , there is as deplay of 2-3 sec .

 

can you please suggest how to solve this?

I already tried

stream:shutdown();

and

stream:close()

 

but did not helped.

 

 

Thanks & Regards

Vineet Verma

This e-mail cannot be used for other purposes than BICS business use.