提交 e4b97d6d authored 作者: Meftah Tayeb's avatar Meftah Tayeb

some change to my directory layout

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@14659 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 4d88a4f9
<!-- skype_iax originator -->
<!-- this extention will request a skype speed dial number and bridge it unstid of adding some extentions to your dialplan -->
<!-- just place it in /prefix/conf/dialplan/default and call 2020 -->
<include>
<extension name="skypiax_originator">
<condition field="destination_number" expression="^(2020)$">
<action application="play_and_get_digits" data="2 5 3 7000 # conference/8000/conf-pin.wav /invalid.wav dest"/>
<action application="sleep" data="3000"/>
<action application="set" data="ringback=$${us-ring}"/>
<action application="bridge" data="{absolute_codec_string=g722}skypiax/skypiax1/${dest}"/>
</condition>
</extension>
</include>
\ No newline at end of file
<!-- this is a small dialplan extension that speak time if you call 2910 -->
<include>
<extension name="SpeakTime">
<condition field="destination_number" expression="^2910$">
<action application="set" data="actime=${strftime(%H:%M)}"/>
<action application="set" data="tts_engine=flite"/>
<action application="set" data="tts_voice=slt"/>
<action application="speak" data="Is it +${actime}"/>
</condition>
</extension>
</include>
\ No newline at end of file
Simple LUA IVR Sample
this is a small IVR in lua using the flite TTS Engine
modules required:
mod_flite
and mod_lua offcourss
see me in the IRC Channel if any error or suggestion
thanks to raulfragoso for the first time!
\ No newline at end of file
session:answer();
while (session:ready() == true) do
session:setAutoHangup(false)
session:set_tts_parms("flite", "kal");
session:speak("Welcome. Welcome to the VoIp World!. this is a Blind Users Programing Community. powered by Freeswitch, the free / ultimate PBX. thank to anthm!");
session:sleep(100);
session:speak("please select an Action.");
session:sleep(100);
session:speak("to call the conference, press 1");
session:sleep(100);
session:speak("to call Freeswitch IVR, press 2");
session:sleep(100);
session:speak("to call Voice Mail, press 3");
session:sleep(100);
session:speak("for Music on hold, press 4");
session:sleep(100);
session:speak("to call me, press 0");
session:sleep(3000);
digits = session:getDigits(1, "", 3000);
if (digits == "1") then
session:execute("transfer","3001");
end
if (digits == "2") then
session:execute("transfer","5000");
end
if (digits == "3") then
session:execute("transfer","4000");
end
if (digits == "4") then
session:execute("transfer","9999");
end
if (digits == "0") then
session:execute("transfer","voipaware@sip.voipuser.org");
end
end
\ No newline at end of file
<include>
<extension name="welcome_ivr">
<condition field="destination_number" expression="^2910$">
<action application="lua" data="welcome.lua"/>
</condition>
</extension>
</include>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论