Hello Carsten,
The patch was applied just fine but I can't get that feature working. See
below:
[root@devel log]# rtpproxy -v
Basic version: 20040107
Extension 20050322: Support for multiple RTP streams and MOH
Extension 20060704: Support for extra parameter in the V command
Extension 20071116: Support for RTP re-packetization
Extension 20071218: Support for forking (copying) RTP stream
Extension 20080403: Support for RTP statistics querying
Extension 20081102: Support for setting codecs in the update/lookup command
Extension 20081224: Support for session timeout notifications
Extension 20090810: Support for automatic bridging
Extension 20100819: Support for timeout notifications using XML-RPC towards
Kamailio/sip-router.org
Using SR 3.1.2, my configuration file was exactly the same as the example in
test/ subdirectory you commit to rtpproxy module.
# RTP-Proxy
modparam("rtpproxy", "rtpproxy_sock", "udp:localhost:22222")
modparam("rtpproxy", "rtpproxy_tout", 3)
modparam("rtpproxy", "timeout_socket", "http://localhost:8000/RPC2")
# The Port for incoming XML-RPC requests
modparam("mi_xmlrpc", "port", 8000)
modparam("mi_xmlrpc", "reply_option", 1)
modparam("mi_xmlrpc", "buffer_size", 8192)
modparam("mi_xmlrpc", "log_file", "/tmp/openser_xmlrpc")
Still inside test/ subdir we have the following example:
[root@devel test]# cat exec_rtpproxy.txt
./rtpproxy -T 10 -f -F -i -l <your IP> -s udp:*:22222 -d DBUG
You mean that if XML-RPC is used, it has to begin with "xmlrpc:". I can't
see this string anywhere in these examples. I guess these files are not up
to date. Am I correct?
I can see the session timeout in RTPPROXY, but the session does not close.
If I understand right how this feature works, it should send a
"dlg_terminate_dlg + call-id" to send the BYE to both sides.
Any tip on what could be wrong?
Thanks,
Alexandre
-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em nome
de Carsten Bock
Enviada em: quinta-feira, 10 de fevereiro de 2011 20:53
Para: Alexandre Abreu
Cc: RTPproxy Development
Assunto: Re: RTPPROXY timeout patch.
Hi Alexandre,
i updated the patch in the sip-router-repository (and attached the patch to
this email). The new patch and the modifications to the rtpproxy module need
some more testing, i have only done basic functionality testing so far.
I have reduced the patch a little, the socket, if the XML-RPC-Interface is
used, has to begin with "xmlrpc:". This way, the protocol of the RTP-Proxy
stays intact.
If you have spare-time, please test it; otherwise, i will do it asap (but i
am travelling a lot next week).
@Maxim: This new version of the patch is much better, than the old one.
Maybe you can review this one? Thanks!
Carsten
2011/2/10 Carsten Bock <[email protected]>:
> Hi Alexandre,
>
> the current GIT-version contains some more modifications regarding
> timeout sockets.
> That is the reason why the patch does not work anymore.
> I will need to review the code and adapt my patch accordingly.
> I will do so later.
>
> Carsten
>
> 2011/2/2 Alexandre Abreu <[email protected]>:
>> Hi Carsten,
>>
>> The stable version of RTPProxy is indeed 1.2.1. In this version,
>> there is no file 'rtpp_notify.c' so I think the patch is really for
>> git-version. Maybe the original patch was made regarding to an earlier
git commit.
>>
>> Thanks,
>> Alexandre
>>
>> -----Mensagem original-----
>> De: [email protected] [mailto:[email protected]] Em
>> nome de Carsten Bock Enviada em: quarta-feira, 2 de fevereiro de 2011
>> 06:02
>> Para: Alexandre Abreu
>> Cc: RTPproxy Development
>> Assunto: Re: RTPPROXY timeout patch.
>>
>> Hi Alexandre,
>>
>> the patch was for the stable version of RTP-Proxy (1.2.1?). I will
>> review the patch for the git-version.
>> I am a little busy at the moment (business travel), so i can first do
>> this on friday or next week.
>>
>> Kind regards,
>> Carsten
>>
>> P.S.: Please always CC the list.
>>
>> 2011/2/1 Alexandre Abreu <[email protected]>:
>>> Hi Carsten,
>>>
>>>
>>>
>>> I am testing the new RTPProxy timeout feature in Kamailio (GIT version).
>>>
>>>
>>>
>>> Got the rtpproxy from GIT:
>>>
>>> git clone git://sippy.git.sourceforge.net/gitroot/sippy/rtpproxy
>>>
>>>
>>>
>>> I applied the patch:
>>>
>>> [root@devel rtpproxy]# patch < rtpproxy.patch
>>>
>>> patching file Makefile.am
>>>
>>> Hunk #1 FAILED at 4.
>>>
>>> 1 out of 1 hunk FAILED -- saving rejects to file Makefile.am.rej
>>>
>>> patching file config.h.in
>>>
>>> patching file configure.ac
>>>
>>> patching file rtpp_command.c
>>>
>>> Hunk #1 succeeded at 54 (offset 2 lines).
>>>
>>> Hunk #3 succeeded at 272 (offset 2 lines).
>>>
>>> Hunk #4 succeeded at 315 with fuzz 2.
>>>
>>> Hunk #5 FAILED at 466.
>>>
>>> Hunk #6 FAILED at 961.
>>>
>>> 2 out of 6 hunks FAILED -- saving rejects to file rtpp_command.c.rej
>>>
>>> patching file rtpp_notify.c
>>>
>>> Hunk #1 FAILED at 38.
>>>
>>> Hunk #2 succeeded at 263 (offset 78 lines).
>>>
>>> misordered hunks! output would be garbled
>>>
>>> Hunk #4 FAILED at 250.
>>>
>>> Hunk #5 FAILED at 337.
>>>
>>> 3 out of 5 hunks FAILED -- saving rejects to file rtpp_notify.c.rej
>>>
>>> patching file rtpp_notify.h
>>>
>>> Hunk #1 succeeded at 39 with fuzz 2 (offset 8 lines).
>>>
>>> patching file rtpp_session.c
>>>
>>> patching file rtpp_session.h
>>>
>>>
>>>
>>> As you see, not so clean but the files were patched.
>>>
>>>
>>>
>>> On CentOS 5, I cant find the LIBXMLRPC through YUM/RPM, so I
>>> compiled xmlrpc-c-1.06.41.tgz by hand:
>>>
>>>
>>>
>>> ./configure prefix=/usr && make && make install
>>>
>>> AND ./configure && make && make install
>>>
>>> With that, the headers are both on /usr/lib/include and
>>> /usr/local/lib/include (I did that just to be sure that the config
>>> wasnt looking at the wrong place).
>>>
>>>
>>>
>>> xmlrpc_abyss.h
>>>
>>> xmlrpc_cgi.h
>>>
>>> XmlRpcCpp.h
>>>
>>> xmlrpc_server.h
>>>
>>> xmlrpc_client.h
>>>
>>> xmlrpc.h
>>>
>>> xmlrpc_server_w32httpsys.h
>>>
>>>
>>>
>>> The configure script from patched RTPPROXY doesnt _try_ to find the
>>> LIBXMLRPC (theres no reference in config.log) and therefore my
>>> rtpproxy doesnt have the support for the timeout notification.
>>>
>>>
>>>
>>> Any comment on what could be wrong?
>>>
>>>
>>>
>>> Alexandre
>>
>>
>>
>> --
>> Carsten Bock
>> Schomburgstr. 80
>> 22767 Hamburg
>> Germany
>>
>> Mobile +49 179 2021244
>> Home +49 40 34927217
>> Büro (Verl) +49 5246 801427
>> Fax +49 40 34927218
>> mailto:[email protected]
>>
>>
>
>
>
> --
> Carsten Bock
> Schomburgstr. 80
> 22767 Hamburg
> Germany
>
> Mobile +49 179 2021244
> Home +49 40 34927217
> Büro (Verl) +49 5246 801427
> Fax +49 40 34927218
> mailto:[email protected]
>
--
Carsten Bock
Schomburgstr. 80
22767 Hamburg
Germany
Mobile +49 179 2021244
Home +49 40 34927217
Büro (Verl) +49 5246 801427
Fax +49 40 34927218
mailto:[email protected]
_______________________________________________
Devel mailing list
[email protected]
http://lists.rtpproxy.org/mailman/listinfo/devel