mediaproxy installation issue

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

mediaproxy installation issue

Satish Patel
I compile media proxy on my machine and getting following error

# /usr/local/bin/media-relay --no-fork
Starting MediaProxy Relay 2.6.1
using set_wakeup_fd
fatal error: failed to create MediaProxy Relay: /usr/lib/x86_64-linux-gnu/libgnutls.so.28: undefined symbol: gnutls_certificate_verify_peers3
Traceback (most recent call last):
  File "/usr/local/bin/media-relay", line 103, in <module>
    from mediaproxy.relay import MediaRelay
  File "/usr/local/lib/python2.7/dist-packages/mediaproxy/relay.py", line 28, in <module>
    from mediaproxy.configuration import RelayConfig
  File "/usr/local/lib/python2.7/dist-packages/mediaproxy/configuration/__init__.py", line 9, in <module>
    from mediaproxy.configuration.datatypes import AccountingModuleList, DispatcherIPAddress, DispatcherAddressList, DispatcherManagementAddress, PortRange, PositiveInteger, SIPThorDomain, X509NameValidator
  File "/usr/local/lib/python2.7/dist-packages/mediaproxy/configuration/datatypes.py", line 7, in <module>
    from gnutls import crypto
  File "/usr/local/lib/python2.7/dist-packages/gnutls/crypto.py", line 11, in <module>
    from gnutls.validators import method_args, one_of
  File "/usr/local/lib/python2.7/dist-packages/gnutls/validators.py", line 9, in <module>
    from gnutls.constants import *
  File "/usr/local/lib/python2.7/dist-packages/gnutls/constants.py", line 38, in <module>
    from gnutls.library import constants
  File "/usr/local/lib/python2.7/dist-packages/gnutls/library/__init__.py", line 64, in <module>
    from gnutls.library import errors
  File "/usr/local/lib/python2.7/dist-packages/gnutls/library/errors.py", line 15, in <module>
    from gnutls.library.functions import gnutls_strerror, gnutls_alert_get
  File "/usr/local/lib/python2.7/dist-packages/gnutls/library/functions.py", line 220, in <module>
    gnutls_certificate_verify_peers3 = libgnutls.gnutls_certificate_verify_peers3
  File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/x86_64-linux-gnu/libgnutls.so.28: undefined symbol: gnutls_certificate_verify_peers3


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy installation issue

Saúl Ibarra Corretgé
Hi,

What python-gnutls version are you using?

On 20 Aug 2014, at 20:56, Satish Patel <[hidden email]> wrote:

> I compile media proxy on my machine and getting following error
>
> # /usr/local/bin/media-relay --no-fork
> Starting MediaProxy Relay 2.6.1
> using set_wakeup_fd
> fatal error: failed to create MediaProxy Relay: /usr/lib/x86_64-linux-gnu/libgnutls.so.28: undefined symbol: gnutls_certificate_verify_peers3
> Traceback (most recent call last):
>   File "/usr/local/bin/media-relay", line 103, in <module>
>     from mediaproxy.relay import MediaRelay
>   File "/usr/local/lib/python2.7/dist-packages/mediaproxy/relay.py", line 28, in <module>
>     from mediaproxy.configuration import RelayConfig
>   File "/usr/local/lib/python2.7/dist-packages/mediaproxy/configuration/__init__.py", line 9, in <module>
>     from mediaproxy.configuration.datatypes import AccountingModuleList, DispatcherIPAddress, DispatcherAddressList, DispatcherManagementAddress, PortRange, PositiveInteger, SIPThorDomain, X509NameValidator
>   File "/usr/local/lib/python2.7/dist-packages/mediaproxy/configuration/datatypes.py", line 7, in <module>
>     from gnutls import crypto
>   File "/usr/local/lib/python2.7/dist-packages/gnutls/crypto.py", line 11, in <module>
>     from gnutls.validators import method_args, one_of
>   File "/usr/local/lib/python2.7/dist-packages/gnutls/validators.py", line 9, in <module>
>     from gnutls.constants import *
>   File "/usr/local/lib/python2.7/dist-packages/gnutls/constants.py", line 38, in <module>
>     from gnutls.library import constants
>   File "/usr/local/lib/python2.7/dist-packages/gnutls/library/__init__.py", line 64, in <module>
>     from gnutls.library import errors
>   File "/usr/local/lib/python2.7/dist-packages/gnutls/library/errors.py", line 15, in <module>
>     from gnutls.library.functions import gnutls_strerror, gnutls_alert_get
>   File "/usr/local/lib/python2.7/dist-packages/gnutls/library/functions.py", line 220, in <module>
>     gnutls_certificate_verify_peers3 = libgnutls.gnutls_certificate_verify_peers3
>   File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
>     func = self.__getitem__(name)
>   File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
>     func = self._FuncPtr((name_or_ordinal, self))
> AttributeError: /usr/lib/x86_64-linux-gnu/libgnutls.so.28: undefined symbol: gnutls_certificate_verify_peers3
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy installation issue

