[Freeswitch-users] Retrieve Callee User Variables in Dialplan

Rupa Schomaker rupa at rupa.com
Fri Jul 16 07:53:57 PDT 2010


http://wiki.freeswitch.org/wiki/Mod_commands#user_data

On Fri, Jul 16, 2010 at 7:50 AM, Roman_ <lists at ione.ch> wrote:

>
> Dear all,
>
> I have been looking through the documentation and the forum but could not
> find what I was looking for.
>
> Basically, I was wondering if it is possible, that when somebody calls an
> internal number, in the dialplan I retrieve a variable associated with the
> user of the called number and then evaluate conditions according to the
> contents of that variable.
>
> Just as an example, let's assume I have a user in the directory with the
> following entry:
>
> <include>
>  <user id="1000" mailbox="1000">
>    <params>
>        ....
>    </params>
>    <variables>
>      <variable name="some_name" value="some_value"/>
>      ....
>    </variables>
>  </user>
> </include>
>
> Now, if somebody calls extension 1000, when evaluating the extension in the
> dialplan, I would like to be able to retrieve the variable "some_name" of
> the user with extension 1000 (i.e., the callee) and then take some action
> depending on the value "some_value" of that variable.
>
> Is there a mechanism to do that, or am I trying to do something the wrong
> way? Basically what I would like to do is be able to add a variable to a
> user and then, when that user is called, take different action depending on
> the value of that user.
>
> Thanks a lot.
>
> Regards,
>
> Roman
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/Retrieve-Callee-User-Variables-in-Dialplan-tp5301762p5301762.html
> Sent from the freeswitch-users mailing list archive at Nabble.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
>



-- 
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100716/3d350ab0/attachment.html 


More information about the FreeSWITCH-users mailing list