Hi,

You can try to use loopback/<exten>[/context[/dialplan]] instead of user/1000
+ originate_timeout

It works for me.


From: my.post@hotmail.com
To: freeswitch-users@lists.freeswitch.org
Date: Wed, 12 Nov 2014 23:26:20 +0600
Subject: [Freeswitch-users] Trying to originate a call using ES.

Hello Everybody!

I'm stuck trying to originate a call using event socket.
Somewhere on the internet I've found some Perl script involving ESL. So I changed it a bit so I get an incoming call to outbound socket, look for destination number and trying to set up outgoing call using originate like so:

$con->sendRecv("api originate user/1000  &park()")
This works.

The question is how can I control a unanswered timeout of this originate, say to playback some message to initial caller after 5 seconds ?

I've tried setting the following variables:

originate_timeout=5
leg_timeout=5
call_timeout=5

like so:

$con->sendRecv("api originate {originate_timeout=5}user/1000  &park()")

None of this working. The originated call keeps ringing.
Please advise.

Thanks.

Regards,

Pavel.

_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org