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