I have try the modification with no sucess.
${user.userPermissionNames.contains('Correo de voz Programas')}
${user.userName} >= ('9000')
The only working one is using $user... that returns the values "true" or
"false". I think that that this property is calculated with something like
"user is not null", so you don´t have access to any other property of the user
class. I don´t know if i can access any other object or property.
In Jira, i add this and other suggestions, for example to add configurable
limits per user, group and system wide like max record time, max number of
message, storage limit, retention period, etc in the voicemail, but all refers
to the rewrite of the voicemail system to freeswitch in version 4.2.
When will this version be available? Is there any workaround to solve this?
Andy Spitzer commented on XX-6336:
As of 4.2, the VoiceXML based voicemail has been replaced with Java (see
XX-4753).
--Woof!
Access to other properties in savemessage.vxml
Key: XX-6336> URL: http://track.sipfoundry.org/browse/XX-6336>
Project: sipXecs>
Issue Type: Improvement
Components: Voicemail
Affects Versions: 4.0.1
Environment: Centos 5.2
Reporter: Carlos Robotti
Please add access to other properties from the Users, Groups and Security to
allow personalization of savemessage.vxml to use with conditional processing
with Velocity.
Now you only have access to $user (returns true or false - user not null?),
$language and $menu.
This parameters are not enouth if you need to do for example conditional
processing based on User membership or User security membership.
Thanks!
> To: [email protected]
> From: [email protected]
> Date: Thu, 13 Aug 2009 14:52:11 -0400
> Subject: Re: [sipx-users] Simplified voicemail
>
> Carlos Robotti wrote:
> > Yes, but this changes the template for ALL users, i need to change it
> > for some of them.
> >
> > It´s for attendance of different on-air programs for listeners calls for
> > a Radio station.
> >
>
> You can still do that but some assembly/velocity required...
> http://velocity.apache.org/engine/devel/vtl-reference-guide.html
>
> Add a custom permission in UI, enable it for those users for which you want
> to change the template and use Velocity #if #else #end (there are some
> examples in this file) checking for the presence of permission on the user
> object.
>
> You can check for permission using
>
> #if(${user.userPermissionNames.contains('your-permission-name')})
> ### your simple template goes here
>
> #else
> ### normal template goes here
>
> #end
>
>
> Alternatively you can use other user attributes - groups, userName etc.
> Disclosure: I didn't try it, might not work. And you will have to remember
> about it during upgrade.
> D.
>
> _______________________________________________
> sipx-users mailing list [email protected]
> List Archive: http://list.sipfoundry.org/archive/sipx-users
> Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
> sipXecs IP PBX -- http://www.sipfoundry.org/
_________________________________________________________________
Entérate de todas las noticias al instante ¡Suscríbete al servicio de Alertas
MSN!
http://especiales.es.msn.com/noticias/msninforma.aspx_______________________________________________
sipx-users mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
sipXecs IP PBX -- http://www.sipfoundry.org/