[Freeswitch-users] voicemail is not saved

Yungwei Chen yungwei at resolvity.com
Mon Aug 15 23:33:35 MSD 2011


Hi,

I left several voicemails (Each is longer than 3 sec) to a user account, but none is available when I check the mailbox. 
Relevant settings are listed below. What am I missing here? Thanks.

In conf/autoload_configs/modules.conf.xml, mod_voicemail is already loaded.
freeswitch at internal> load mod_voicemail
+OK Reloading XML
-ERR [Module already loaded]
freeswitch at internal> 2011-08-15 14:32:10.666978 [WARNING] switch_loadable_module.c:998 Module mod_voicemail Already Loaded!

Here's the content of conf/autoload_configs/voicemail.conf.xml:
<configuration name="voicemail.conf" description="Voicemail">
  <settings>
  </settings>
  <profiles>
    <profile name="default">
      <param name="file-extension" value="wav"/>
      <param name="terminator-key" value="#"/>
      <param name="max-login-attempts" value="3"/>
      <param name="digit-timeout" value="10000"/>
      <param name="min-record-len" value="3"/>
      <param name="max-record-len" value="300"/>
      <param name="max-retries" value="3"/>
      <param name="tone-spec" value="%(1000, 0, 640)"/>
      <param name="callback-dialplan" value="XML"/>
      <param name="callback-context" value="default"/>
      <param name="play-new-messages-key" value="1"/>
      <param name="play-saved-messages-key" value="2"/>
      <param name="login-keys" value="0"/>
      <param name="main-menu-key" value="0"/>
      <param name="config-menu-key" value="5"/>
      <param name="record-greeting-key" value="1"/>
      <param name="choose-greeting-key" value="2"/>
      <param name="change-pass-key" value="6"/>
      <param name="record-name-key" value="3"/>
      <param name="record-file-key" value="3"/>
      <param name="listen-file-key" value="1"/>
      <param name="save-file-key" value="2"/>
      <param name="delete-file-key" value="7"/>
      <param name="undelete-file-key" value="8"/>
      <param name="email-key" value="4"/>
      <param name="pause-key" value="0"/>
      <param name="restart-key" value="1"/>
      <param name="ff-key" value="6"/>
      <param name="rew-key" value="4"/>
      <param name="skip-greet-key" value="#"/>
      <param name="previous-message-key" value="1"/>
      <param name="next-message-key" value="3"/>
      <param name="skip-info-key" value="*"/>
      <param name="repeat-message-key" value="0"/>
      <param name="record-silence-threshold" value="200"/>
      <param name="record-silence-hits" value="2"/>
      <param name="web-template-file" value="web-vm.tpl"/>
      <!-- if you need to change the sample rate of the recorded files e.g. gmail voicemail player -->
      <!--<param name="record-sample-rate" value="11025"/>-->
      <!-- the next two both must be set for this to be enabled
           the extension is in the format of <dest> [<dialplan>] [<context>]
       -->
      <param name="operator-extension" value="operator XML default"/>
      <param name="operator-key" value="9"/>
      <param name="vmain-extension" value="vmain XML default"/>
      <param name="vmain-key" value="*"/>
      <!-- playback created files as soon as they were recorded by default -->
      <!--<param name="auto-playback-recordings" value="true"/>-->
      <email>
        <param name="template-file" value="voicemail.tpl"/>
        <param name="notify-template-file" value="notify-voicemail.tpl"/>
        <!-- this is the format voicemail_time will have -->
        <param name="date-fmt" value="%A, %B %d %Y, %I %M %p"/>
        <param name="email-from" value="${voicemail_account}@${voicemail_domain}"/>
      </email>
      <!--<param name="storage-dir" value="/tmp"/>-->
      <!--<param name="odbc-dsn" value="dsn:user:pass"/>-->
      <!--<param name="record-comment" value="Your Comment"/>-->
      <!--<param name="record-title" value="Your Title"/>-->
      <!--<param name="record-copyright" value="Your Copyright"/>-->
    </profile>
  </profiles>
</configuration>

In conf/directory/default.xml, user 91000 is defined in domain voicemail_2.
  <domain name="voicemail_2">
    <groups>
      <group name="default">
        <users>
          <user bluebox_id="2" id="91000">
            <params>
              <param name="sip-forbid-register" value="true"/>
              <param name="vm-password" value="xxxx"/>
              <param name="vm-message-ext" value="wav"/>
              <param name="vm-mailto" value="xxx at xxx.com"/>
              <param name="email-addr" value="xxx at xxx.com"/>
              <param name="vm-delete-file" value="false"/>
              <param name="vm-attach-file" value="true"/>
              <param name="vm-email-all-messages" value="true"/>
            </params>
            <variables>
              <variable name="timezone" value="America/Chicago"/>
            </variables>
          </user>
        </users>
      </group>
    </groups>
  </domain>

In my dialplan, calls to 1112223333 will be sent to user 91000's voicemail box if they are not answered.
    <extension name="main_number_2" continue="true">
      <condition field="destination_number" expression="^1112223333$">
        <action application="set" bluebox="settingEndBridge" data="hangup_after_bridge=true"/>
        <action application="set" bluebox="settingFail" data="continue_on_fail=true"/>
        <action application="set" bluebox="autoPlay" data="vm_auto_play=false"/>
        <action application="set" bluebox="settingTimeout" data="call_timeout=30"/>
        <action application="set" bluebox="settingRing" data="ringback=${us-ring}"/>
        <action application="set" bluebox="settingRingXfer" data="transfer_ringback=${us-ring}"/>
        <action application="export" bluebox="sipCalleeIdName" data="sip_callee_id_name=m1"/>
        <action application="export" bluebox="sipCalleeIdNumber" data="sip_callee_id_number=1112223333"/>
        <action application="bridge" data="user/91000@$${location_3}"/>
        <action application="answer"/>
        <action application="voicemail" data="default voicemail_2 91000"/>
        <action application="hangup"/>
      </condition>
    </extension>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list