Hello,
I'm working with rtpproxy module for managing calls to a particular route.
The thing is that for some calls, the "Connection information" is not rewritten properly whereas another calls, less than 1 second before or after, are properly rewritten.
When "cr_route" defines that the call must be route to this carrier, I go to a route in order to make some change:
- Keep only PCMA, PCMU, G729a and telephone-event
- Depends on the R-URI:
o If the uri contains IP addresses or domain name of the carrier: rtpproxy_manage("iefrcoz20","<CARRIER_IP_ADDRESS");
o else : rtpproxy_manage("eifrcoz20");
Kamailio listens on <CARRIER_IP_ADDRESS> and also on an internal one.
A dedicated instance of RTPProxy runs with the following option: "-l <INTERNAL_IP_ADDRESS>/<CARRIER_IP_ADDRESS>".
The idea is to tell to my customers to send their RTP to the internal IP address, and to tell to the carrier to send the RTP to the IP address that they have attributed to me.
For hundred and hundred calls, this mechanism is working fine. But sometimes, no, the SDP remains as the original one.
I don't know how to diagnose this. Could it be a saturation of RTPProxy?
Regards,
Igor.
Hello,
In addition: the behaviour looks to occur when there is many calls to be treated.
Looking at /var/log/messages, I can see thousand of this message:
incorrect port 0 in reply from rtp proxy
At this time, where the flow is more low, no more errors and every calls are properly rewritten.
Regards,
Igor.
De : Igor Potjevlesch [mailto:igor.potjevlesch@gmail.com] Envoyé : lundi 27 octobre 2014 11:47 À : sr-users@lists.sip-router.org Objet : rtpproxy_manage fails to rewrite SDP
Hello,
Im working with rtpproxy module for managing calls to a particular route.
The thing is that for some calls, the Connection information is not rewritten properly whereas another calls, less than 1 second before or after, are properly rewritten.
When cr_route defines that the call must be route to this carrier, I go to a route in order to make some change:
- Keep only PCMA, PCMU, G729a and telephone-event
- Depends on the R-URI:
o If the uri contains IP addresses or domain name of the carrier: rtpproxy_manage("iefrcoz20","<CARRIER_IP_ADDRESS");
o else : rtpproxy_manage("eifrcoz20");
Kamailio listens on <CARRIER_IP_ADDRESS> and also on an internal one.
A dedicated instance of RTPProxy runs with the following option: -l <INTERNAL_IP_ADDRESS>/<CARRIER_IP_ADDRESS>.
The idea is to tell to my customers to send their RTP to the internal IP address, and to tell to the carrier to send the RTP to the IP address that they have attributed to me.
For hundred and hundred calls, this mechanism is working fine. But sometimes, no, the SDP remains as the original one.
I dont know how to diagnose this. Could it be a saturation of RTPProxy?
Regards,
Igor.
Hello,
I have seen that the problem can occur due to the kernel limitation.
So, I have changed the local_port range to be sure that they include the port range of RTPProxy.
But, I still not explain this limitation. Because, even with the kernel limitation, they should be have sufficient number of ports to allocate.
Any idea? Thanks.
Regards,
Igor.
De : Igor Potjevlesch [mailto:igor.potjevlesch@gmail.com] Envoyé : lundi 27 octobre 2014 12:21 À : sr-users@lists.sip-router.org Objet : RE: rtpproxy_manage fails to rewrite SDP
Hello,
In addition: the behaviour looks to occur when there is many calls to be treated.
Looking at /var/log/messages, I can see thousand of this message:
incorrect port 0 in reply from rtp proxy
At this time, where the flow is more low, no more errors and every calls are properly rewritten.
Regards,
Igor.
De : Igor Potjevlesch [ mailto:igor.potjevlesch@gmail.com mailto:igor.potjevlesch@gmail.com] Envoyé : lundi 27 octobre 2014 11:47 À : mailto:sr-users@lists.sip-router.org sr-users@lists.sip-router.org Objet : rtpproxy_manage fails to rewrite SDP
Hello,
Im working with rtpproxy module for managing calls to a particular route.
The thing is that for some calls, the Connection information is not rewritten properly whereas another calls, less than 1 second before or after, are properly rewritten.
When cr_route defines that the call must be route to this carrier, I go to a route in order to make some change:
- Keep only PCMA, PCMU, G729a and telephone-event
- Depends on the R-URI:
o If the uri contains IP addresses or domain name of the carrier: rtpproxy_manage("iefrcoz20","<CARRIER_IP_ADDRESS");
o else : rtpproxy_manage("eifrcoz20");
Kamailio listens on <CARRIER_IP_ADDRESS> and also on an internal one.
A dedicated instance of RTPProxy runs with the following option: -l <INTERNAL_IP_ADDRESS>/<CARRIER_IP_ADDRESS>.
The idea is to tell to my customers to send their RTP to the internal IP address, and to tell to the carrier to send the RTP to the IP address that they have attributed to me.
For hundred and hundred calls, this mechanism is working fine. But sometimes, no, the SDP remains as the original one.
I dont know how to diagnose this. Could it be a saturation of RTPProxy?
Regards,
Igor.
On 10/28/14 09:18, Igor Potjevlesch wrote:
Hello,
I have seen that the problem can occur due to the kernel limitation.
So, I have changed the local_port range to be sure that they include the port range of RTPProxy.
But, I still not explain this limitation. Because, even with the kernel limitation, they should be have sufficient number of ports to allocate.
Any idea? Thanks.
It could be that the maximum number of file descriptors allowed for the process has been reached. You can try executing "ulimit -n 60000" before starting the RTP proxy daemon. Just a guess. In any case, the daemon should log an error if it fails to open or allocate a port. If it doesn't, you can try hooking into the running process with strace to see what's going on.
HTH cheers
Hello Richard,
Thank you for your suggestion. I set "ulimit -n 60000" on the server. I will restart rtpproxy tonight and see if there are new errors tomorrow.
Regards,
Igor.
-----Message d'origine----- De : sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] De la part de Richard Fuchs Envoyé : mardi 28 octobre 2014 16:53 À : sr-users@lists.sip-router.org Objet : Re: [SR-Users] rtpproxy_manage fails to rewrite SDP
On 10/28/14 09:18, Igor Potjevlesch wrote:
Hello,
I have seen that the problem can occur due to the kernel limitation.
So, I have changed the local_port range to be sure that they include the port range of RTPProxy.
But, I still not explain this limitation. Because, even with the kernel limitation, they should be have sufficient number of ports to
allocate.
Any idea? Thanks.
It could be that the maximum number of file descriptors allowed for the process has been reached. You can try executing "ulimit -n 60000" before starting the RTP proxy daemon. Just a guess. In any case, the daemon should log an error if it fails to open or allocate a port. If it doesn't, you can try hooking into the running process with strace to see what's going on.
HTH cheers
_______________________________________________ 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
Hello,
I done the manipulation. I still have some errors "incorrect port 0 in reply from rtp proxy" with a moderate flow of calls.
I don't really know where to look at for solve this issue.
Any other ideas? Thank you.
Regards,
Igor.
-----Message d'origine----- De : Igor Potjevlesch [mailto:igor.potjevlesch@gmail.com] Envoyé : mardi 28 octobre 2014 18:26 À : 'Kamailio (SER) - Users Mailing List' Objet : RE: [SR-Users] rtpproxy_manage fails to rewrite SDP
Hello Richard,
Thank you for your suggestion. I set "ulimit -n 60000" on the server. I will restart rtpproxy tonight and see if there are new errors tomorrow.
Regards,
Igor.
-----Message d'origine----- De : sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] De la part de Richard Fuchs Envoyé : mardi 28 octobre 2014 16:53 À : sr-users@lists.sip-router.org Objet : Re: [SR-Users] rtpproxy_manage fails to rewrite SDP
On 10/28/14 09:18, Igor Potjevlesch wrote:
Hello,
I have seen that the problem can occur due to the kernel limitation.
So, I have changed the local_port range to be sure that they include the port range of RTPProxy.
But, I still not explain this limitation. Because, even with the kernel limitation, they should be have sufficient number of ports to
allocate.
Any idea? Thanks.
It could be that the maximum number of file descriptors allowed for the process has been reached. You can try executing "ulimit -n 60000" before starting the RTP proxy daemon. Just a guess. In any case, the daemon should log an error if it fails to open or allocate a port. If it doesn't, you can try hooking into the running process with strace to see what's going on.
HTH cheers
_______________________________________________ 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