Hi Agalya,can you please provide an example of the data format you'd like to use and the related http_async parameters and request?And possibly also an example of expected final content of the HTTP request?We'll try to better understand what you want achieve.Cheers,GiacomoOn 30 November 2016 at 20:00, Ramachandran, Agalya (Contractor) <Agalya_Ramachandran@comcast.com > wrote:______________________________Hi team,
We are trying to use kamailio for our project purpose, which will be used as a proxy server.
Am trying to use “http_async_client” module to send my rest queries asynchronously.
I have few queries regarding the usage of http_async_query() and using PUT method.
http_append_header("Authorizat
ion: Bearer $var(auth)"); http_append_header("Content-Ty
pe: application/json"); http_set_method("PUT");
http_async_query("http://sdk-e
vm-wcdc-c-001.rtc.sys.comcast. ", "{'from_tn':'$fU','to_tn':'$tUnet/events/createxmpprootevent fortn ','callid':'ci'}", "HTTP_REPLY");
Here am passing from, to, callid in post data field.
Passing as ‘key’:’value’ is mandatory or I can pass only value- ?
In the file, async_http.c – in async_send_query(), if I modify the post data to the format I need, I see the value is truncated up to three fields only.
How can I achieve that my payload format whatever I form in async_send_query(),doesn’t get truncated and will be passed to the server-?
Can you please explain how this works-?
Also, I observed that kamailio is restricting the content-length of HTTP request to 256.
Is this something modifiable-? If so please guide me how this can be achieved.
Regards,
Agalya
_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-user s