<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 25, 2019 at 1:37 PM Steve Sether <<a href="mailto:ssether@usinternet.com">ssether@usinternet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm having an issue in Asterisk 16 where when I record a new greeting, <br>
the greeting doesn't play when I call the users voicemail.<br>
<br>
I've tracked this down  NULL being inserted into the context column of <br>
the voicemail table.  When Asterisk retrieves the greeting, and the <br>
Context column is is null, it won't play the greeting, and gives this error:<br>
<br>
<br>
[2019-01-25 14:26:04] WARNING[32671][C-00000008]: app_voicemail.c:3995 <br>
retrieve_file: SQL Get Data error! coltitle=context<br>
[SELECT * FROM voicemessages WHERE dir=? AND msgnum=?]<br>
<br>
[2019-01-25 14:26:04] WARNING[32671][C-00000008]: format_wav.c:145 <br>
check_header: Read failed (type)<br>
[2019-01-25 14:26:04] WARNING[32671][C-00000008]: file.c:473 fn_wrapper: <br>
Unable to open format wav<br>
[2019-01-25 14:26:04] WARNING[32671][C-00000008]: file.c:1252 <br>
ast_streamfile: Unable to open <br>
/var/spool/asterisk/voicemail/usitest-VOICEMAIL/253/unavail (format <br>
(g722)): No such file or directory<br>
<br>
<br>
This NULL in Context gets inserted into the greeting row when I record <br>
the greeting via Asterisk.  As soon as I change the NULL to anything <br>
else, the greeting plays normally when I call the users VM.<br>
<br>
Asterisk 11 behaves in a similar manner if I manually insert a NULL into <br>
the context column of a greeting.  However, in Asterisk 11 when I record <br>
a greeting the context column gets set to the empty string, not NULL, so <br>
this should never happen.<br>
<br>
 From what I can tell, either the playback function needs to be modified <br>
to ignore NULL values in the Context column, or the function that writes <br>
the greeting needs to be modified to not insert NULLS into this column.<br></blockquote><div><br></div><div>Go ahead and open an issue at <a href="https://issues.asterisk.org">https://issues.asterisk.org</a>.  Make sure you indicate</div><div>which DBMS is being used as the backend and which version of unixODBC </div><div>is being used.  The odbc and voicemail configs will help as well.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><b style="font-family:arial,helvetica,sans-serif;font-size:12.8px">George Joseph</b><br></div><div dir="ltr"><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="1">Digium - A Sangoma Company | Software Developer | Software Engineering</font></div><font size="1">445 Jan Davis Drive NW - Huntsville, AL 35806 - US</font></div><div dir="ltr"><font size="1">direct/fax: +1 256 428 6012</font><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="1">Check us out at: <a href="https://digium.com/" style="color:rgb(17,85,204)" target="_blank">https://digium.com</a> · <a href="https://sangoma.com/" style="color:rgb(17,85,204)" target="_blank">https://sangoma.com</a></font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><img src="https://www.digium.com/sites/digium/themes/digium/logo.png" width="96" height="60"></div></div></div></div></div></div></div>