[Freeswitch-users] help about a system with login logout
David Ponzone
david.ponzone at gmail.com
Sat Jun 12 13:51:47 PDT 2010
Babak,
I would suggest implementing 2 specific extensions in the defaullt
dialplan, like *55 and *66 (or anything you want of course).
When the phone dials *55, it will send the call to a script asking for
a numeric password as DTMF.
You would then authenticate the userid/password pair (or callerid/
password pair, or else) in a custom DB.
If authenticated, you have then 2 solutions to allow outgoing calls:
-you have a default extension at the end of your dialplan, using a
script to check if the caller is authenticated, and if so, bridging
the call to the dialed number
or
-in the internal SQlite DB used by FS, you change the user_context
used by the phone from default XML to allowed XML (or else). In
allowed XML, there would be a default extension for outgoing calls,
although in default XML, there would only be *55. There should be *66
in allowed XML also, to logout the user (reverting its user_context to
default XML).
The last option could be wrong, I am not sure if the user_context is
available for dynamic alteration in the DB.
And I am pretty sure there are other quite smarter ways.
David Ponzone Direction Technique
email: david.ponzone at ipeva.fr
tel: 01 74 03 18 97
gsm: 06 66 98 76 34
Service Client IPeva
tel: 0811 46 26 26
www.ipeva.fr - www.ipeva-studio.com
Ce message et toutes les pièces jointes sont confidentiels et établis
à l'intention exclusive de ses destinataires. Toute utilisation ou
diffusion non autorisée est interdite. Tout message électronique est
susceptible d'altération. IPeva décline toute responsabilité au titre
de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes
pas destinataire de ce message, merci de le détruire immédiatement et
d'avertir l'expéditeur.
Le 12/06/2010 à 06:32, babak yakhchali a écrit :
> Hi
> I need to implement a system in which users should login and logout
> to be able to place or receive calls using cisco 7941 ip phones on
> freeswitch (first I tried to somehow program one of soft keys as
> login and logout shortcut but I couldn't do that). Any suggestions
> would be appreciated.
> thanx
> _______________________________________________
> 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/20100612/0b80c142/attachment.html
More information about the FreeSWITCH-users
mailing list