<a href="http://www.smartvox.co.uk/serfaq_install_mediaproxy2.htm">http://www.smartvox.co.uk/serfaq_install_mediaproxy2.htm</a><br><br><div class="gmail_quote">2010/4/5 Richard Revels <span dir="ltr"><<a href="mailto:rrevels@bandwidth.com">rrevels@bandwidth.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Here is the process I used with an up to date CentOS 5.4 server<br>
<br>
wget <a href="http://download.ag-projects.com/MediaProxy/mediaproxy-2.4.2.tar.gz" target="_blank">http://download.ag-projects.com/MediaProxy/mediaproxy-2.4.2.tar.gz</a><br>
tar -xzf mediaproxy-2.4.2.tar.gz<br>
cd mediaproxy-2.4.2<br>
yum install python-tools.x86_64 python-twisted-core.x86_64 python-zope-interface.x86_64 python.x86_64 python-ctypes.x86_64<br>
easy_install -U setuptools<br>
easy_install <a href="http://pypi.python.org/packages/source/p/python-application/python-application-1.1.5.tar.gz" target="_blank">http://pypi.python.org/packages/source/p/python-application/python-application-1.1.5.tar.gz</a><br>
easy_install python-cjson<br>
cd ../<br>
wget <a href="http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2" target="_blank">http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2</a><br>
bunzip2 gnutls-2.8.6.tar.bz2<br>
tar -xf gnutls-2.8.6.tar<br>
cd gnutls-2.8.6<br>
yum install libgcrypt<br>
./configure<br>
make install<br>
cd ../mediaproxy-2.4.2<br>
easy_install python-gnutls==1.1.8<br>
yum install libnetfilter_conntrack-devel.x86_64<br>
./build_inplace<br>
<br>
<br>
And unfortunately, here is the latest error I am getting when trying to run the media-dispatcher:<br>
<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: Log opened.<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: Starting MediaProxy Dispatcher 2.4.2<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: Twisted is using selectreactor<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: fatal error: failed to create MediaProxy Dispatcher: Objects/dictobject.c:533: bad argument to internal function<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: Traceback (most recent call last):<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: --- <exception caught here> ---<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "./media-dispatcher", line 62, in ?<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: dispatcher = Dispatcher()<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "/usr/local/src/mediaproxy-2.4.2/mediaproxy/dispatcher.py", line 527, in __init__<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: self.cred = X509Credentials(cert_name='dispatcher')<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "/usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py", line 132, in __init__<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: twisted.X509Credentials.__init__(self, self.X509cert, self.X509key, [self.X509ca], [self.X509crl])<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "/usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py", line 99, in __get__<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: return descriptor.get()<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "/usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py", line 82, in get<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: self.object = self.klass(f.read())<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "<string>", line 1, in __init__<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]:<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "build/bdist.linux-x86_64/egg/gnutls/validators.py", line 273, in check_args<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]:<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "build/bdist.linux-x86_64/egg/gnutls/crypto.py", line 83, in __init__<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]:<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: File "/usr/lib64/python2.4/site-packages/ctypes/__init__.py", line 453, in cast<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: return _cast(obj, obj, typ)<br>
Apr 5 18:32:31 ip-30 media-dispatcher[22909]: exceptions.SystemError: Objects/dictobject.c:533: bad argument to internal function<br>
<br>
Any guidance you can give to resolve this (outside of "stop using Cent") would be appreciated.<br>
<font color="#888888"><br>
Richard<br>
</font><div><div></div><div class="h5"><br>
<br>
On Mar 23, 2010, at 4:02 AM, Saúl Ibarra Corretgé wrote:<br>
<br>
> Hi,<br>
><br>
> On 22/3/10 8:40 PM, Julien Chavanton wrote:<br>
>> Hi, I have some problem with installing / running mediaproxy on FC7<br>
>> I have also tried mediaproxy-2.4.2, but then I revert to the latest<br>
>> working version I have deployed<br>
>> /usr/bin/media-relay --no-fork<br>
>> Starting MediaProxy Relay 2.3.6<br>
>> Segmentation fault<br>
>> I would like to install in on Debian, but I need to make it work on FC7<br>
>> or CentOS5<br>
>> I can see the problem, is there a suggested way to debug ?<br>
>> -------------------------------------------------<br>
>> try:<br>
>> from mediaproxy.relay import MediaRelay<br>
>> if not options.fork:<br>
>> from application.debug.memory import *<br>
>> relay = MediaRelay()<br>
>> except Exception, e:<br>
>> log.fatal("failed to create %s: %s" % (fullname, e))<br>
>> if e.__class__ is not RuntimeError:<br>
>> log.err()<br>
>> sys.exit(1)<br>
>><br>
><br>
> There seems to be a compatibility issue with latest python-application<br>
> and/or python-gnutls. I'll fix that as soon as I can, but in the<br>
> meanwhile you may use python-application 1.1.5 and python-gnutls 1.1.8<br>
> which are known to work.<br>
><br>
> If you find any other issues please let me know.<br>
><br>
><br>
> Thanks for your report!<br>
><br>
><br>
> Regards,<br>
><br>
> --<br>
> Saúl Ibarra Corretgé<br>
> AG Projects<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>