[Freeswitch-users] Provisioning through extension

Sean Devoy sdevoy at bizfocused.com
Tue Jul 29 21:50:00 MSD 2014


Hi,

I have a couple of thoughts for a simple optional approach.  Use the DB application for "switching contexts" and "forwarding" extensions.

When the user authenticates on your special extension number, set the AUTHENTICIATED DB value to TRUE. Like this:
<action application="db" data="insert/authenticated/${caller_id_number} /true"/>

For outbound calls, in your restricted context, if authenticated db value is set transfer to an unrestricted context.
<condition field="${db(exists/ authenticated /${caller_id_number})}" expression="^true$" >
	<action application="transfer" data="${destination_number} XML unrestricted"/>
</condition>

For incoming, do the same type of thing. Store the actual extension they logged in from and the virtual extension they logged in to.  When a call comes in, check the actual extension assigned to the virtual extension and bridge the call there.  Multiple phones logging in to s single virtual extension is more complex, but it can be worked out.

It is just an optional approach you can consider.

Sean

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Fernando Flórez
Sent: Monday, July 28, 2014 10:40 PM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] Provisioning through extension

Hello,

I would love to have some guidance on how to achieve user registration through an extension.

Phones will be placed on a restricted context by default, if a user calls an specific extension they will be prompted to enter their extension and password and if successful, the phone will start working under that extension on a different (not restricted) context.

Multiple phone registration should also be possible.

Thank you!
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

 

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list