That doesn't sound right.
I'm not sure exactly what you are trying to do, but I'm guessing you want the caller ID of this user in the FROM?
So simply set  <param name="caller-id-in-from" value="true"/>
in the gateway, and then "set" "effective_caller_id=${outbound_caller_id_number}"

-Avi

On Sun, Mar 20, 2011 at 10:56 PM, guru singh <grsingh750@gmail.com> wrote:
Hi,

Try export instead of set.
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_export


On Sun, Mar 20, 2011 at 1:27 PM, dunchan <dunchan@freemail.hu> wrote:
> Hi!
>
> I have a simple question, how can i pass a varible from dialplan to the
> bridge?
> I want to fill the 'from-user' field depends on sip user settings.
>
> I've tryed the following in dialplan:
> ...
> some conditions
> ...
> <action application="set" data="from-user=${outbound_caller_id_number}"/>
> <action application="bridge" data="sofia/gateway/upc/$1"/>
>
> in a gateway xml i tryed:
> <gateway name="upc">
>         <param name="username" value="..."/>
>         <param name="password" value="..."/>
>         <param name="proxy" value="..."/>
>         <param name="register" value="false"/>
>         <param name="from-user" value="${from-user}"/>
>     </gateway>
>
> Above config ha no effect :(
> any suggestions?
>
> thx,
> Viktor
>
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org