[Freeswitch-users] How to make a call back

delianSPAM delianspam at gmail.com
Thu Aug 27 23:43:48 PDT 2009

Hello Michael!


#Does this Python code helps:

new_api_obj = API()

result = new_api_obj.executeString("show channels"))             # Replace
"show channels" with a command of your choice


# By the way, I use the command below to connect an existing and answered
leg to a second one:


session.execute("bridge", "sofia/internal/" + destination +


Best Regards, 

Delian Tashev



From: lakshmanan ganapathy [mailto:lakindia89 at gmail.com] 
Sent: Friday, August 28, 2009 8:02 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to make a call back


No. In the dial plan I said, application="perl" data="The perl script".
I also checked $session->execute("bridge","user/1010"). This is working
But originate is not working as I expected.

On Thu, Aug 27, 2009 at 9:46 PM, Michael Collins <msc at freeswitch.org> wrote:


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. 

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090828/f400a2e7/attachment-0002.html 

More information about the FreeSWITCH-users mailing list