[OpenSIPS-Users] RTP Proxy problem
Wesley Volcov
wesleyvolcov at gmail.com
Tue Dec 11 14:35:58 CET 2012
Dear all,
I could fix the rtpproxy problem, it was a compilation problem.
But now, I'm having a audio problem.
Let me explain:
I have a Opensips with 2 IP addres, a public one (200.0.0.1) and a private
one (10.0.0.1).
The orignation endppint is in the private network (IP TEL), the PSTN
gateway is in the public network.
I receive a call from the IP TEL and send it to the gateway.
In the INVITE that the Opensips sends to the PSTN gateway, I see the Public
IP in the CIN parameter, but in the 200 OK that the Opensips sends to the
TEL IP I see the public IP to, and call goes to one way audio.
The Opensips should send the private IP in the 200OK to the IP TEL.
RTPPROXY run command: /usr/local/bin/rtpproxy -l 200.0.0.1 10.0.0.1 -s
udp:127.0.0.1 7890 -F -m 10000 -M 20000 -d DBUG
Opensips:
if (is_method("INVITE")){
rtpproxy_offer("","200.0.0.1");
}
onreply_route [ONREPLY] {
rtpproxy_answer("","10.0.0.1");
}
I've tried some parametes in the rtpproxy like FW, I, E, but I had the same
result.
I'am missing some thing?
Please, help me guys.
Thanks a lot
On 1 December 2012 03:05, SamyGo <govoiper at gmail.com> wrote:
> Hi,
> The issue is with the command you are using to start RTPproxy. Missing a :
> between 127.0.0.1 and 7890. So now you may not see RTPproxy on netstat
> output.
> Regards,
> Sammy
> On Dec 1, 2012 12:30 AM, "Răzvan Crainea" <razvan at opensips.org> wrote:
>
>> Hi, Wesley!
>>
>> Have you tried tracing the communication opensips has with rtpproxy
>> (listen with ngrep on port 7890). Are you sure rtpproxy is bound on the
>> correct IP and port (check with netstat -ulpn | grep rtpproxy). Have you
>> tried enabling rtpproxy debugging to see if something reaches the server
>> (start rtpproxy with -d DBUG).
>>
>> Regards,
>>
>> Razvan Crainea
>> OpenSIPS Core Developerhttp://www.opensips-solutions.com
>>
>> On 11/30/2012 08:06 PM, Wesley Volcov wrote:
>>
>> Dear all,
>>
>> I've tried to downgrade the opensips version, and use the nathelper
>> module, but I still see the error.
>>
>> RTPPROXY run command: /usr/local/bin/rtpproxy -l public_ip -s udp:127.0.0.1
>> 7890 -F -m 10000 -M 20000
>>
>> Opensips configuration: modparam("nathelper", "rtpproxy_sock", "udp:
>> 127.0.0.1:7890")
>>
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10695]:
>> ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10699]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10707]:
>> ERROR:nathelper:send_rtpp_command: can't send command to a RTP proxy
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10679]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10682]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10678]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10684]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10686]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10687]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10690]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>> Nov 30 17:05:25 localhost /usr/local/sbin/opensips[10691]:
>> ERROR:nathelper:send_rtpp_command: proxy <udp:127.0.0.1:7890> does not
>> respond, disable it
>>
>> Am I missing some thing?
>>
>> Please, helpe me.
>>
>> Regards,
>>
>> Wesley Volcov
>>
>> On 29 November 2012 08:28, Wesley Volcov <wesleyvolcov at gmail.com> wrote:
>>
>>> Dear Răzvan,
>>> *
>>> *
>>> Thanks you for helping me!
>>>
>>> I changed the modparam to: modparam("rtpproxy", "rtpproxy_sock", "udp:
>>> 127.0.0.1:7890")
>>>
>>> And the rtpproxy run command: /usr/local/bin/rtpproxy -lpublic_ip -s
>>> udp:127.0.0.1 7890 -F -m 10000 -M 20000
>>>
>>> And I still see this:
>>>
>>> Nov 29 08:25:42 opensips /usr/local/sbin/opensips[5996]:
>>> WARNING:rtpproxy:rtpp_test: support for RTP proxy <udp:127.0.0.1:7890>
>>> has been disabled temporarily
>>> Nov 29 08:25:42 opensips /usr/local/sbin/opensips[5994]:
>>> WARNING:rtpproxy:rtpp_test: can't get version of the RTP proxy
>>>
>>> Any idea?
>>>
>>> Regards,
>>>
>>> Wesley Volcov
>>>
>>> On 28 November 2012 16:02, Răzvan Crainea <razvan at opensips.org> wrote:
>>>
>>>> Hi, Wesley!
>>>>
>>>> The idea is that RTPProxy is listening only on localhost, whereas
>>>> OpenSIPS tries to connect to a different IP (rather than 127.0.0.1). You
>>>> should either allow RTPProxy to listen on that IP (change the -s parameter,
>>>> but this is not recommended because of security issues) or configure
>>>> OpenSIPS to connect using 127.0.0.1.
>>>> Are you using the DB to provision the RTPProxy sockets? Because if you
>>>> do, there is no need of the "rtpproxy_sock" modparam, you should change the
>>>> IP directly in the database.
>>>>
>>>> Regards,
>>>>
>>>> Razvan Crainea
>>>> OpenSIPS Core Developerhttp://www.opensips-solutions.com
>>>>
>>>> On 11/28/2012 05:53 PM, Wesley Volcov wrote:
>>>>
>>>> Dear Răzvan,
>>>> *
>>>> *
>>>> I tried to change the modparam configuration, to the ip_addres, and
>>>> also the rtpproxy listen addres to localhost, and it still the same problem.
>>>>
>>>> Regards,
>>>>
>>>> Wesley Volcov
>>>>
>>>> On 28 November 2012 12:31, Răzvan Crainea <razvan at opensips.org> wrote:
>>>>
>>>>> Hi, Wesley!
>>>>>
>>>>> I see that your modparam contains the "localhost" ip, however, the
>>>>> OpenSIPS warning contains the "ip_address". Is this "ip_address"
>>>>> "127.0.0.1"? Because if it is not, then it means that the rtpproxy_sock is
>>>>> set to a different value - either by overwriting the parameter, or by using
>>>>> the DB provisioning mode. Most likely it doesn't work because OpenSIPS is
>>>>> trying to connect to rtpproxy on a public IP, whereas RTPProxy only listens
>>>>> on localhost.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Razvan Crainea
>>>>> OpenSIPS Core Developerhttp://www.opensips-solutions.com
>>>>>
>>>>> On 11/28/2012 02:25 PM, Wesley Volcov wrote:
>>>>>
>>>>> Dear all,
>>>>>
>>>>> I'm having problems with my Opensips + RTP Proxy instalation.
>>>>>
>>>>> Opensips version: 1.7.2-notls
>>>>> RTP Proxy version: 1.2.1
>>>>>
>>>>> Start RTP Proxy command: /usr/local/bin/rtpproxy -l ip_address -s
>>>>> udp:127.0.0.1 7890 <127.0.0.1%207890> -F -m 10000 -M 20000
>>>>>
>>>>> Opensips configuration for RTP Proxy: modparam("rtpproxy",
>>>>> "rtpproxy_sock", "udp:localhost:7890")
>>>>>
>>>>> When I start the Opensips service, it logs this message:
>>>>>
>>>>> Nov 28 10:56:10 opensips /usr/local/sbin/opensips[2687]:
>>>>> WARNING:rtpproxy:rtpp_test: can't get version of the RTP proxy
>>>>> Nov 28 10:56:10 opensips /usr/local/sbin/opensips[2687]:
>>>>> WARNING:rtpproxy:rtpp_test: support for RTP proxy <udp:ip_address:7890> has
>>>>> been disabled temporarily
>>>>>
>>>>> What could it be? Please, help me!
>>>>>
>>>>> Regards
>>>>> --
>>>>> Wesley Volcov
>>>>> Email: wesleyvolcov at gmail.com
>>>>> Messenger: volcov at live.com
>>>>> Skype: wesley.volcov
>>>>> Mobile: +55 11 7999-7444 <%2B55%2011%207999-7444>
>>>>> Website: http://volcov.blogspot.com
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opensips.org
>>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Wesley Volcov
>>>> Email: wesleyvolcov at gmail.com
>>>> Messenger: volcov at live.com
>>>> Skype: wesley.volcov
>>>> Mobile: +55 11 7999-7444 <%2B55%2011%207999-7444>
>>>> Website: http://volcov.blogspot.com
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>
>>>
>>> --
>>> Wesley Volcov
>>> Email: wesleyvolcov at gmail.com
>>> Messenger: volcov at live.com
>>> Skype: wesley.volcov
>>> Mobile: +55 11 7999-7444 <%2B55%2011%207999-7444>
>>> Website: http://volcov.blogspot.com
>>>
>>
>>
>>
>> --
>> Wesley Volcov
>> Email: wesleyvolcov at gmail.com
>> Messenger: volcov at live.com
>> Skype: wesley.volcov
>> Mobile: +55 11 7999-7444
>> Website: http://volcov.blogspot.com
>>
>>
>> _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Wesley Volcov
Email: wesleyvolcov at gmail.com
Messenger: volcov at live.com
Skype: wesley.volcov
Mobile: +55 11 7999-7444
Website: http://volcov.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121211/c06305cc/attachment-0001.htm>
More information about the Users
mailing list