[Freeswitch-users] Looking up user data in dialplan
Andrew Cassidy
andrew at cassidywebservices.co.uk
Thu Jun 28 23:04:18 MSD 2012
Hi Leon,
Does that allow me to search by attrs other than ID? I need to get the id
of a user given another attr (such as alias), but looking for a minimal
approach.
Basically all i need is to have N mailboxes, each with a DDI to leave
messages and a DDI to check them. Obviously I can just use one of the DDI's
as the user ID, but to check i need to find the user id for the other
number.
I can do this with mod_xml_curl easily enough, was just wondering if there
was a simpler way.
On 28 June 2012 14:36, Leon de Rooij <leon at scarlet-internet.nl> wrote:
> You can use the set_user dp app to set all user variables as channel
> variables. You can also supply a prefix string to keep these new variables
> separate from wha was already set.
>
> See here: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user
>
> regards,
>
> Leon
>
>
> On Jun 28, 2012, at 11:09, Andrew Cassidy wrote:
>
> Hi All,
>
> Right, I have a very basic application I'm building around voicemail. Each
> user has 2 attrs that I need to search by. user_exists works fine, but
> doesn't return me any data other then the fact the user exists, and
> user_data only searches the id attr.
>
> Is there any way I can do that in just the dialplan with what is already
> available?
>
> In the most simple form I need the user id for a number_alias.
>
> --
> *Andrew Cassidy BSc (Hons) MBCS SSCA*
> Managing Director
>
>
> *T <info at cassidywebservices.co.uk> *03300 100 960 *F<info at cassidywebservices.co.uk>
> *03300 100 961
> *E <info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
> *W <info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
>
> _________________________________________________________________________
> 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
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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
>
>
>
> _________________________________________________________________________
> 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
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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
>
>
--
*Andrew Cassidy BSc (Hons) MBCS SSCA*
Managing Director
*T <info at cassidywebservices.co.uk> *03300 100 960
*F<info at cassidywebservices.co.uk>
*03300 100 961
*E <info at cassidywebservices.co.uk> *andrew at cassidywebservices.co.uk
*W <info at cassidywebservices.co.uk> *www.cassidywebservices.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120628/04d635d0/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list