<div dir="ltr">Yes . This should happen . But I don't know the exact problem . What I explain is the way we are using rtpproxy .<div>This is clearly mention in the document also .. You can go through <a href="http://opensips.org">opensips.org</a> </div><div><br></div><div>This is what we are doing . Rest I am not an expertise in opensips . </div><div><pre class="" style="color:rgb(0,0,0);border:1px solid rgb(153,204,204);padding-left:15pt;background-color:rgb(254,254,238)">route {
...
if (is_method("INVITE")) {
if (has_body("application/sdp")) {
if (rtpproxy_offer())
t_on_reply("1");
} else {
t_on_reply("2");
}
}
if (is_method("ACK") && has_body("application/sdp"))
rtpproxy_answer();
...
}
onreply_route[1]
{
...
if (has_body("application/sdp"))
rtpproxy_answer();
...
}
onreply_route[2]
{
...
if (has_body("application/sdp"))
rtpproxy_offer();
...
}</pre></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="gmail_quote">On Tue, May 31, 2016 at 6:32 PM, Max Mühlbronner <span dir="ltr"><<a href="mailto:mm@42com.com" target="_blank">mm@42com.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Hi,<br>
<br>
<br>
@Miha: Are you sure that it does not automatically set the
rtpproxies for 200OK & ACK? <br>
<br>
@Sasmita: According to the documentation it is not necessary to
invoke engage_rtp_proxy() for replies as this is handled by the
dialog module.<br>
<br>
<br>
"Function must only be called for the initial INVITE and
internally takes care of rewriting the body of 200 OKs and ACKs. "<br>
<br>
<br>
<br>
Best Regards<br>
<br>
Max M.<span class=""><br>
<br>
<br>
On 31.05.2016 14:42, Miha wrote:<br>
</span></div>
<blockquote type="cite"><span class="">@Sasmita, totally clear :)
<br>
<br>
I asked wrong question :)
<br>
<br>
<br>
What is the difference between using engage_rtp_proxy() or using
rtpproxy_offer(), rtpproxy_answer()?
<br>
<br>
<br>
tnx
<br>
<br>
miha
<br>
<br>
<br>
On 31/05/2016 14:39, Sasmita Panda wrote:
<br>
</span><blockquote type="cite"><span class=""> If you are using in INVITE , then
it should be offer . Because firstly we are offering media to
someone . If its 200 Ok then it will be answer because the 2nd
party is answering the call .
<br>
<br>
If there is no sdp in INVITE but in ACK , then it will get
reversed . In 200 OK you should offer and in ACK you have to
answer .
<br>
This can be done in loop .
<br>
<br>
I hope I make you understand .
<br>
<br></span>
*/Thanks & Regards/*
<br>
/Sasmita Panda/
<br>
/Network Testing and Software Engineer/
<br>
/3CLogic , ph:07827611765/
<br><span class="">
<br>
On Tue, May 31, 2016 at 6:02 PM, Miha <<a href="mailto:miha@softnet.si" target="_blank">miha@softnet.si</a>
<a href="mailto:miha@softnet.si" target="_blank"><mailto:miha@softnet.si></a>> wrote:
<br>
<br>
ok tnx. I understand documentation on wrong way.
<br>
<br>
But then, what is the difference with using rtpproxy offer,
answer ?
<br>
<br>
<br>
br
<br>
<br>
mia
<br>
<br>
<br>
On 31/05/2016 14:17, Sasmita Panda wrote:
<br>
</span><blockquote type="cite"><span class=""> If there is sdp in ACK and u wanted
to engage rtp proxy , the
<br>
you have to write it inside ACK also ... By writing for
INVITE
<br>
cant help you to update ACK also . For 200 OK , you must
write it
<br>
in reply route .
<br>
<br></span>
*/Thanks & Regards/*
<br>
/Sasmita Panda/
<br>
/Network Testing and Software Engineer/
<br>
/3CLogic , ph:07827611765/
<br><span class="">
<br>
On Tue, May 31, 2016 at 5:35 PM, Johan De Clercq
<br></span><span class="">
<<a href="mailto:johan@democon.be" target="_blank">johan@democon.be</a> <a href="mailto:johan@democon.be" target="_blank"><mailto:johan@democon.be></a>>
wrote:
<br>
<br>
put it also in reply route.
<br>
<br>
2016-05-31 13:42 GMT+02:00 Miha <<a href="mailto:miha@softnet.si" target="_blank">miha@softnet.si</a>
<br></span>
<a href="mailto:miha@softnet.si" target="_blank"><mailto:miha@softnet.si></a>>:
<br><span class="">
<br>
HI
<br>
<br>
if I use engage_rtp_proxy(), I can use it only on
initial
<br>
INVITE and opensips should automatically rewritten
also
<br>
200 OK and ACK with SDP, right?
<br>
But when I am using this function, I can see from
trace
<br>
that only SDP for initial invite is rewritten, 200
ok
<br>
with sdp is not changed. Must I do something else?
<br>
<br>
Rtpproxy is not running in bridge mode.
<br>
<br>
<br>
tnx
<br>
miha
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Users mailing list
<br></span>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="mailto:Users@lists.opensips.org" target="_blank"><mailto:Users@lists.opensips.org></a>
<br><span class="">
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Users mailing list
<br></span>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="mailto:Users@lists.opensips.org" target="_blank"><mailto:Users@lists.opensips.org></a>
<br><span class="">
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Users mailing list
<br></span>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="mailto:Users@lists.opensips.org" target="_blank"><mailto:Users@lists.opensips.org></a>
<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
<br>
_______________________________________________
<br>
Users mailing list
<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="mailto:Users@lists.opensips.org" target="_blank"><mailto:Users@lists.opensips.org></a>
<br><span class="">
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
<br>
<br>
<br>
<br>
_______________________________________________
<br>
Users mailing list
<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
<br>
</span></blockquote><span class="">
<br>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</span></blockquote>
<br>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>