[Freeswitch-users] External authentication

Rick Jarvis rick at magicmail.mooo.com
Tue May 15 18:44:01 UTC 2018


Thanks José,

It’s the XML_CURL binding bit that’s relevant to me then, as the server it’s querying is something we've written already.

  <bindings>
    <binding name="directory">
      <param name="gateway-url" value="https://server/xmlcurl" bindings="directory"/>
    </binding>
  </bindings>

So I’m seeing posts come into my server from general stuff, but nothing when I try and authenticate with it (via Verto). 

On the FS console I’m seeing:

	"jsonrpc":	"2.0",
	"id":	1,
	"error":	{
		"code":	-32000,
		"message":	"Authentication Required"
	}

So I guess either it’s not working, or maybe FS doesn’t support Curl directories for Verto?

> On 15 May 2018, at 13:01, Jose David Jurado Alonso <josedavid at zennio.com> wrote:
> 
> Hi Rick,
> 
> I use this library: 
> 
> https://github.com/soulhunter1987/freeswitch-curl <https://github.com/soulhunter1987/freeswitch-curl>
> 
> to handle the real time user authentication vía http with the data into a mysql database.
> 
> José David Jurado Alonso <josedavid at zennio.com <mailto:josedavid at zennio.com>>
> 
> Área de Desarrollo de Software de Alto Nivel
> 
> Dpto. Ingeniería
> 
> 
> 
> Zennio Avance y Tecnología, S.L.
> 
> C/ Rio Jarama,132 <https://maps.google.com/?q=C/+Rio+Jarama,132&entry=gmail&source=g>. Nave P-8.11
> 
> 45007 - Toledo (Spain)
> 
> T: +34 925 232 002 <tel:+34%20925%2023%2020%2002>
> 
> www.zennio.com <http://www.zennio.com/>
>     
> 
> Zennio Avance y Tecnología S.L le informa de los siguientes extremos:
> Los datos por usted suministrados pasarán a formar parte de un fichero cuyo responsable es Zennio Avance y Tecnología S.L. Dicho fichero se encuentra legalmente inscrito en el Registro General de Protección de Datos de la Agencia Española de Protección de Datos. Los datos por usted suministrados serán empleados con fines de gestión, Zennio Avance y Tecnología S.L ha adoptado las medidas de seguridad exigidas en función del nivel de los datos suministrados, instalando las medidas técnicas y organizativas necesarias, habida cuenta del estado de la tecnología, a fin de evitar su pérdida, alteración, uso inadecuado o accesos no autorizados a los mismos.
> Para el ejercicio de sus derechos de acceso, rectificación, cancelación y oposición deberá dirigirse a la dirección del Responsable de Fichero Zennio Avance y Tecnología S.L C/ Rio Jarama, 132. Nave P-8.11, 45007, TOLEDO o a la dirección de correo electrónico: info at zennio.com <mailto:info at zennio.com>
> 
> Please, consider the environment before printing this e-mail... Save energy!
> Por favor, piensa en el medio ambiente antes de imprimir este e-mail... ¡Ahorra energía!
> Disclaimer:
> This message and any attached files transmitted with it, is confidential, especially as regards personal data. It is intended solely for the use of the individual or entity to whom it is addressed. If you are not the intended recipient and have received this information in error or have accessed it for any reason, please notify us of this fact by email reply and then destroy or delete the message, refraining from any reproduction, use, alteration, filing or communication to third parties of this message and attached files on penalty of incurring legal responsibilities. The opinions contained in this message and the attached archives, belong exclusively to their sender and they do not represent the opinion of the company unless it is said specifically and the sender is authorized for it. The sender does not guarantee the integrity, the accuracy, the swift delivery or the security of this email transmission, and assumes no responsibility for any possible damage incurred through data capture, virus incorporation or any manipulation carried out by third parties.
> Advertencia legal:
> Este mensaje y, en su caso, los ficheros anexos son confidenciales, especialmente en lo que respecta a los datos personales, y se dirigen exclusivamente al destinatario referenciado. Si usted no lo es y lo ha recibido por error o tiene conocimiento del mismo por cualquier motivo, le rogamos que nos lo comunique por este medio y proceda a destruirlo o borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar, archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo ello bajo pena de incurrir en responsabilidades legales. Las opiniones contenidas en este mensaje y en los archivos adjuntos, pertenecen exclusivamente a su remitente y no representan la opinión de la empresa salvo que se diga expresamente y el remitente esté autorizado para ello. El emisor no garantiza la integridad, rapidez o seguridad del presente correo, ni se responsabiliza de posibles perjuicios derivados de la captura, incorporaciones de virus o cualesquiera otras manipulaciones efectuadas por terceros.
> 
> 2018-05-15 13:37 GMT+02:00 Rick Jarvis <rick at magicmail.mooo.com <mailto:rick at magicmail.mooo.com>>:
> Now, I’m sure I’ve read about this somewhere, and now I need to do it, I can’t find it of course!
> 
> Basically need to hand the user authentication off to another server, via https.
> 
> Got this kind of thing working nicely in the dialplan using httapi, but can’t figure out how to do it for user registration? Needs to be real time, so exporting directory XML *to* FS isn’t going to do it.
> 
> Any ideas?
> 
> 
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org <http://www.freeswitch.org/>
> http://confluence.freeswitch.org <http://confluence.freeswitch.org/>
> http://www.cluecon.com <http://www.cluecon.com/>
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users>
> http://www.freeswitch.org <http://www.freeswitch.org/>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180515/27a33cb6/attachment-0001.html>


More information about the FreeSWITCH-users mailing list