<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hello guys,</div><div>    I googled the problem and came up with the following solution</div><div style="position: relative; zoom: 1;">request_route {</div><div style="position: relative; zoom: 1;">    ...</div><div style="position: relative; zoom: 1;">    if (rtpproxy_offer())</div><div style="position: relative; zoom: 1;">         t_on_reply("FORCE_RTPPROXY");</div><div style="position: relative; zoom: 1;">    rtpproxy_stream2uac("/etc/kamailio/moh/ivr-unavailable-8000.wav", "-1");</div><div style="position: relative; zoom: 1;">    t_newtran();</div><div style="position: relative; zoom: 1;">    http_async_query("url here", "HTTP_REPLY");</div><div style="position: relative; zoom: 1;">}</div><div style="position: relative; zoom: 1;"><br></div><div style="position: relative; zoom: 1;">route[HTTP_REPLY] {</div><div style="position: relative; zoom: 1;">    ...</div><div style="position: relative; zoom: 1;">    # forward the invite to ua2</div><div style="position: relative; zoom: 1;">}</div><div style="position: relative; zoom: 1;"><br></div><div style="position: relative; zoom: 1;">  on rtpproxy server,I got the following log:</div><div style="position: relative; zoom: 1;">    INFO:siy6BoTWsN-w8cTbn9lRfnQV08Atsp6i:rtpp_stream_handle_play: -1 times playing prompt /etc/kamailio/moh/ivr-unavailable-8000.wav codec 8: SSRC=0x74A2C220, seq=10235</div><div style="position: relative; zoom: 1;"><br></div><div style="position: relative; zoom: 1;"> However the caller has no audio, can anyone help?</div><div style="position: relative; zoom: 1;"><br></div><div style="position: relative; zoom: 1;">Thanks</div><br><div style="position:relative;zoom:1"><br><div style="clear:both"></div></div><div id="divNeteaseMailCard"></div><br>At 2017-11-14 18:04:13, "ÕÔ¹ú½Ü" <zhaoguojie2010@163.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="position:relative;zoom:1">Hello guys,<div style="clear:both"></div></div><div style="position:relative;zoom:1">    I have the following senario:</div><div style="position:relative;zoom:1">       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.</div><div style="position:relative;zoom:1">    My config file is like this:</div><div style="position:relative;zoom:1"><br></div><div style="position:relative;zoom:1">request_route {</div><div style="position:relative;zoom:1">    ...</div><div style="position:relative;zoom:1">    t_newtran();</div><div style="position:relative;zoom:1">    http_async_query("url here", "HTTP_REPLY");</div><div style="position:relative;zoom:1">}</div><div style="position:relative;zoom:1"><br></div><div style="position:relative;zoom:1">route[HTTP_REPLY] {</div><div style="position:relative;zoom:1">    ...</div><div style="position:relative;zoom:1">    # forward the invite to ua2</div><div style="position:relative;zoom:1">}</div><div style="position:relative;zoom:1">   how do i complete the config?</div><div style="position:relative;zoom:1"><br></div><div style="position:relative;zoom:1">Thanks</div></div><br><br><span title="neteasefooter"><p> </p></span></blockquote></div><br><br><span title="neteasefooter"><p> </p></span>