Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Dialplan actions


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jonas.gauffin at gmail...
Guest





PostPosted: Thu Sep 11, 2008 4:57 am    Post subject: [Freeswitch-users] Dialplan actions Reply with quote

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





PostPosted: Thu Sep 11, 2008 8:38 am    Post subject: [Freeswitch-users] Dialplan actions Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services