]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
woops
authorBrian West <brian@freeswitch.org>
Thu, 15 Nov 2007 18:21:22 +0000 (18:21 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 15 Nov 2007 18:21:22 +0000 (18:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6281 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/dialplan/default.xml
conf/directory/default.xml
conf/lang/de/de.xml [new file with mode: 0644]
conf/lang_de.xml [deleted file]
conf/lang_fr.xml [deleted file]
conf/voicemail_de_tts.xml [deleted file]
conf/voicemail_fr.xml [deleted file]

index 663377d63e5ee837cd456a71eaf3cc44a9578e14..a5c8fb11f5478c87ae4bf84ca29a06f4490e3869 100644 (file)
@@ -1,9 +1,16 @@
 <context name="default">
-  <extension name="global">
+  <extension name="global" continue="true">
     <condition>
       <action application="set" data="use_profile=${cond(${is_lan_addr(${network_addr})} == yes ? nat : default)}"/>
     </condition>
+    <!-- This will setup some variables if the user isn't authenticated.
+         numbering_plan is required for the demo to function properly. 
+      -->
+    <condition field="${numbering_plan}" condition="^1$">
+      <action application="set_user" data="default@${domain}"/>
+    </condition>
   </extension>
+
   <!-- 
   if the calling party is the called party, go to their VM
   if the calling party is NOT the called party dial the extension 
     </condition>                                                                                                                                               
   </extension>           
  
-  <!-- dial the freeswitch conference via IAX-->
-  <extension name="FS_Conf_IAX">
+  <!-- dial the freeswitch conference via SIP-->
+  <extension name="FS_Conf_SIP">
     <condition field="destination_number" expression="^888$">
-      <action application="bridge" data="iax/guest@conference.freeswitch.org/888"/>
+      <action application="bridge" data="sofia/default/888@conference.freeswitch.org"/>
     </condition>
   </extension>
 
index cc229fe95e73ea2339bec949b8c33f5dc9cc1e11..bcd4274adc7a1825ba48f4bae46ebe99057e40d7 100644 (file)
@@ -1,6 +1,15 @@
 <!--the domain or ip (the right hand side of the @ in the addr-->
 <domain name="$${domain}">
   <!--the user id (the left hand side of the @ in the addr-->
+  <user id="default"> <!--if id is numeric mailbox param is not necessary-->
+    <variables>
+      <!--all variables here will be set on all inbound calls that originate from this user -->
+      <!-- set these to take advantage of a dialplan localized to this user -->
+      <variable name="numbering_plan" value="US"/>
+      <!-- <variable name="default_area_code" value="434"/> -->
+    </variables>
+  </user>
+
   <user id="brian" mailbox="1000"> <!--if id is numeric mailbox param is not necessary-->
     <!-- Outbound Registrations Related to this user -->
     <gateways>
@@ -71,6 +80,7 @@
       <!-- insert optional compliant vcard xml here-->
     </vcard>
   </user>
+
   <!-- this is an example of a user with auth and various settings -->
   <user id="1000" mailbox="1000">
     <params>
diff --git a/conf/lang/de/de.xml b/conf/lang/de/de.xml
new file mode 100644 (file)
index 0000000..5239489
--- /dev/null
@@ -0,0 +1,7 @@
+<include>
+  <language name="de" sound-path="/snds" tts-engine="cepstral" tts-voice="david">
+    <X-PRE-PROCESS cmd="include" data="demo/demo.xml"/>
+    <!--voicemail_de_tts is purely implemented with tts, we need a files based implementation too -->
+    <X-PRE-PROCESS cmd="include" data="vm/tts.xml"/>
+  </language>
+</include>
diff --git a/conf/lang_de.xml b/conf/lang_de.xml
deleted file mode 100644 (file)
index df50d86..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-<include><!--This line will be ignored it's here to validate the xml and is optional -->
-    <macro name="msgcount">
-      <input pattern="(.*)">
-       <match>
-         <action function="execute" data="sleep(1000)"/>
-         <action function="play-file" data="vm-youhave.wav"/>
-         <action function="say" data="$1" method="pronounced" type="items"/>
-         <action function="play-file" data="vm-messages.wav"/>
-         <!-- or -->
-         <!--<action function="speak-text" data="Sie haben $1 Nachrichten"/>-->
-       </match>
-      </input>
-    </macro>
-    <macro name="saydate">
-      <input pattern="(.*)">
-       <match>
-         <action function="say" data="$1" method="pronounced" type="current_date_time"/>
-       </match>
-      </input>
-    </macro>
-    <macro name="timespec">
-      <input pattern="(.*)">
-       <match>
-         <action function="say" data="$1" method="pronounced" type="time_measurement"/>
-       </match>
-      </input>
-    </macro>
-    <macro name="ip-addr">
-      <input pattern="(.*)">
-       <match>
-         <action function="say" data="$1" method="iterated" type="ip_address"/>
-         <action function="say" data="$1" method="pronounced" type="ip_address"/>
-       </match>
-      </input>
-    </macro>
-    <macro name="spell">
-      <input pattern="(.*)">
-       <match>
-         <action function="say" data="$1" method="pronounced" type="name_spelled"/>
-       </match>
-      </input>
-    </macro>
-    <macro name="spell-phonetic">
-      <input pattern="(.*)">
-       <match>
-         <action function="say" data="$1" method="pronounced" type="name_phonetic"/>
-       </match>
-      </input>
-    </macro>
-    <macro name="tts-timeleft">
-      <!-- The parser will visit each <input> tag and execute the actions in <match> or <nomatch> depending on the pattern param -->
-      <!-- If the function "break" is encountered all parsing will cease -->
-      <input pattern="(\d+):(\d+)">
-       <match>
-         <action function="speak-text" data="Sie haben $1 Minuten, $2 Sekunden übrig $strftime(%Y-%m-%d)"/>
-         <action function="break"/>
-       </match>
-       <nomatch>
-         <action function="speak-text" data="Die Eingabe war ungültig."/>
-       </nomatch>
-      </input>
-      <input pattern="(\d+) min (\d+) sek">
-       <match>
-         <action function="speak-text" data="Sie haben $1 Minuten, $2 Sekunden übrig $strftime(%Y-%m-%d)"/>
-       </match>
-       <nomatch>
-         <action function="speak-text" data="Die Eingabe war ungültig."/>
-       </nomatch>
-      </input>
-    </macro>
-</include><!--This line will be ignored it's here to validate the xml and is optional -->
diff --git a/conf/lang_fr.xml b/conf/lang_fr.xml
deleted file mode 100644 (file)
index 3b2edac..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<include><!--This line will be ignored it's here to validate the xml and is optional -->
-<macro name="msgcount">
-  <input pattern="(.*)">
-    <match>
-      <action function="play-file" data="tuas.wav"/>
-      <action function="say" data="$1" method="pronounced" type="items"/>
-      <action function="play-file" data="messages.wav"/>
-    </match>
-  </input>
-</macro>
-<macro name="timeleft">
-  <input pattern="(\d+):(\d+)">
-    <match>
-      <action function="speak-text" data="il y a $1 minutes et de $2 secondes de restant"/>
-    </match>
-  </input>
-</macro>
-</include><!--This line will be ignored it's here to validate the xml and is optional -->
diff --git a/conf/voicemail_de_tts.xml b/conf/voicemail_de_tts.xml
deleted file mode 100644 (file)
index 7a8f18c..0000000
+++ /dev/null
@@ -1,214 +0,0 @@
-<include><!--This line will be ignored it's here to validate the xml and is optional -->
-  <macro name="voicemail_enter_id">
-    <input pattern="(.*)">
-      <match>
-       <action function="speak-text" data="Bitte geben Sie Ihren Benutzernamen ein, gefolgt von $1."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_enter_pass">
-    <input pattern="(.*)">
-      <match>
-       <action function="speak-text" data="Bitte geben Sie Ihr Passwort ein, gefolgt von $1."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_fail_auth">
-    <input pattern="(.*)">
-      <match>
-       <action function="speak-text" data="Falsche Benutzerdaten."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_hello">
-    <input pattern="(.*)">
-      <match>
-       <action function="speak-text" data="Willkommen in Ihrem Postfach."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_goodbye">
-    <input pattern="(.*)">
-      <match>
-       <action function="speak-text" data="Auf Wiedersehen."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_abort">
-    <input pattern="(.*)">
-      <match>
-       <action function="speak-text" data="Zu viele Fehlversuche."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_message_count">
-    <input pattern="^1:(.*)$">
-      <match>
-       <action function="speak-text" data="Sie haben 1 $2 Nachricht im Ordner ${voicemail_current_folder}."/>
-      </match>
-    </input>
-    <input pattern="^([0,2-9]+):(.*)$">
-      <match>
-       <action function="speak-text" data="Sie haben $1 $2 Nachrichten im Ordner ${voicemail_current_folder}."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_menu">
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
-      <match>
-       <action function="speak-text" 
-               data="Um neue Nachrichten zu hören, drücken Sie $1. Um gespeicherte Nachrichten zu hören, drücken Sie $2, Für erweiterte Optionen, drücken Sie $3. Zum beenden drücken Sie $4."/>
-      </match>
-    </input>
-  </macro>
-
-
-  <macro name="voicemail_config_menu">
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
-      <match>
-       <action function="speak-text" 
-               data="Um eine Ansage aufzunehmen, drücken Sie $1. Um eine Ansage auszuwählen, drücken Sie $2. Um ihren Namen aufzunehmen, drücken Sie $3. Um zum Hauptmenü zurückzukehren, drücken Sie $4."/>
-      </match>
-    </input>
-  </macro>
-
-
-  <macro name="voicemail_record_name">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="Sprechen Sie Ihren Namen nach dem Ton, drücken Sie eine beliebige Taste oder hören Sie auf zu sprechen um die Aufnahme zu beenden."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_record_file_check">
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">
-      <match>
-       <action function="speak-text" 
-               data="Um die Aufzeichnung anzuhören, drücken Sie $1. Um die Aufzeichnung zu speichern, drücken Sie $2. Für eine erneute Aufnahme drücken Sie $3."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_record_urgent_check">
-    <input pattern="^([0-9#*]):([0-9#*])$">
-      <match>
-       <action function="speak-text" 
-               data="Drücken Sie $1 um diese Nachricht als wichtig zu markieren. Um fortzufahren drücken Sie $2."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_listen_file_check">
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">
-      <match>
-       <action function="speak-text" 
-               data="Drücken Sie $1 um die Nachricht erneut zu hören. Um die Nachricht zu speichern, drücken Sie $2. Zum löschen der Nachricht drücken Sie $3. Für die Weiterleitung als Email, drücken Sie $4."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_choose_greeting">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="Wählen Sie eine Ansage zwischen 1 und 3."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_choose_greeting_fail">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="Ungültige Eingabe."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_record_greeting">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="Zeichnen Sie Ihre Ansage nach dem Ton auf. Drücken Sie eine beliebige Taste oder hören Sie auf zu sprechen um die Aufnahme zu beenden."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_record_message">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="Sprechen Sie nach dem Ton. Drücken Sie eine beliebige Taste oder hören Sie auf zu sprechen um die Aufnahme zu beenden."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_greeting_selected">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="Ansage $1 ausgewählt."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_play_greeting">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="$1 ist nicht verfügbar."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_say_number">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="$1"/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_say_message_number">
-    <input pattern="^([a-z]+):(.*)$">
-      <match>
-       <action function="speak-text" data="$1 Nachricht Nummer $2."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_say_phone_number">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="$1."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_say_name">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="$1."/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_ack">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="Nachricht $1"/>
-      </match>
-    </input>
-  </macro>
-
-  <macro name="voicemail_say_date">
-    <input pattern="^(.*)$">
-      <match>
-       <action function="speak-text" data="$strftime($1|%A, %B %d %Y, %I %M %p)"/>
-      </match>
-    </input>
-  </macro>
-
-</include><!--This line will be ignored it's here to validate the xml and is optional -->
diff --git a/conf/voicemail_fr.xml b/conf/voicemail_fr.xml
deleted file mode 100644 (file)
index 2f11c5e..0000000
+++ /dev/null
@@ -1,210 +0,0 @@
-<include><!--This line will be ignored it's here to validate the xml and is optional -->\r
-  <macro name="voicemail_enter_id">\r
-    <input pattern="(.*)">\r
-      <match>\r
-       <action function="speak-text" data="Entrez votre Identification, suivi par $1."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_enter_pass">\r
-    <input pattern="(.*)">\r
-      <match>\r
-       <action function="speak-text" data="Entrez votre code, suivi par $1."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_fail_auth">\r
-    <input pattern="(.*)">\r
-      <match>\r
-       <action function="speak-text" data="Identification incorrect."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_hello">\r
-    <input pattern="(.*)">\r
-      <match>\r
-       <action function="speak-text" data="Bienvenu sur votre répondeur."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_goodbye">\r
-    <input pattern="(.*)">\r
-      <match>\r
-       <action function="speak-text" data="Aurevoir."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_abort">\r
-    <input pattern="(.*)">\r
-      <match>\r
-       <action function="speak-text" data="Trop de tentatives échouées."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_message_count">\r
-    <input pattern="^([^:]+):([^:]+):{0,1}(.*)">\r
-      <match>\r
-       <action function="speak-text" data="Vous avez $1 $2 message$3 dans le répertoir ${voicemail_current_folder}."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_menu">\r
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">\r
-      <match>\r
-       <action function="speak-text" \r
-               data="Pour écouter les nouveaux message, tappez $1, Pour écouter les messages enregistrés, tappez $2, Pour les options avancées, tappez $3, pour sortir, tappez $4."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-\r
-  <macro name="voicemail_config_menu">\r
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">\r
-      <match>\r
-       <action function="speak-text" \r
-               data="pour enregistrer un message d'accueil, tappez $1, Pour choisir votre message d'accueil, tappez $2, Pour enregistrer votre nom, tappez $3, pour retourner au menu principale, tappez $4."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-\r
-  <macro name="voicemail_record_name">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="enregistrez votre nom au bip, puis tappez une touche ou arretez de parler pour arreter l'enregistrement."/>\r
-\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_record_file_check">\r
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*])$">\r
-      <match>\r
-       <action function="speak-text" \r
-               data="Pour écouter l'enregistrement, tappez $1, pour sauvegarder l'enregistrement, tappez $2, Pour réenregistrer, tappez $3."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_record_urgent_check">\r
-    <input pattern="^([0-9#*]):([0-9#*])$">\r
-      <match>\r
-       <action function="speak-text" \r
-               data="Pour indiquer ce messange comme étant urgent, tappez $1, Pour continuer, tappez $2."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_listen_file_check">\r
-    <input pattern="^([0-9#*]):([0-9#*]):([0-9#*]):([0-9#*])$">\r
-      <match>\r
-       <action function="speak-text" \r
-               data="Pour réécouter l'enregistrement à nouveau, tappez $1, Pour sauvegarder l'enregistrement, tappez $2,  Pour supprimer l'enregistrement, tappez $3, pour transférer l'enregistrement à votre mail, tappez $4."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_choose_greeting">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="choisissez un message d'accueil entre 1 et 3."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_choose_greeting_fail">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="valeur incorrect."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_record_greeting">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="enregistrez votre message d'accueil au bip, puis tappez une touche ou arretez de parler pour arreter l'enregistrement."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_record_message">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="enregistrez votre message au bip, puis tappez une touche ou arretez de parler pour arreter l'enregistrement."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_greeting_selected">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="message d'accueil numero $1 selectionné."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_play_greeting">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="$1 n'est pas valide."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_say_number">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="$1"/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_say_message_number">\r
-    <input pattern="^([a-z]+):(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="$1 message numero $2."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_say_phone_number">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="$1."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_say_name">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="$1."/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_ack">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="message $1"/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-  <macro name="voicemail_say_date">\r
-    <input pattern="^(.*)$">\r
-      <match>\r
-       <action function="speak-text" data="$strftime($1|%A, %B %d %Y, %I %M %p)"/>\r
-      </match>\r
-    </input>\r
-  </macro>\r
-\r
-</include><!--This line will be ignored it's here to validate the xml and is optional -->
\ No newline at end of file