[OpenSIPS-Users] mediaproxy

Marco Nesler marco.nesler at gmail.com
Mon Apr 5 21:28:44 CEST 2010


http://www.smartvox.co.uk/serfaq_install_mediaproxy2.htm

2010/4/5 Richard Revels <rrevels at bandwidth.com>

> Here is the process I used with an up to date CentOS 5.4 server
>
> wget http://download.ag-projects.com/MediaProxy/mediaproxy-2.4.2.tar.gz
> tar -xzf mediaproxy-2.4.2.tar.gz
> cd mediaproxy-2.4.2
> yum install python-tools.x86_64 python-twisted-core.x86_64
> python-zope-interface.x86_64 python.x86_64 python-ctypes.x86_64
> easy_install -U setuptools
> easy_install
> http://pypi.python.org/packages/source/p/python-application/python-application-1.1.5.tar.gz
> easy_install python-cjson
> cd ../
> wget http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2
> bunzip2 gnutls-2.8.6.tar.bz2
> tar -xf gnutls-2.8.6.tar
> cd gnutls-2.8.6
> yum install libgcrypt
> ./configure
> make install
> cd ../mediaproxy-2.4.2
> easy_install python-gnutls==1.1.8
> yum install libnetfilter_conntrack-devel.x86_64
> ./build_inplace
>
>
> And unfortunately, here is the latest error I am getting when trying to run
> the media-dispatcher:
>
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Log opened.
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Starting MediaProxy
> Dispatcher 2.4.2
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Twisted is using
> selectreactor
> 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
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Traceback (most recent call
> last):
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]: --- <exception caught here>
> ---
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File "./media-dispatcher",
> line 62, in ?
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:     dispatcher =
> Dispatcher()
> 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__
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:     self.cred =
> X509Credentials(cert_name='dispatcher')
> 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__
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
> twisted.X509Credentials.__init__(self, self.X509cert, self.X509key,
> [self.X509ca], [self.X509crl])
> 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__
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:     return descriptor.get()
> 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
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:     self.object =
> self.klass(f.read())
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File "<string>", line 1,
> in __init__
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
> 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
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
> "build/bdist.linux-x86_64/egg/gnutls/crypto.py", line 83, in __init__
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
> "/usr/lib64/python2.4/site-packages/ctypes/__init__.py", line 453, in cast
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]:     return _cast(obj, obj,
> typ)
> Apr  5 18:32:31 ip-30 media-dispatcher[22909]: exceptions.SystemError:
> Objects/dictobject.c:533: bad argument to internal function
>
> Any guidance you can give to resolve this (outside of "stop using Cent")
> would be appreciated.
>
> Richard
>
>
> On Mar 23, 2010, at 4:02 AM, Saúl Ibarra Corretgé wrote:
>
> > Hi,
> >
> > On 22/3/10 8:40 PM, Julien Chavanton wrote:
> >> Hi, I have some problem with installing / running mediaproxy on FC7
> >> I have also tried mediaproxy-2.4.2, but then I revert to the latest
> >> working version I have deployed
> >> /usr/bin/media-relay --no-fork
> >> Starting MediaProxy Relay 2.3.6
> >> Segmentation fault
> >> I would like to install in on Debian, but I need to make it work on FC7
> >> or CentOS5
> >> I can see the problem, is there a suggested way to debug ?
> >> -------------------------------------------------
> >> try:
> >> from mediaproxy.relay import MediaRelay
> >> if not options.fork:
> >> from application.debug.memory import *
> >> relay = MediaRelay()
> >> except Exception, e:
> >> log.fatal("failed to create %s: %s" % (fullname, e))
> >> if e.__class__ is not RuntimeError:
> >> log.err()
> >> sys.exit(1)
> >>
> >
> > There seems to be a compatibility issue with latest python-application
> > and/or python-gnutls. I'll fix that as soon as I can, but in the
> > meanwhile you may use python-application 1.1.5 and python-gnutls 1.1.8
> > which are known to work.
> >
> > If you find any other issues please let me know.
> >
> >
> > Thanks for your report!
> >
> >
> > Regards,
> >
> > --
> > Saúl Ibarra Corretgé
> > AG Projects
> >
> > _______________________________________________
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100405/3eee0186/attachment.htm 


More information about the Users mailing list