<div dir="ltr"><div><div><div><div><div><div>Dear Daniel & Kamailio'ns<br></div><div><br></div>I
am working on File transferring feature between two SIP clients
(IMSDroid). I have configured Kamailio (4.0.4) sever with RTPproxy to
get the through NAT traversal of audio/videov calls. so fro that i added
a script in kamailio.cfg as like below (Forced all INVITES through
RTPproxy) :<br><br>if (is_method("INVITE")) { <br> setflag(7); # Set the qos flag<br> #if (has_sdp()) {<br><br> if(has_body("application/sdp")) {<br><br> if (rtpproxy_offer())<br>
t_on_reply("1");<br> } else {<br> t_on_reply("2");<br> }<br> }<br> #if (is_method("ACK") && has_sdp())<br> if (is_method("ACK") && has_body("application/sdp"))<br>
rtpproxy_answer();<br>..<br>..<br>onreply_route[1] {<br># if (has_sdp())<br> if(has_body("application/sdp"))<br> rtpproxy_answer();<br>}<br><br>onreply_route[2] {<br># if (has_sdp())<br> if(has_body("application/sdp"))<br>
rtpproxy_offer();<br>}<br><br></div>But
now when i am trying for File transferring (As per RFC 4975, Session
mode IM) their INVITEs are also passing through RTPProxy service, which
is dropping MSRP contents and with that Files are not getting
transferring (But session is establishing between two clients). <br></div>And
when i tried file transferring without running RTPPproxy service. files
are getting transferring. but that gives problems for audio/video
calls.<br><br></div>So anybody please help me in how to make it work for both MSRP&RTP packets.<br><br></div>I
mean how can i modify the script so that INVITE messges contains
MSRP-RTP contents can be descriminate in the script, and then they can
execute their respective blocks of scripts.<br><br></div>And please find
the attachments of my Kamailio.cfg file and file transfer traffic
capture (tcpdump based) with RTPproxy instance running and without running. <br><div><div><div><div> <br></div><div>Any help will greatly appreciate.<br><br>Awaiting for somebody's help.<br><br></div><div>Regards<br>
</div><div>Ravi<br></div><div><div><br></div></div></div></div></div></div>