[SR-Users] play music while processing a http request

赵国杰 zhaoguojie2010 at 163.com
Tue Nov 14 11:04:13 CET 2017


Hello guys,
    I have the following senario:
       ua1 calls ua2. when the INVITE reaches the kamailio, before foward to ua2, kamailio has to do a http request using  “http_async_query”. However, the http request can take a really long time. I want the kamailio start playing music when the http request is sent and stop the music when the http response is received.
    My config file is like this:


request_route {
    ...
    t_newtran();
    http_async_query("url here", "HTTP_REPLY");
}


route[HTTP_REPLY] {
    ...
    # forward the invite to ua2
}
   how do i complete the config?


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171114/523b0ca8/attachment.html>


More information about the sr-users mailing list