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>&lt;condition field=&quot;${myvar}&quot; expression=&quot;blah&quot;&gt; ... &lt;/condition&gt;<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">&lt;<a href="mailto:kristian.kielhofner@gmail.com">kristian.kielhofner@gmail.com</a>&gt;</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&#39;s an example:<br>
<br>
bgapi originate {myvar=blah}sofia/gateway/gw/19415551212 &amp;transfer(500<br>
XML default) 9185551212 60<br>
<br>
So... &nbsp;I&#39;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 &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; wrote:<br>
&gt; the variables should still be set on the channel in your application?<br>
&gt; you mean a remote call-leg or the channel itself once it&#39;s in the app?<br>
&gt;<br>
&gt;<br>
&gt; On Thu, Jan 8, 2009 at 5:50 PM, Michael Collins &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Thu, Jan 8, 2009 at 9:06 AM, Kristian Kielhofner<br>
&gt; &gt;<br>
&gt; &gt; &lt;<a href="mailto:kristian.kielhofner@gmail.com">kristian.kielhofner@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; On 1/8/09, Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;&gt; put them in {} comma separated.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; {foo=bar,test=true}sofia/default/<a href="mailto:user@dom.com">user@dom.com</a><br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; if you are doing forked dial you can set them per leg with []<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; [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>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Tony,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;Thanks for getting back to me. &nbsp;This part I understand (using<br>
&gt; &gt; &gt; commas, etc). &nbsp;What I need to figure out is how to get those variables<br>
&gt; &gt; &gt; to be available to the application I am calling after the channel in<br>
&gt; &gt; &gt; the originate command. &nbsp;In this case transfer to put my call back into<br>
&gt; &gt; &gt; the dialplan.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;basically I need a way to set variables in the originate command<br>
&gt; &gt; &gt; that are available to the application I am calling, not just the<br>
&gt; &gt; &gt; channel I am creating with the URL syntax.<br>
&gt; &gt;<br>
&gt; &gt; What application(s) are you calling? Could you post an example?<br>
&gt; &gt; -MC<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;Am I making anymore sense?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks again!<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt; Kristian Kielhofner<br>
&gt; &gt; &gt; <a href="http://blog.krisk.org" target="_blank">http://blog.krisk.org</a><br>
&gt; &gt; &gt; <a href="http://www.submityoursip.com" target="_blank">http://www.submityoursip.com</a><br>
&gt; &gt; &gt; <a href="http://www.astlinux.org" target="_blank">http://www.astlinux.org</a><br>
&gt; &gt; &gt; <a href="http://www.star2star.com" target="_blank">http://www.star2star.com</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Freeswitch-users mailing list<br>
&gt; &gt; &gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &gt; &gt;<br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; &gt;<br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Freeswitch-users mailing list<br>
&gt; &gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; &gt;<br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt;<br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Anthony Minessale II<br>
&gt;<br>
&gt; FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
&gt; ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
&gt;<br>
&gt; AIM: anthm<br>
&gt; <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
&gt; GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
&gt; &nbsp;IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
&gt;<br>
&gt; FreeSWITCH Developer Conference<br>
&gt; <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
&gt; <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
&gt; &nbsp;<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
&gt; pstn:213-799-1400<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; &nbsp;Freeswitch-users mailing list<br>
&gt; &nbsp;<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &nbsp;<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<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>