<div>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).</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("sepanta_prompt_ended","true"); </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 = "1234";</div><div> if (!Session.answered())</div><div> Session.Answer();</div><div> Session.Say(ticket, "en", "NUMBER", "PRONOUNCED", "FEMININE"); </div>
<div> Session.Execute("Playback",m_readyPrompt); </div><div> Session.SetVariable("exec_after_bridge_app", "record_session");</div><div> Session.SetVariable("exec_after_bridge_arg", recPath);</div>
<div> Session.Execute("bridge",string.Format("sofia/internal/{0}%{1}", op, Session.GetVariable("domain")));</div><div> }</div><div> }</div>