Hi,

I'm using latest kamailio 5.6.2 and rtpengine.

I need to play announcement to both parties when call is answered by callee. Now I run play_media in event route but when audio start announcement sounds like we have a 50% packet loss. After it is completed there is no problem with audio both sides. I figured out that if i do block_media() my announcement play perfectly but i dont understand how to do unblock_audio() after announcement ends.

Appriciate any help!

here is my code:

                event_route[dialog:start]{

                xlog("L_INFO", "dialog started, received 200OK");

                block_media();

                play_media("all file=/usr/local/src/myfile.mp3");

                #unblock_media();

                }

--
Best Regards
Stepan Kislovich
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to