<div dir="ltr">I have no idea what you are trying to do here......<br><br>Can you explain it in detail?<br><br>Please try to look at this from the angle that you are not understanding the concept of how the software works and not that the software does not work. With that mentality you will have little chance for success.<br>
<br>perhaps you can just explain what you want to be able to do and we can show you the correct way to do it.<br><br><br><br><div class="gmail_quote">On Thu, Sep 25, 2008 at 3:39 AM, Jon Bruel <span dir="ltr">&lt;<a href="mailto:jbr@consiglia.dk">jbr@consiglia.dk</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;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font face="Courier New" size="2"><span style="font-size: 10pt; line-height: 110%;" lang="EN-GB">Thanks Anthony. I have been confused
because of the semantics: execute_on_anwer implies that the code pointed at is
re-executed. Anyhow, including the application execute_extension in the
ONANSWER-code, helps but not every time: In 20-30% of all the instances, the
variable is passed on to the b-leg part of the ONANSWER. In other cases the variable
is still undefined.</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt; line-height: 110%;" lang="EN-GB">When the b-leg of the ONANSWER runs
before the a-leg part, it is undefined, and vice versa. The code executed by execute_extension
is:</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt; line-height: 110%;" lang="EN-GB">&lt;?xml version=&quot;1.0&quot;
encoding=&quot;utf-8&quot;?&gt;<br>
&lt;include&gt;<br>
&nbsp; &lt;context name=&quot;onanswer&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension name=&quot;Call_Answered&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition
field=&quot;destination_number&quot; expression=&quot;^ONANSWER$&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition
field=&quot;${leg}&quot; expression=&quot;^a$&quot;&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action
application=&quot;info&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!--
We are in the b-leg--&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;anti-action
application=&quot;set&quot;
data=&quot;On_Answer_Is_It_Then_Passed=${NEWVARIABLE}&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;anti-action application=&quot;info&quot;/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>
&nbsp; &lt;/context&gt;<br>
&lt;/include&gt;</span></font></p>

<p><font face="Courier New" size="2"><span style="font-size: 10pt; line-height: 110%;" lang="EN-GB">Jon</span></font></p>

</div>

</div>


<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></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>
</div>