Satish Patel
I have fixed this issue and your are right it was version issue, initially I was using latest version but after downgrade it version from 2.x to 1.2.4 it works! Thanks for reply.

Now I have setup mediaproxy with opensip but how do I know it is working? In seeing nothing in logs. Is there a way to make sure my mediaproxy settings are good? How do I debug RTP?

Sent from my iPhone

On Aug 22, 2014, at 4:36 AM, Saúl Ibarra Corretgé <[hidden email]> wrote:

> Hi,
>
> What python-gnutls version are you using?
>
> On 20 Aug 2014, at 20:56, Satish Patel <[hidden email]> wrote:
>
>> I compile media proxy on my machine and getting following error
>>
>> # /usr/local/bin/media-relay --no-fork
>> Starting MediaProxy Relay 2.6.1
>> using set_wakeup_fd
>> fatal error: failed to create MediaProxy Relay: /usr/lib/x86_64-linux-gnu/libgnutls.so.28: undefined symbol: gnutls_certificate_verify_peers3
>> Traceback (most recent call last):
>>  File "/usr/local/bin/media-relay", line 103, in <module>
>>    from mediaproxy.relay import MediaRelay
>>  File "/usr/local/lib/python2.7/dist-packages/mediaproxy/relay.py", line 28, in <module>
>>    from mediaproxy.configuration import RelayConfig
>>  File "/usr/local/lib/python2.7/dist-packages/mediaproxy/configuration/__init__.py", line 9, in <module>
>>    from mediaproxy.configuration.datatypes import AccountingModuleList, DispatcherIPAddress, DispatcherAddressList, DispatcherManagementAddress, PortRange, PositiveInteger, SIPThorDomain, X509NameValidator
>>  File "/usr/local/lib/python2.7/dist-packages/mediaproxy/configuration/datatypes.py", line 7, in <module>
>>    from gnutls import crypto
>>  File "/usr/local/lib/python2.7/dist-packages/gnutls/crypto.py", line 11, in <module>
>>    from gnutls.validators import method_args, one_of
>>  File "/usr/local/lib/python2.7/dist-packages/gnutls/validators.py", line 9, in <module>
>>    from gnutls.constants import *
>>  File "/usr/local/lib/python2.7/dist-packages/gnutls/constants.py", line 38, in <module>
>>    from gnutls.library import constants
>>  File "/usr/local/lib/python2.7/dist-packages/gnutls/library/__init__.py", line 64, in <module>
>>    from gnutls.library import errors
>>  File "/usr/local/lib/python2.7/dist-packages/gnutls/library/errors.py", line 15, in <module>
>>    from gnutls.library.functions import gnutls_strerror, gnutls_alert_get
>>  File "/usr/local/lib/python2.7/dist-packages/gnutls/library/functions.py", line 220, in <module>
>>    gnutls_certificate_verify_peers3 = libgnutls.gnutls_certificate_verify_peers3
>>  File "/usr/lib/python2.7/ctypes/__init__.py", line 378, in __getattr__
>>    func = self.__getitem__(name)
>>  File "/usr/lib/python2.7/ctypes/__init__.py", line 383, in __getitem__
>>    func = self._FuncPtr((name_or_ordinal, self))
>> AttributeError: /usr/lib/x86_64-linux-gnu/libgnutls.so.28: undefined symbol: gnutls_certificate_verify_peers3
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> --
> Saúl Ibarra Corretgé
> AG Projects
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: mediaproxy installation issue

Saúl Ibarra Corretgé

On 22 Aug 2014, at 13:24, Satish Patel <[hidden email]> wrote:

> I have fixed this issue and your are right it was version issue, initially I was using latest version but after downgrade it version from 2.x to 1.2.4 it works! Thanks for reply.
>

Well, that’s not a fix, that’s a workaround. What gnutls version are you using? python-gnutls requires at least 3.1.4, but it should have complained if you didn’t have it.

> Now I have setup mediaproxy with opensip but how do I know it is working? In seeing nothing in logs. Is there a way to make sure my mediaproxy settings are good? How do I debug RTP?
>

You should see syslog entries about MediaProxy being started. What do you mean by “debug RTP”?


Regards,

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

signature.asc (859 bytes) Download Attachment