I would like to originate 2 calls from FS and then bridge them. There's no incoming call so I think there's no dialplan involved.
<div><br></div><div>What I&#39;d like to do now is apply lcr rules to these calls. I&#39;ve come up with 2 options so far: </div><div><br></div><div>1) call lcr through the socket twice (once for each phonenumber) and then originate the calls through the socket too</div>
<div>2) have a javascript file which runs the actions above, run the script through the socket with &#39;jsrun&#39;</div><div><br></div><div>How would you do it?</div><div><br></div><div>For what I&#39;ve read on the list, usually the recommended way is to stay away from javascript as much as possible because it is not as efficient as doing everything from the dialplan. Does this mean the first option is the best? or is there a &quot;dialplan way&quot; of doing it?</div>
<div><br></div><div>Thank you very much for your help!</div><div><br></div><div>Nicolas</div>