[Freeswitch-users] recording problem

Michael Collins msc at freeswitch.org
Fri May 7 14:55:25 PDT 2010


Look here:
http://wiki.freeswitch.org/wiki/Channel_Variables#Code_Execution_Related

There are some options for executing apps on either A or B leg just prior to
media being exchanged.

-MC

On Fri, May 7, 2010 at 7:32 AM, Phillip Jones <pjintheusa at gmail.com> wrote:

> exec_after_bridge_app = Execute an application command after the bridge
> has been terminated
> http://wiki.freeswitch.org/wiki/Variable_exec_after_bridge_arg
>
> Not sure when the correct call would be though....
> execute_on_answer ??
>
>
> On Fri, May 7, 2010 at 2:36 AM, babak yakhchali <
> babak.freeswitch at gmail.com> wrote:
>
>> Hi I'm using the code below to dispatch customers to operators in c#.
>> everything is fine but recording is not taking place(I've tested both the
>> hang up after bridge false and true).
>> thanks
>> public class Answering : IAppPlugin
>>     {
>>
>>         ManagedSession Session;
>>         public void Run(AppContext context)
>>         {
>>             Session = context.Session;
>>             Session.HangupFunction = hangupHook;
>>
>>             if (. . .)      //no operator available wai
>>             {
>>                 Session.Answer();
>>                 if (Session.Ready())
>>                 {
>>                     Session.StreamFile(m_sorryPrompt, -1);
>>                     Session.SetVariable("sepanta_prompt_ended","true");
>>
>>                         Session.StreamFile(m_musicOnHold, -1);
>>                 }
>>             }//now u can talk
>>             if (Session.Ready())
>>             {
>>                 string ticket = "1234";
>>                 if (!Session.answered())
>>                     Session.Answer();
>>                 Session.Say(ticket, "en", "NUMBER", "PRONOUNCED",
>> "FEMININE");
>>                 Session.Execute("Playback",m_readyPrompt);
>>                 Session.SetVariable("exec_after_bridge_app",
>> "record_session");
>>                 Session.SetVariable("exec_after_bridge_arg", recPath);
>>
>>  Session.Execute("bridge",string.Format("sofia/internal/{0}%{1}", op,
>> Session.GetVariable("domain")));
>>             }
>>         }
>>
>> _______________________________________________
>> 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/20100507/dd618455/attachment.html 


More information about the FreeSWITCH-users mailing list