[OpenSIPS-Users] MediaProxy/FreeRadius configuration file read Error

Nick Khamis symack at gmail.com
Mon Dec 12 20:54:16 CET 2011


Hey Adrian,

I knew that was comming! It's just for testing? Is there any way at
all just to test using
the local network? As I mentioned, we are not concerned with the NAT
part of it right
now, just the rleaying of the port forwarded RTP media.

P.S. Thank you all for your prompt responses.

Cheers,

Nicholas.

On Mon, Dec 12, 2011 at 2:50 PM, Adrian Georgescu <ag at ag-projects.com> wrote:
> MediaProxy was designed to run on a public IP address in order to be able to detect if clients are behind or outside a NAT. 192.168.2.102 is not a public IP and you should not attempt to use such IP for it.
>
> Adrian
>
> On Dec 12, 2011, at 8:30 PM, Nick Khamis wrote:
>
>> Tijemn,
>>
>> Thanks so much for your help! I cleaned up the configs and made sure
>> everything is ok. I
>> did not have a chance to focus in on everything however, everything is
>> starting up perfectly.
>>
>>>> Please also note the attributes mediaproxy needs.
>> I have included both .sip & .mediaproxy dictionaries
>>
>>>> The localhost 127.0.0.1 problem has to do with /etc/hosts and the network configuration.\
>> I should have known.....
>>
>>
>>>> BTW on which distro are you trying to install?
>> This is currently on our test Debian VM platform. Once we have
>> everything working, we will
>> transfer over to an EL host.
>>
>> Being able to support NAT and ICE using MediaProxy is great however,
>> currently we are mostly
>> concerned with relaying our RTP media, and have been unsucessful so far.
>>
>> In /etc/mediaproxy/config.ini I have specified:
>>
>> port_range = 10000:15000
>> listen = 192.168.2.102:10000
>>
>> In opensips.cfg, I have included
>>
>> modparam("mediaproxy", "mediaproxy_socket",
>> "/var/run/mediaproxy/dispatcher.sock")
>> modparam("mediaproxy", "mediaproxy_timeout", 500)
>> modparam("mediaproxy", "signaling_ip_avp", "$avp(nat_ip)")
>> modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)")
>>
>> I am not sure if the values of "nat_ip", and "media_relay" are correct
>> at this point. What I do
>> know is that asterisk currently has one way audio. Any help is greatly
>> appreciated.
>>
>> Thanks in Advance,
>>
>> Nick.
>>
>>
>>
>>
>>
>>
>> On Mon, Dec 12, 2011 at 11:53 AM, Tijmen de Mes <tijmen at ag-projects.com> wrote:
>>> Hi Nick
>>>
>>> I think it is best explained with an example. We use
>>> /etc/opensips/radius/client.conf:
>>> auth_order      radius,local
>>> login_tries     4
>>> login_timeout   60
>>> nologin         /etc/nologin
>>> authserver      localhost
>>> acctserver      localhost
>>> servers         /etc/opensips/radius/servers
>>> dictionary      /etc/opensips/radius/dictionary
>>> seqfile         /var/run/opensips/opensips_radius.seq
>>> mapfile         /etc/opensips/radius/port-id-map
>>> default_realm
>>> radius_timeout  5
>>> radius_retries  3
>>>
>>> And in the dictonary file we include :
>>> $INCLUDE                /etc/radiusclient-ng/dictionary
>>>
>>> and specify some extra sip attributes needed for opensips and mediaproxy.
>>>
>>> In the /etc/radiusclient-ng/dictionary we have no extra dictionaries just
>>> the default attributes. Please also note the attributes mediaproxy needs.
>>>
>>> The localhost 127.0.0.1 problem has to do with /etc/hosts and the network
>>> configuration.\
>>>
>>> BTW on which distro are you trying to install?
>>>
>>>
>>> Best regards,
>>>
>>> Tijmen de Mes
>>> AG Projects
>>>
>>> On 12/12/2011 05:26 PM, Nick Khamis wrote:
>>>>
>>>> Hello Tijmen,
>>>>
>>>> Thank you so much for your response. I think I was not able to explain
>>>> my problem:
>>>>
>>>> I have the config file specified in /etc/mediaproxy/config.ini:
>>>>
>>>> config_file = /etc/radiusclient-ng/radiusclient.conf
>>>>
>>>> When running media dispatcher "media-dispatcher --no-fork", I get the
>>>> following:
>>>>
>>>> gc: collectable<list 0x9bceaec>
>>>> fatal error: cannot read the RADIUS configuration file
>>>> fatal error: failed to create MediaProxy Dispatcher: 'localhost'
>>>> Traceback (most recent call last):
>>>>   File "/usr/local/bin/media-dispatcher", line 62, in<module>
>>>>     dispatcher = Dispatcher()
>>>>   File "/usr/lib/python2.7/site-packages/mediaproxy/dispatcher.py",
>>>> line 526, in __init__
>>>>     self.accounting =
>>>> [__import__("mediaproxy.interfaces.accounting.%s" % mod.lower(),
>>>> globals(), locals(), [""]).Accounting() for mod in
>>>> set(Config.accounting)]
>>>>   File
>>>> "/usr/lib/python2.7/site-packages/mediaproxy/interfaces/accounting/radius.py",
>>>> line 59, in __init__
>>>>     self.handler = RadiusAccounting()
>>>>   File
>>>> "/usr/lib/python2.7/site-packages/mediaproxy/interfaces/accounting/radius.py",
>>>> line 87, in __init__
>>>>     secret = secrets[server]
>>>> KeyError: 'localhost'
>>>>
>>>> By changing "acctserver" in radiusclient.conf from "localhost", to
>>>> "127.0.0.1"
>>>> fixes the issue however, I am now having problems with additonal
>>>> dictionaries (e.g.):
>>>>
>>>> fatal error: failed to create MediaProxy Dispatcher:
>>>> dictionary.rfc5904(16): Parse error: Illegal type: short
>>>>
>>>> Commenting out the lines in the different dictionary files, I would
>>>> have to go through many FreeRadius
>>>> dictionary files in /usr/share/freeradius/dictionary.
>>>>
>>>> Thanks in Advance,
>>>>
>>>> Nick.
>>>>
>>>> _______________________________________________
>>>> 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
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAk7mWxwACgkQBWdpqVEZtGdDlwCdFaPYDbVkBD0oWpqnYkmWkCtb
> J50AnjVXHPgqDgwSmjSfwNQhykJhyZt5
> =eSb4
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list