Hello
Yes I did. It generates two files: ivr-unavailable-8000.wav.0 and ivr-unavailable-8000.wav.8

ÔÚ 2017-11-16 15:50:05£¬"Rick Barenthin" <dunst0@gmail.com> дµÀ£º
Hello,

Did you have used the makeann from rtpproxy?

Quoting from manual:
"Instruct the RTPproxy to stream prompt/announcement pre-encoded with the makeann command from the RTPproxy distribution."

Am 15.11.2017 07:59 schrieb "ÕÔ¹ú½Ü" <zhaoguojie2010@163.com>:
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@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


 



 


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users