help about a system with login logout
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
2010. június 12. 06.32.56 dátummal babak yakhchali az alábbiakat írta:
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
Hi. You can write some Lua scripts ( http://wiki.freeswitch.org/wiki/Lua ) to autheticate users and store which extension they logged in.
hi, you can just use a pin code;) otherwise use the db api to modify a sqlite DB and login/logout users thanks 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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5192 (20100612) __________
The message was checked by ESET NOD32 Antivirus.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5192 (20100612) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanx all is there anyway to register or unregister a phone from freeswitch? or if anyone is familiar with cisco 7941, is there anyway like xmlObjects to force an ipphone to register or unregister?
I don't think it's a valid idea as you probably can't prevent a phone to register automatically at startup. So a user would just have to reboot a phone to get it registered and able to call. David Ponzone Direction Technique email: david.ponzone@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 13/06/2010 à 07:57, babak yakhchali a écrit :
I need to map user login logout to sip registrations and unregistrations _______________________________________________ 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
2010. június 13. 11.10.44 dátummal babak yakhchali az alábbiakat írta:
Now there is another problem! How can I change the user context?
You can't change user context but you can use transfer: <action application="transfer" data="1000 XML another_context"/> If you authenticated the user.
Isn't it possible to chage userstate even if I use odbc and I have direct access to db?
You should start by accessing FS's internal SQlite DB and check what is there. It could be documented somewhere on the wiki, though. David Ponzone Direction Technique email: david.ponzone@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 13/06/2010 à 11:10, babak yakhchali a écrit :
Now there is another problem! How can I change the user context? _______________________________________________ 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
I don't think cisco does REGISTER with login/logout rather than SUBSCRIBE that needs to be challenged and authenticated. With current code I don't think it's possible. On Sun, Jun 13, 2010 at 6:26 AM, babak yakhchali <babak.freeswitch@gmail.com
wrote:
Thanx all is there anyway to register or unregister a phone from freeswitch? or if anyone is familiar with cisco 7941, is there anyway like xmlObjects to force an ipphone to register or unregister?
_______________________________________________ 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
participants (6)
-
babak yakhchali
-
Brian West
-
David Ponzone
-
Meftah Tayeb
-
Ognjen Seslija
-
Puskás Zsolt