<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., "Bogdan-Andrei Iancu" <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> 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>'voicemail
=> odbc,asterisk,vmaliases'</i> to extconfig.cfg, I
removed the suffix <span style="font-size:12.8px">" |u " 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:"Lucida Console","Andale Mono","Courier New",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 => _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 'odbcstorage=asterisk' and 'odbctable=voicemessages' in
voicemail.conf, but the 'voicemessages' 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>