<a href="http://wiki.freeswitch.org/wiki/Mod_commands#user_data">http://wiki.freeswitch.org/wiki/Mod_commands#user_data</a><br><br><div class="gmail_quote">On Fri, Jul 16, 2010 at 7:50 AM, Roman_ <span dir="ltr"><<a href="mailto:lists@ione.ch">lists@ione.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Dear all,<br>
<br>
I have been looking through the documentation and the forum but could not<br>
find what I was looking for.<br>
<br>
Basically, I was wondering if it is possible, that when somebody calls an<br>
internal number, in the dialplan I retrieve a variable associated with the<br>
user of the called number and then evaluate conditions according to the<br>
contents of that variable.<br>
<br>
Just as an example, let's assume I have a user in the directory with the<br>
following entry:<br>
<br>
<include><br>
<user id="1000" mailbox="1000"><br>
<params><br>
....<br>
</params><br>
<variables><br>
<variable name="some_name" value="some_value"/><br>
....<br>
</variables><br>
</user><br>
</include><br>
<br>
Now, if somebody calls extension 1000, when evaluating the extension in the<br>
dialplan, I would like to be able to retrieve the variable "some_name" of<br>
the user with extension 1000 (i.e., the callee) and then take some action<br>
depending on the value "some_value" of that variable.<br>
<br>
Is there a mechanism to do that, or am I trying to do something the wrong<br>
way? Basically what I would like to do is be able to add a variable to a<br>
user and then, when that user is called, take different action depending on<br>
the value of that user.<br>
<br>
Thanks a lot.<br>
<br>
Regards,<br>
<br>
Roman<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Retrieve-Callee-User-Variables-in-Dialplan-tp5301762p5301762.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Retrieve-Callee-User-Variables-in-Dialplan-tp5301762p5301762.html</a><br>
Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>