I don't know if anyone has done it w/ static XML, normaly if you are using external config, you look for the event header "action", and if it's "event_socket_auth", then you check the event socket users, and not the normal ones.
 
I know the only way I use it is when using some sort of external config. XML_Curl or switch_bind_xml_search_function. Has anyone here actually got it working w/ static XML?
 
--Dave


From: Steven Ayre [mailto:steveayre@gmail.com]
To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org]
Sent: Wed, 24 Oct 2012 09:42:58 -0700
Subject: Re: [Freeswitch-users] event socket : userauth undocumented esl command?

It's new to me too.

Reading the mod_event_socket source code you authenticate as a user@domain and it performs a user directory lookup for that user.

It looks for the following variables in the directory entry:
    esl-password
    esl-allowed-log
    esl-allowed-events
    esl-allowed-api

esl-password is required.
esl-allowed-log is either true or false (optional, default is true)
esl-allowed-events and esl-allowed-api are also optional, I think the default would be all allowed.

It appears the command syntax is 'userauth user@domain:password'

-Steve



On 24 October 2012 08:21, rentmycoder rentmycoder <rentmycoder@gmail.com> wrote:
Hi,

I''ve read in an old esl source that a userauth command exist in
mod_event_socket and provides user/password based authentication, not
only password based, like auth...
Th actual code accepts the userauth command...
Question: where can I configure the user / password for the userauth command?
Shouldn't this command bee in wiki?
Thanks,
John

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org