<p dir="ltr">Hi Bogdan, </p>
<p dir="ltr">I have been able to solve that problem. <br>
The issue was that I had asterisk compiled with file storage enabled instead of ODBC storage. I recompiled asterisk with ODBC storage enabled and now database storage is working. </p>
<p dir="ltr">Thanks. </p>
<p dir="ltr">Nabeel </p>
<div class="gmail_quote">On 14 Jul 2016 11:15 a.m., &quot;Bogdan-Andrei Iancu&quot; &lt;<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <tt>Hi Nabeel,<br>
      <br>
      That means the vmusers and vmaliases do work ok, still the VM
      storage engine does not. Do you have in voicemail.conf the
      following:<br>
          odbcstorage=asteriskrt<br>
          odbctable=voicemessages<br>
      <br>
      <br>
      Regards,<br>
    </tt>
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    <div>On 05.07.2016 08:54, Nabeel wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">I have been able to solve the issue of
          loading numbers without using the voicemail.conf file. </div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra">After adding the line <i>&#39;voicemail
            =&gt; odbc,asterisk,vmaliases&#39;</i> to extconfig.cfg, I
          removed the suffix <span style="font-size:12.8px">&quot; |u &quot; from
            extensions.conf:</span></div>
        <div class="gmail_extra"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_extra">
          <pre style="font-size:0.9em;font-family:&quot;Lucida Console&quot;,&quot;Andale Mono&quot;,&quot;Courier New&quot;,Courier;margin-top:0px;margin-bottom:0px;padding:6px;border:1px solid rgb(235,235,235);color:rgb(102,102,102);line-height:21.5933px;background-color:rgb(251,254,250)">exten =&gt; _VMR_.,n,Voicemail(${EXTEN:4}<b>|u</b>)</pre>
        </div>
        <div class="gmail_extra"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_extra"><br>
        </div>
        <div class="gmail_extra"><span style="font-size:12.8px">Now all
            phone numbers in the subscriber table are correctly linked
            to their mailboxes and I can successfully retrieve voice
            messages</span><span style="font-size:12.8px">. </span></div>
        <div class="gmail_extra"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_extra"><span style="font-size:12.8px">I have
            set &#39;odbcstorage=asterisk&#39; and &#39;odbctable=voicemessages&#39; in
            voicemail.conf, but the &#39;voicemessages&#39; table remains empty
            after leaving a message.</span></div>
        <div class="gmail_extra"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_extra"><span style="font-size:12.8px">Nabeel</span></div>
        <div class="gmail_extra"><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_extra"><span style="font-size:12.8px"><br>
          </span></div>
      </div>
    </blockquote>
    <br>
  </div>

</blockquote></div>