|
@@ -754,7 +754,7 @@ route[RTPPROXY] {
|
|
if (is_method("BYE")) {
|
|
if (is_method("BYE")) {
|
|
unforce_rtp_proxy();
|
|
unforce_rtp_proxy();
|
|
} else if (is_method("INVITE")){
|
|
} else if (is_method("INVITE")){
|
|
- force_rtp_proxy();
|
|
|
|
|
|
+ rtpproxy_offer();
|
|
}
|
|
}
|
|
if (!has_totag()) add_rr_param(";nat=yes");
|
|
if (!has_totag()) add_rr_param(";nat=yes");
|
|
#!endif
|
|
#!endif
|
|
@@ -853,7 +853,7 @@ onreply_route[REPLY_ONE] {
|
|
#!ifdef WITH_NAT
|
|
#!ifdef WITH_NAT
|
|
if ((isflagset(FLT_NATS) || isbflagset(FLB_NATB))
|
|
if ((isflagset(FLT_NATS) || isbflagset(FLB_NATB))
|
|
&& status=~"(183)|(2[0-9][0-9])") {
|
|
&& status=~"(183)|(2[0-9][0-9])") {
|
|
- force_rtp_proxy();
|
|
|
|
|
|
+ rtpproxy_answer();
|
|
}
|
|
}
|
|
if (isbflagset("6")) {
|
|
if (isbflagset("6")) {
|
|
fix_nated_contact();
|
|
fix_nated_contact();
|