[OpenSIPS-Users] Set RTP timeouts from rtpproxy_answer/offer hasn't effect
Igor Pavlov
igor.pavlov1987 at gmail.com
Tue Nov 10 07:12:29 EST 2020
Hi all,
I am trying to setup different rtp timeouts for Caller and Callee with
rtpproxy. Here is flags from the docs:
tNN - can be used to specify a RTP ttl for the caller. The NN represents
> the timeout in seconds for that stream. This can be useful in music on hold
> scenarios where only one client is sending RTP.
>
> TNN - Similar to the tNN paramaeter, but used for tuning the calllee's ttl
> for RTP.
>
My code is:
loadmodule "rtpproxy.so"
modparam("rtpproxy", "rtpproxy_sock", "udp:localhost:6060")
modparam("rtpproxy", "rtpp_notify_socket", "tcp:127.0.0.1:6061")
if (is_method("INVITE")) {
t_on_branch("per_branch_ops");
t_on_reply("global");
t_on_failure("failure");
if (has_body("application/sdp")) {
rtpproxy_offer("ocnrT10t10");
}
}
onreply_route[global] {
if (has_body("application/sdp")) {
rtpproxy_answer("ocnrT10");
}
}
rtpproxy started as:
/usr/local/bin/rtpproxy -p /var/run/rtpproxy/rtpproxy.pid -s udp:127.0.0.1
6060 -u rtpproxy rtpproxy -n tcp:127.0.0.1:6061 -i -f -L 8192 -l 0.0.0.0 -m
10000 -M 40000 -d DBUG LOG_LOCAL5
So, the default rtpproxy TTL timer is 60 seconds and I'm trying to rewrite
it from the opensips.
If I drop RTP from one of the sides, then the call is hanged up after 60
seconds, but not 10 seconds.
Versions:
opensips 3.0.2 (x86_64/linux)
rtpproxy v2.1.1
--
Best regards,
Igor Pavlov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201110/fc925d88/attachment.html>
More information about the Users
mailing list