[Freeswitch-users] How to make a call back
msc at freeswitch.org
Thu Aug 27 09:16:30 PDT 2009
On Wed, Aug 26, 2009 at 9:38 PM, lakshmanan <lakindia89 at gmail.com> wrote:
> When I give the following from the command line it calls to 1010 extension
> and once answered, it calls to 1000 and bridge the connection.
> originate user/1010 &bridge(user/1000)
> But I want to do this in perl. So I have given as follows
> $session->originate($session,"user/1010 &bridge user/1000");
> But it is not working. It says "user/1010 &bridge user/1000 is invalid
> How to do this in perl. pls help.
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users