After resolving the incorrect rtp proxy -l flag, i'm still having a
hard time getting two way audio behind a router.
What I have in my config is the following:
./rtpproxy -s udp:127.0.0.1:7789 -l 192.168.2.102 -m 10000 -M 20000 -u
root root -F -d INFO LOG_LOCAL0
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7789")
route{
....
if (is_method("INVITE") && has_totag())
engage_rtp_proxy("ie","192.168.2.102");
if (is_method("ACK") && has_body("application/sdp")) rtpproxy_answer();
....
}
route[1] {
if (is_method("INVITE")) {
xlog("Start Call for route [ fu=$fu/ tu=$tu /ru=$ru/ ci=$ci]");
if (has_body("application/sdp")) {
if (rtpproxy_offer("ie","192.168.2.102"))
t_on_reply("1");
else t_on_reply("2");
}
t_on_branch("2");
t_on_failure("1");
}
...
}
onreply_route[1] {
xlog("incoming reply\n");
if (has_body("application/sdp")) rtpproxy_answer();
exit;
}
onreply_route[2] {
xlog("incoming reply\n");
if (has_body("application/sdp")) rtpproxy_offer();
exit;
}
I do have two way audio once every 30-50 calls, but cannot pin any
combination that would keep things
working. Outgoing audio always works. I really appreciate any help on this.
Kind Regards,
Nick.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users