[SR-Users] Detect RTP stream end (Kamailio + rtpengine)
Rawad Kassir
rawad.kassir at antwerptechnologies.com
Wed May 11 13:31:08 CEST 2022
Hello,
I am trying to play early media purely relaying on kamailio and i have
accomplished that using the below:
rtpengine_manage();
append_to_reply("Content-Type: application/sdp\r\n");
$var(body)= $(rb{re.subst,/(IP4.).*/\127.0.0.1/g});
set_reply_body($var(body), "application/sdp");
send_reply("100","Trying");
send_reply("183","Session In Progress");
play_media("totag=$ft file=/home/rawad/test.wav");
My problem is that once the RTP stream starts the call is kept open so my
question is is there a way for kamailio to detect the end of rtp stream so
that i can send BYE or can kamailio do that automatically.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220511/7f585ee2/attachment.htm>
More information about the sr-users
mailing list