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

Adrian Georgescu ag at ag-projects.com
Mon Dec 12 20:50:52 CET 2011


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
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opensips.org/pipermail/users/attachments/20111212/d7f54c1d/attachment-0001.pgp>


More information about the Users mailing list