[Freeswitch-users] pass variable from dialplan to bridge
Avi Marcus
avi at avimarcus.net
Mon Mar 21 00:42:43 MSK 2011
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 at 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 at 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 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
> >
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110320/6c079e16/attachment.html
More information about the FreeSWITCH-users
mailing list