Dear Daniel & Kamailio'ns
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) :
if (is_method("INVITE")) { setflag(7); # Set the qos flag #if (has_sdp()) {
if(has_body("application/sdp")) {
if (rtpproxy_offer()) t_on_reply("1"); } else { t_on_reply("2"); } } #if (is_method("ACK") && has_sdp()) if (is_method("ACK") && has_body("application/sdp")) rtpproxy_answer(); .. .. onreply_route[1] { # if (has_sdp()) if(has_body("application/sdp")) rtpproxy_answer(); }
onreply_route[2] { # if (has_sdp()) if(has_body("application/sdp")) rtpproxy_offer(); }
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). And when i tried file transferring without running RTPPproxy service. files are getting transferring. but that gives problems for audio/video calls.
So anybody please help me in how to make it work for both MSRP&RTP packets.
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.
And please find the attachments of my Kamailio.cfg file and file transfer traffic capture (tcpdump based) with RTPproxy instance running and without running.
Any help will greatly appreciate.
Awaiting for somebody's help.
Regards Ravi
For file transfer you need an MSRP relay. AFAIK rtpproxy can not handle MSRP.
See the MRSP module
http://kamailio.org/docs/modules/4.1.x/modules/msrp.html
regards Klaus
On 29.01.2014 09:44, Wingsravi R wrote:
Dear Daniel & Kamailio'ns
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) :
if (is_method("INVITE")) { setflag(7); # Set the qos flag #if (has_sdp()) {
if(has_body("application/sdp")) { if (rtpproxy_offer()) t_on_reply("1"); } else { t_on_reply("2"); } } #if (is_method("ACK") && has_sdp()) if (is_method("ACK") && has_body("application/sdp")) rtpproxy_answer();
.. .. onreply_route[1] { # if (has_sdp()) if(has_body("application/sdp")) rtpproxy_answer(); }
onreply_route[2] { # if (has_sdp()) if(has_body("application/sdp")) rtpproxy_offer(); }
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). And when i tried file transferring without running RTPPproxy service. files are getting transferring. but that gives problems for audio/video calls.
So anybody please help me in how to make it work for both MSRP&RTP packets.
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.
And please find the attachments of my Kamailio.cfg file and file transfer traffic capture (tcpdump based) with RTPproxy instance running and without running.
Any help will greatly appreciate.
Awaiting for somebody's help.
Regards Ravi
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Dear Klaus,
Thank you for the reply,
Ya i will accept your suggestion that RTPproxy cannot handle MSRP content.
But in this context, how can i avoid/descriminate the INVITE's that contains MSRP frames to go through RTPproxy service, instead route that INVITE's (which contains MSRP frames) to MSRP event route block.
Even i enabled the following parameter : modparam("msrp", "sipmsg", 1)
with the above parameter, the MSRP module will build a SIP message from MSRP frame headers, providing it to event_route[msrp:frame-in].
Please help me in resolving this issue.
Awaiting your reply.
Regards, Ravi.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/File-transfering-problem-with-RTPpro... Sent from the Users mailing list archive at Nabble.com.
I have not used MSRP yet. But I guess you can detect MSRP by inspecting the SDP. USe the functions from textops module or sdpops module to check if the SDP is a normal call setup or an MSRP session.
regards Klaus
On 29.01.2014 13:13, Ravi wrote:
Dear Klaus,
Thank you for the reply,
Ya i will accept your suggestion that RTPproxy cannot handle MSRP content.
But in this context, how can i avoid/descriminate the INVITE's that contains MSRP frames to go through RTPproxy service, instead route that INVITE's (which contains MSRP frames) to MSRP event route block.
Even i enabled the following parameter : modparam("msrp", "sipmsg", 1)
with the above parameter, the MSRP module will build a SIP message from MSRP frame headers, providing it to event_route[msrp:frame-in].
Please help me in resolving this issue.
Awaiting your reply.
Regards, Ravi.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/File-transfering-problem-with-RTPpro... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Dear Klaus,
Thank you for the reply,
Ya sure i will try that functions of the modules what you mentioned and i will back to you.
Regards,
Ravi.
-- View this message in context: http://sip-router.1086192.n5.nabble.com/File-transfering-problem-with-RTPpro... Sent from the Users mailing list archive at Nabble.com.
Dear All,
I have gone through the SDPops and Textops modules, to get some ideas to diffrentiate MSRP frames in SDP body and route them to execute in Msrp event route block in kamailio script. But i didnt get any clues/ways to implement it out in script.
Please anybody help me in resolve this issue.
Your help will greatly appreciate.
Regards, Ravi
-- View this message in context: http://sip-router.1086192.n5.nabble.com/File-transfering-problem-with-RTPpro... Sent from the Users mailing list archive at Nabble.com.