yes it will be there in ext 500. any vars in {} are set when the channel is created and are present the rest of <br>the life of the channel.<br><br>you can do regex on it in the dialplan by referencing it with a ${} in the field<br>
<br><condition field="${myvar}" expression="blah"> ... </condition><br><br>and any apps you execute will also be able to get the value of ${myvar}<br><br><br><br><div class="gmail_quote">On Thu, Jan 8, 2009 at 7:29 PM, Kristian Kielhofner <span dir="ltr"><<a href="mailto:kristian.kielhofner@gmail.com">kristian.kielhofner@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Here's an example:<br>
<br>
bgapi originate {myvar=blah}sofia/gateway/gw/19415551212 &transfer(500<br>
XML default) 9185551212 60<br>
<br>
So... I'd like to be able to read ${myvar} from the the 500 extension<br>
in the default context.<br>
<div><div></div><div class="Wj3C7c"><br>
On 1/8/09, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
> the variables should still be set on the channel in your application?<br>
> you mean a remote call-leg or the channel itself once it's in the app?<br>
><br>
><br>
> On Thu, Jan 8, 2009 at 5:50 PM, Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>> wrote:<br>
><br>
> > On Thu, Jan 8, 2009 at 9:06 AM, Kristian Kielhofner<br>
> ><br>
> > <<a href="mailto:kristian.kielhofner@gmail.com">kristian.kielhofner@gmail.com</a>> wrote:<br>
> ><br>
> > > On 1/8/09, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
> > >> put them in {} comma separated.<br>
> > >><br>
> > >><br>
> > >> {foo=bar,test=true}sofia/default/<a href="mailto:user@dom.com">user@dom.com</a><br>
> > >><br>
> > >> if you are doing forked dial you can set them per leg with []<br>
> > >><br>
> > >><br>
> [var1=foo]sofia/default/<a href="mailto:user@dom.com">user@dom.com</a>,[var1=bar]sofia/default/<a href="mailto:user2@dom.com">user2@dom.com</a><br>
> > >><br>
> > ><br>
> > > Tony,<br>
> > ><br>
> > > Thanks for getting back to me. This part I understand (using<br>
> > > commas, etc). What I need to figure out is how to get those variables<br>
> > > to be available to the application I am calling after the channel in<br>
> > > the originate command. In this case transfer to put my call back into<br>
> > > the dialplan.<br>
> > ><br>
> > > basically I need a way to set variables in the originate command<br>
> > > that are available to the application I am calling, not just the<br>
> > > channel I am creating with the URL syntax.<br>
> ><br>
> > What application(s) are you calling? Could you post an example?<br>
> > -MC<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > ><br>
> > > Am I making anymore sense?<br>
> > ><br>
> > > Thanks again!<br>
> > ><br>
> > > --<br>
> > > Kristian Kielhofner<br>
> > > <a href="http://blog.krisk.org" target="_blank">http://blog.krisk.org</a><br>
> > > <a href="http://www.submityoursip.com" target="_blank">http://www.submityoursip.com</a><br>
> > > <a href="http://www.astlinux.org" target="_blank">http://www.astlinux.org</a><br>
> > > <a href="http://www.star2star.com" target="_blank">http://www.star2star.com</a><br>
> > ><br>
> > > _______________________________________________<br>
> > > Freeswitch-users mailing list<br>
> > > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> > ><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > ><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>
> > ><br>
> ><br>
> > _______________________________________________<br>
> > Freeswitch-users mailing list<br>
> > <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> ><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> ><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>
> ><br>
><br>
><br>
><br>
> --<br>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
> pstn:213-799-1400<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>
><br>
><br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="Wj3C7c">Kristian Kielhofner<br>
<a href="http://blog.krisk.org" target="_blank">http://blog.krisk.org</a><br>
<a href="http://www.submityoursip.com" target="_blank">http://www.submityoursip.com</a><br>
<a href="http://www.astlinux.org" target="_blank">http://www.astlinux.org</a><br>
<a href="http://www.star2star.com" target="_blank">http://www.star2star.com</a><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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>