<div dir="ltr">That`s all works fine when I changed to:<div><br><div>session:execute("export","nolocal:execute_on_ring=lua lua/event_fire.lua " .. event_id .." uuid")<br></div><div><br></div><div>Sorry :)</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-18 10:23 GMT+03:00 Борисов, Дмитрий / Dmitriy Borisov <span dir="ltr"><<a href="mailto:bordmi@rarus.ru" target="_blank">bordmi@rarus.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, All!<div><br></div><div>I need to receive some event when phone on leg B become into RINGING state. I need domain_name information, original-caller-id, callee-id, channel-uuid and destination-number.</div><div><br></div><div>Now I wrote script which creates and fires this event, but it started by</div><div><div> session:setVariable("bridge_pre_execute_bleg_app","lua")</div><div> session:setVariable("bridge_pre_execute_bleg_data","lua/event_fire.lua " .. event_id .." uuid")</div><div>after B-leg was answered :( </div><div><br></div><div>How can I run this script when channel receive RINGING?</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>with best regards,</div><div>Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>with best regards,</div><div>Dmitriy Borisov</div></div></div></div></div></div></div></div></div></div></div>
</div>