[Freeswitch-users] Timeout Message or something similar

Gabriel Gunderson gabe at gundy.org
Tue Sep 13 05:29:47 MSD 2011


On Mon, Sep 12, 2011 at 8:30 AM, Brtantunes <brtantunes at gmail.com> wrote:
> I want to create a bridge between two users, something like this:
>
> originate {ringback=c:/teste.wav}sofia/DOMAIN/1001
> &bridge(sofia/DOMAIN/1002)
>
> This works fine. But now i want to add a timeout message if the second user
> don't answer (a sound played to the first user cause of the no_answer of se
> second user). Is that possible?

http://wiki.freeswitch.org/wiki/Mod_commands#originate

Note the timeout option. The args are positional, so because
timeout_sec is last, you have to provide all of the other options.

Then have a look at something like failover:
http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Example_7:_Action_failover_on_failed_action

I don't know if that gets you all the way there, but it should get you
close (or at least get you pointed in the right direction).


Gabe



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list