Hello What kind of actions can I use in a diaplan and what kind of parameters do they have? How should sound files be specified in win32? I tried this: <extension name="testmusic"> <condition field="destination_number" expression="^1234$"> <!-- Request a certain tone/file to be played while you wait for the call to be answered--> <action application="set" data="ringback=C:/windows/Media/ringin.wav"/> <action application="bridge" data="sofia/$${domain}/1234@conference.freeswitch.org"/> </condition> </extension> Regards, Jonas
Hi Jonas, i know the action "application" from XML dialplan section. Here you can find answer, playback, bridge, javascript, set and so on. Interesting variables to set with "set"-application you can find under: http://wiki.freeswitch.org/wiki/FreeSwitch_Channel_Variables I use windows and this is working for me: <extension name="testextension14"> <condition field="destination_number" expression="^14$"> <action application="answer" data=""/> <action application="playback" data="D:\download\sip\freeswitch\snapshot_freeswitch\debug\sounds\Track8_30s_mono_8kS.wav"/> </condition> </extension> Hope this helps. Thomas -----Ursprüngliche Nachricht----- Von: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] Im Auftrag von Jonas Gauffin Gesendet: Mittwoch, 21. Februar 2007 14:57 An: freeswitch-users@lists.freeswitch.org Betreff: [Freeswitch-users] Dialplan actions Hello What kind of actions can I use in a diaplan and what kind of parameters do they have? How should sound files be specified in win32? I tried this: <extension name="testmusic"> <condition field="destination_number" expression="^1234$"> <!-- Request a certain tone/file to be played while you wait for the call to be answered--> <action application="set" data="ringback=C:/windows/Media/ringin.wav"/> <action application="bridge" data="sofia/$${domain}/1234@conference.freeswitch.org"/> </condition> </extension> Regards, Jonas _______________________________________________ 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
Some of the applications will show up on wiki.freeswitch.org documented. If you start in console mode, you can do "show application" and it will list all of the application interfaces that are loaded. Most of those should have syntax in that command. For specifying the file name in windows, your syntax below looks correct. I believe either / or \ will work for a path separator. Mike
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch- users-bounces@lists.freeswitch.org] On Behalf Of Jonas Gauffin Sent: Wednesday, February 21, 2007 8:57 AM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] Dialplan actions
Hello
What kind of actions can I use in a diaplan and what kind of parameters do they have?
How should sound files be specified in win32? I tried this: <extension name="testmusic"> <condition field="destination_number" expression="^1234$"> <!-- Request a certain tone/file to be played while you wait for the call to be answered--> <action application="set" data="ringback=C:/windows/Media/ringin.wav"/> <action application="bridge" data="sofia/$${domain}/1234@conference.freeswitch.org"/> </condition> </extension>
Regards, Jonas
_______________________________________________ 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
participants (3)
-
Jonas Gauffin
-
Michael Jerris
-
Sluschny, Thomas