View previous topic :: View next topic |
Author |
Message |
jonas.gauffin at gmail... Guest
|
Posted: Thu Sep 11, 2008 4:57 am Post subject: [Freeswitch-users] Dialplan actions |
|
|
Hello
Is it possible to do something like this (pseudo code):
set call_timeout=20
bridge somehere
if timeout bridge somewhereElse
else javascript unexpectedFailure.js
that is invoke one action if the bridge fails due to call timeout, and to do something else for every other reason.
//Jonas |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Thu Sep 11, 2008 8:38 am Post subject: [Freeswitch-users] Dialplan actions |
|
|
Jonas,
Try something like this:
<extension name="example">
<condition field="destination_number" expression="^1234$">
<action application="set" data="call_timeout=20"/>
<action application="set" data="continue_on_fail=true"/>
<action application="bridge" data="sofia/blah/blah/1234,sofia/
blah/blah/1235"/>
<action application="javascript" data="unexpectedFailure.js"/>
</condition>
</extension>
/b
On Sep 11, 2008, at 4:53 AM, Jonas Gauffin wrote:
Quote: | set call_timeout=20
bridge somehere
if timeout bridge somewhereElse
else javascript unexpectedFailure.js
|
Brian West
sip:brian@freeswitch.org
_______________________________________________
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 |
|
Back to top |
|
|
|