Hello guys,
I googled the problem and came up with the following solution
request_route {
...
if (rtpproxy_offer())
t_on_reply("FORCE_RTPPROXY");
rtpproxy_stream2uac("/etc/kamailio/moh/ivr-unavailable-8000.wav",
"-1");
t_newtran();
http_async_query("url here", "HTTP_REPLY");
}
route[HTTP_REPLY] {
...
# forward the invite to ua2
}
on rtpproxy server,I got the following log:
INFO:siy6BoTWsN-w8cTbn9lRfnQV08Atsp6i:rtpp_stream_handle_play: -1 times playing prompt
/etc/kamailio/moh/ivr-unavailable-8000.wav codec 8: SSRC=0x74A2C220, seq=10235
However the caller has no audio, can anyone help?
Thanks
At 2017-11-14 18:04:13, "赵国杰" <zhaoguojie2010(a)163.com> wrote:
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