<h3 style="font-weight: normal;"><span class="mw-headline">exec_after_bridge_app = </span>Execute an application command after the bridge has been terminated</h3><a href="http://wiki.freeswitch.org/wiki/Variable_exec_after_bridge_arg">http://wiki.freeswitch.org/wiki/Variable_exec_after_bridge_arg</a><br>
<br>Not sure when the correct call would be though....<br><h3><span class="mw-headline"><span style="font-weight: normal;">execute_on_answer ??</span><br></span></h3><br><br><div class="gmail_quote">On Fri, May 7, 2010 at 2:36 AM, babak yakhchali <span dir="ltr">&lt;<a href="mailto:babak.freeswitch@gmail.com">babak.freeswitch@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hi I&#39;m using the code below to dispatch customers to operators in c#. everything is fine but recording is not taking place(I&#39;ve tested both the hang up after bridge false and true).</div>
<div>thanks</div><div>
public class Answering : IAppPlugin</div><div>    {</div><div><br></div><div>        ManagedSession Session;       </div><div>        public void Run(AppContext context)</div><div>        {            </div><div>            Session = context.Session;</div>

<div>            Session.HangupFunction = hangupHook;</div><div>            </div><div>            if (. . .)      //no operator available wai</div><div>            {</div><div>                Session.Answer();</div><div>

                if (Session.Ready())</div><div>                {</div><div>                    Session.StreamFile(m_sorryPrompt, -1);</div><div>                    Session.SetVariable(&quot;sepanta_prompt_ended&quot;,&quot;true&quot;);                    </div>

<div>                        Session.StreamFile(m_musicOnHold, -1);</div><div>                }               </div><div>            }//now u can talk</div><div>            if (Session.Ready())</div><div>            {               </div>

<div>                string ticket = &quot;1234&quot;;</div><div>                if (!Session.answered())</div><div>                    Session.Answer();</div><div>                Session.Say(ticket, &quot;en&quot;, &quot;NUMBER&quot;, &quot;PRONOUNCED&quot;, &quot;FEMININE&quot;);                               </div>

<div>                Session.Execute(&quot;Playback&quot;,m_readyPrompt);                </div><div>                Session.SetVariable(&quot;exec_after_bridge_app&quot;, &quot;record_session&quot;);</div><div>                Session.SetVariable(&quot;exec_after_bridge_arg&quot;, recPath);</div>

<div>                Session.Execute(&quot;bridge&quot;,string.Format(&quot;sofia/internal/{0}%{1}&quot;, op, Session.GetVariable(&quot;domain&quot;)));</div><div>            }</div><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>