I think the proper way of doing that is by assigning users to different
dialplan user contexts according to their Class of Service.
For example, an easy way of doing that is to define a user_context
“Not_Allowed_PSTN” for a specific directory user 1010
(conf/directory/default/1010.xml):
<variable name="user_context" value=" Not_Allowed_PSTN "/>
Create a new context called “Not_Allowed_PSTN” and handle those calls as you
like or just add a prefix 0001 and send to the default context:
<condition field="destination_number" expression="^(.*)$">
<action application="transfer" data="0001$1 XML default"/>
</condition>
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roberto
Hernandez
Sent: Wednesday, August 06, 2008 2:01 PM
To: [email protected]
Subject: [Freeswitch-users] user access
Anyone have suggestions on how to the enable the following scenario? Allow
internal but control external per user.
More importantly how to disable or enable PSTN access for a specific user in
a domain (profile)?
[EMAIL PROTECTED] <--> FS <--> Allowed PSTN
[EMAIL PROTECTED] <--> FS <--> [EMAIL PROTECTED]
[EMAIL PROTECTED] <--> FS <--> Not Allowed PSTN
[EMAIL PROTECTED] <--> FS <--> [EMAIL PROTECTED]
Thanks,
Roberto
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.138 / Virus Database: 270.5.12/1594 - Release Date: 05/08/2008
21:49
_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org