<div dir="auto"><div>Hello,</div><div dir="auto"><br></div><div dir="auto">Did you have used the makeann from rtpproxy?</div><div dir="auto"><br></div><div dir="auto">Quoting from manual:</div><div dir="auto">"<span style="text-align:justify">Instruct the RTPproxy to stream prompt/announcement pre-encoded with the makeann command from the RTPproxy distribution."</span><br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">Am 15.11.2017 07:59 schrieb "赵国杰" <<a href="mailto:zhaoguojie2010@163.com">zhaoguojie2010@163.com</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="zoom:1">request_route {</div><div style="zoom:1">    ...</div><div style="zoom:1">    if (rtpproxy_offer())</div><div style="zoom:1">         t_on_reply("FORCE_RTPPROXY");</div><div style="zoom:1">    rtpproxy_stream2uac("/etc/<wbr>kamailio/moh/ivr-unavailable-<wbr>8000.wav", "-1");</div><div class="quoted-text"><div style="zoom:1">    t_newtran();</div><div style="zoom:1">    http_async_query("url here", "HTTP_REPLY");</div><div style="zoom:1">}</div><div style="zoom:1"><br></div><div style="zoom:1">route[HTTP_REPLY] {</div><div style="zoom:1">    ...</div><div style="zoom:1">    # forward the invite to ua2</div><div style="zoom:1">}</div><div style="zoom:1"><br></div></div><div style="zoom:1">  on rtpproxy server,I got the following log:</div><div style="zoom:1">    INFO:siy6BoTWsN-<wbr>w8cTbn9lRfnQV08Atsp6i:rtpp_<wbr>stream_handle_play: -1 times playing prompt /etc/kamailio/moh/ivr-<wbr>unavailable-8000.wav codec 8: SSRC=0x74A2C220, seq=10235</div><div style="zoom:1"><br></div><div style="zoom:1"> However the caller has no audio, can anyone help?</div><div style="zoom:1"><br></div><div style="zoom:1">Thanks</div><div class="elided-text"><br><div style="zoom:1"><br><div style="clear:both"></div></div><div id="m_5007579812715307314divNeteaseMailCard"></div><br>At 2017-11-14 18:04:13, "赵国杰" <<a href="mailto:zhaoguojie2010@163.com" target="_blank">zhaoguojie2010@163.com</a>> wrote:<br> <blockquote id="m_5007579812715307314isReplyContent" 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="zoom:1">Hello guys,<div style="clear:both"></div></div><div style="zoom:1">    I have the following senario:</div><div style="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="zoom:1">    My config file is like this:</div><div style="zoom:1"><br></div><div style="zoom:1">request_route {</div><div style="zoom:1">    ...</div><div style="zoom:1">    t_newtran();</div><div style="zoom:1">    http_async_query("url here", "HTTP_REPLY");</div><div style="zoom:1">}</div><div style="zoom:1"><br></div><div style="zoom:1">route[HTTP_REPLY] {</div><div style="zoom:1">    ...</div><div style="zoom:1">    # forward the invite to ua2</div><div style="zoom:1">}</div><div style="zoom:1">   how do i complete the config?</div><div style="zoom:1"><br></div><div style="zoom:1">Thanks</div></div><br><br><span title="neteasefooter"><p> </p></span></blockquote></div></div><br><br><span title="neteasefooter"><p> </p></span><br>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br></div></div></div>