<br><br><div class="gmail_quote">On Wed, Aug 26, 2009 at 9:38 PM, lakshmanan <span dir="ltr"><<a href="mailto:lakindia89@gmail.com" target="_blank">lakindia89@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
When I give the following from the command line it calls to 1010 extension<br>
and once answered, it calls to 1000 and bridge the connection.<br>
originate user/1010 &bridge(user/1000)<br>
But I want to do this in perl. So I have given as follows<br>
$session->originate($session,"user/1010 &bridge user/1000");<br>
But it is not working. It says "user/1010 &bridge user/1000 is invalid<br>
user".<br>
How to do this in perl. pls help.</blockquote><div><br>Are you calling this perl script from the CLI? If so you won't have the $session object because a channel does not exist for a simple API call. <br>-MC<br><br>
</div></div>