Just out of curiosity, could you please share your
config file?
If I don't do the NAT detection and try using the function force_rtp_proxy and cannot
hear sound in any direction, the called gets disconnected and see the following in the
log
Mar 26 14:15:11 openser /usr/sbin/openser[19389]: ONREPLY_ROUTE
Mar 26 14:15:11 openser /usr/sbin/openser[19389]: ERROR:nathelper:extract_body: message
body has length zero
Mar 26 14:15:11 openser /usr/sbin/openser[19389]: ERROR:nathelper:force_rtp_proxy2_f:
can't extract body from the message
From the log it appears that you are trying to read the SDP from a SIP
message that does not contain an SDP. You might have to qualify your
force_rtp_proxy() call with an appropriate 'if' statement.
Regards,
Vikram.
Regards
Héctor
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: Freitag, 26. März 2010 14:08
To: Ortiz Héctor, SCS-SIS-ICC-SPC-SBU
Cc: users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] Recording RTP session
Am 26.03.2010 12:15, schrieb Hector.Ortiz(a)swisscom.com:
Hi, I solved my issue. There was nothing wrong
with my configuration.
RTPProxy wasn't being enforced because the SIP Phone wasn't being detected as
being behind NAT.
This is why I always remove NAT-detection as I want the rtpproxy in all
cases.
regards
klaus
I disabled SIP ALG on my ADSL Modem and now
RTPProxy is being enforced and I'm able to do the recording. Now I have to find out
how can I play the stored audio.
Thanks for your help
Héctor
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: Dienstag, 23. März 2010 16:01
To: Ortiz Héctor, SCS-SIS-ICC-SPC-SBU
Cc: users(a)lists.kamailio.org
Subject: Re: [Kamailio-Users] Recording RTP session
Am 23.03.2010 09:57, schrieb Hector.Ortiz(a)swisscom.com:
How can I then troubleshoot that it is really
enforcing it?
You have to put xlog() statements in your config (e.g. after an if
()
statement in the blocks) and then watch syslog for the xlog messages -
this is the way how you trace how a message is processed by the script.
btw: if you always want to enforce the media relay then remove the if()
conditions before the force_rtp_proxy calls.
klaus
_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users