IOUtilities gives me an exception of the file system resources

I wrote an application to analyze lyric, the premiere, I use IOUtilities.streamToBytes to convert the integer to a byte [] and crawled, but after reviewing some files (7-10), I got an error of 'Resource file system', I don't know why it happens, here is the code.

private void parseFile(FileConnection LRC) throws IOException {

    byte[] LRC_byte = IOUtilities.streamToBytes(LRC.openInputStream());
    LRC.close();

    if (LRC_byte.length < 10) {
        // not valid
        return;
    }

    String encoding = DEFAULT_ENCODING;

    if ((LRC_byte[0] == -2) && (LRC_byte[1] == -1)) {
        encoding = "UTF-16LE";
    } else if ((LRC_byte[0] == -1) && (LRC_byte[0] == -2)) {
        encoding = "UTF-16BE";
    } else if ((LRC_byte[0] == (byte) 0xEF) && (LRC_byte[1] == (byte) 0xBB)
            && (LRC_byte[2] == (byte) 0xBF)) {
        encoding = "UTF-8";
    }

    //
    // Do someting...
    //
}

But after I change the IOUtilities.streamToBytes of inputstream, below is the code

private void parseFile(FileConnection LRC) throws IOException {

    InputStream input = LRC.openInputStream();
    input.mark(3);
    byte[] encode = new byte[3];
    input.read(encode);
    input.reset();

    String encoding = DEFAULT_ENCODE;

    if ((encode[0] == -2) && (encode[1] == -1)) {
        encoding = "UTF-16LE";
    } else if ((encode[0] == -1) && (encode[1] == -2)) {
        encoding = "UTF-16BE";
    } else if ((encode[0] == (byte) 0xEF) && (encode[1] == (byte) 0xBB)
            && (encode[2] == (byte) 0xBF)) {
        encoding = "UTF-8";
    }

    //
    // Do someting...
    //

    input.close();
    LRC.close();
}

Now, everything works fine, I really donnot know why version 1 do not work, but version 2 works fine.

Why? What is the problem with the first version? It takes a day to find it.

It seems that you do not close the input stream in the first version of the code. Maybe it's the reason.

Tags: BlackBerry Developers

Similar Questions

  • Create a folder in the file system

    Quote from the old forum:

    Rohan

    Messages: 12
    Join date: Jun 2008

    Create a folder in the file system
    Posted the: July 4, 2008 06:06
     
    Hi all

    I want to create a folder in the root of the blackberry device file system. Or you can say anywhere in the device file system I want to make a folder through my code. Is it not possible? How should I approach to achieve this?

    Thank you
    -Rohan

    gmay

    Messages: 231
    Join date: Jun 2007

    Re: Create a folder in the file system
    Posted the: July 4, 2008 10:53
     
    To create directories, please see FileConnection.mkdir)

    http://tinyurl.com/63yj23

    Gordon
    BlackBerry developer journal
    www.blackberrydeveloperjournal.com

    Rohan

    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 02:12
     
    Hi Gordon,.

    Thanks for the reply and the link. I've been there. But I don't get the use of FileConnection.mkdir)

    Can you please let me know how extract use mkdir?

    Thank you
    -Rohan

    Rohan
    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 04:00
     
    Hello

    After trying for a while, I get it how to use FileConnection.mkdir () in my code.

    But I am facing a problem here. When the mkdir() is executed, it gives me FileIOException: file system error

    Here is my code that attempts to create a directory called myDir

    try {}
    FileConnection fc = (FileConnection) Connector.open ("file:///store/home/myDir", Connector.READ_WRITE);
    If (! fc.exists ()) {}
    FC.mkdir ();


    }
    } catch (Exception e) {}
    Dialog.Alert (try ());
    }

    I even tried to give the path like 'file:///store/home/myDir/' because I tried to create a directory. But it also gives the same exception.

    Please let me know if I'm doing one any mistake here.

    Thank you
    -Rohan

    Rohan

    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 06:10
     
    Hello

    I think the problem is... BlackBerry does not allow a directory to be created in the folder /store/ the device. Because I am able to create a directory in the directory/SDCard /.

    Is this something that we cannot create a directory in the root directory of the device?

    Rohan

    Messages: 12
    Join date: Jun 2008

    Re: Create a folder in the file system
    Posted the: July 7, 2008 06:17
     
    Hello

    I'm sorry to keep posting here because I'm trying various things in my code and got to know more. But I write as soon as I get a result, so that it can be useful for those who are looking for the same thing.

    I even tried to create a directory in/store/home/user/and it works fine. So that means, we need to create our directories in the directory/store/home/user or/SDCard /.

    Please correct me if I'm wrong.

    Thank you
    -Rohan

    yog123

    Messages: 2
    From: mumbai
    Join date: Apr, 2007

    Re: Create a folder in the file system
    Posted the: July 15, 2008 09:49
     
    Can someone explain this in detail...
    When I tried to create the folder on the memory card or memory in the camera, it gives exception as file system error...
    Is it related to any authorization or specific parameters... ??
    JDE 4.2.1.16
    8100 Simulator...
    Thanks in advance...

    Please make sure that the BlackBerry Simulator has been configured to support a micro SD card.  For this in the BlackBerry JDE by clicking on the menu Edition, by selecting Preferences, by clicking on the Simulator tab, then on the tab memory and filling of the size of the SD card and the SD card image settings.

    Hi yog123,

    The code you mentioned is valid, but I guess you make a small mistake here.

    Whenever you want to create a directory, you should give "/" after the name directory to inside the Connector.open)

    Just put "/" after the directory name "sp" in your code as shown below.

    FileConnection fconn = (FileConnection)Connector.open("file:///SDCard/BlackBerry/pictures/sp/",Connector.READ_WRITE);
    

    Please let us know if you still find no problem.

    Thank you

    -Rohan

  • Unable to write the email in the box to the letters. Make sure the file system allows write privileges, and you have enough disk space to copy the mailbox.

    How to make sure the file system gives me write rights? This started last night on my Dell desktop running Windows 10, I also a Dell laptop running Windows 10 and my emails come on it without any problem, but the Office of my home computer is so I need to get my emails on this work. Please answer as soon as POSSIBLE with everything you might need me

    you have an anti virus? try to turn it off.

  • The names of source files are larger than is supported by the file system...

    "The names of source files are larger than is supported by the file system. Try to move to a location that has a shorter path name, or try renaming to name more short (s) before performing this operation. »

    There are about 10 subfolders on the computer. None can be deleted, moved, or renamed without one appearing in the message. I tried UNLOCKER ASSISTANT & DELINVFILE get rid of this file. Once more, none worked. Command prompt did not work as well. Please help me, this issue will not go away on my desk.

    Try first to remove bypassing the Recycle Bin using SHIFT-DEL(thanks, Michael Murphy) rather than just led

    Try to use one of the following free products to remove the file/folder.  Unlocker to: http://www.softpedia.com/get/System/System-Miscellaneous/Unlocker.shtml or file Assassin http://www.malwarebytes.org/fileassassin.php (with or without forcing the deletion and you have to force the deletion in this case: http://www.mydigitallife.info/2008/12/27/force-delete-cannot-delete-locked-or-in-used-files-or-folders-with-fileassassin/). These programs often work when normal functions remove Vista not work correctly.  Have you tried Unlocker (I don't know if it's the same as Unlocker Assistant) but if this if it is different, gives it a try.

    Here is an article on this topic (related to another topic, but essentially the same problem) with a number of suggestions - which can work for you: http://www.howtogeek.com/forum/topic/how-to-delete-source-file-names-are-larger-than-is.

    I hope that one of these options help.  If this isn't the case, after return and we will see if we can find another answer.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • The file system on the disk structure is corrupted and unusable. ...

    Dell Optiplex 3010
    WD5000AAKX

    Windows 7 Pro SP1 64 bit

    This is the drive that contains the operating system and was just replaced on 23 July. I restored the disk backups using Acronis True Image 2014.

    From July 25, I started to see

    The file system on the disk structure is corrupted and unusable. Please run chkdsk on the volume of OS utility.

    in the system (Source Ntfs, event ID 55) event log.

    I ran a CHKDSK /R on the disk and it reported no problem with the drive.

    Except for the scary messages in the system event log, I see no problem, but I also don't see these errors on the other disk in the machine.

    [I forgot to mention that the drive passes diagnostics pre-boot]

    What happens here?

    I see nothing in the article in PC Magazine directly addressed the problem. You were talking about the complexity and the possibilities of seriously screw things with True global Image?

    In addition, the link to the Microsoft solution irritates me to 'we're sorry, the requested page is not found.

    However, I think I found the solution, and it is quite related software.

    After scouring the logs of system events and application, I realized that the error I've been see is still bracketed by the subsystem VSS starts and stops and was almost always related to a backup operation or a virus scan.

    Some research (Google search, in fact) have allowed me to suspect that successful shadows of the disc were somewhat corrupt, so I simply deleted them (vssadmin delete shadows / for = c: / all). Since then, there has been no error reported, new instant shade have been created, and everything else works OK.

  • BlackBerry Curve Smartphones to synchronize with Outlook - could not find in the file system table

    I just upgraded from a Pearl to a curve, loaded the desktop software and tried to sync my MS Outlook, but it gives an error message "Cannot find table in the file system.

    I found a thread that advocates a solution (ID KB15278), but it did not work.  The final solution is to uninstall and reinstall the desktop software, and when I try to do it via the Control Panel, it will not remove the software.  I seem to have both Version 4.2 and 4.7 of the software on my PC.

    Anyone got any suggestions?

    not serious. Read this one.

    http://www.BlackBerry.com/BTSC/KB03490
    Internal error 2738. Could not access VBscript.

  • Drop database connectable to including the file system data sheets files

    I did experiments with the connectable Oracle12c to database functionality and have noticed that when I "drop database connectable to pdb1 including datafiles', I get the message that the database snap-in has been dropped."  I also see that all files in the tablespace for the PDB except the SYSTEM data file have been deleted.


    I want to remove the folder that has been used for the pluggable database after that the PDB fell, but cannot because the file SYSTEM data is left behind.

    Is it possible to delete the data file SYSTEM for a pluggable database once he fell?  Or this part forever from the database of the container?

    Thank you

    This forum works on a Server Windows 2012.

    Thanks for the Bug information.  There is no error in the alert.log file, but I found a trace file with:

    ORA-01265: cannot remove the D:\ETC\ETC\SYSTEM01 DATA. DBF

    ORA-27056: could not delete file

    OSD-04024: cannot delete the file.

    S/O-error: (32 OS) the process cannot access the file because it is being used by another process.

    This seems to be the same problem as described in bug 17659954, so I can follow in investigating the recommendations of bug

    Thanks again

  • Rebuild the file system of the patch in Oracle Apps 12.2.3

    I worked on a test environment for applications Oracle 12.2.3, mainly in the field of the adoption. I encountered an error executing adoption phase = prepare and adopt phase = fs_clone.

    I have followed this issue down to missing files in the fs2 (edition patch) file system. In fact, almost everything is missing, including the APPL_TOP directory. I think I deleted the patch directory while fixing other problems encountered when executing adoption.

    Is it possible to delete the file system obsolete runtime adoption before there was a chance to populate the new file system? For example, during a session of correction your patch won't install or start-up, so you give up the file system and run adoption phase = cleanup_mode = full cleaning.

    Is it possible to rebuild the fix file system by using adoption? I thought it was a possibility, but have been unable to use adoption do that because he fails to run. Running adoption phase = prepare will fail because of missing files in the stage of publishing and adoption = actualize_all patch will fail because it cannot work if it is not in a fixed cycle.

    Thanks in advance!

    We discovered that it was. We have several test environments on our servers, and each has its own oraInventory in oraInst.loc. A change has been made to the oraInst.loc and is no longer, he pointed to the locations needed oraInventory. This caused adoption phase = fs_clone to fail because he could not find the correct houses. You can replicate this at any time by changing the phase adoption oraInst.loc and race = phase fs_clone or adoption = prepare. Once us returned to the correct oraInventory, fs_clone worked and populated the directory correctly, automatically. There is no mention of this requirement in the documentation, so we had lot to track down the problem.

  • iSCSI freeNAS failing to create the file system

    Hey guys,.

    IM pretty new to the present and iv tried to work this point for some time now...

    I got a box of freenas with an array of 5 TB in it... I would like to make a 1 TB logical unit number and mount it on my ESXi 4 server.

    my configuration is:

    FreeNAS < = 10.10.10.1 = > 2x1GB links using the FEC (Fast or channel) [10.10.10.0/24] < = 10.10.10.2 = > ESXi

    I managed to configure the FreeNAS successfully [as far as I can tell...], when I add the target to the iSCSI software storage card it finds the logic unit number and everything seems good.

    the problem starts when I try to add as a data store... I select:

    Disk/LUN > freeNas LUN > leave default primary partition > give it a simple name > chose the minimum file size of 512 GB > finish

    and I get the following error...

    Call "HostDatastoreSystem.CreateVmfsDatastore" of object "ha-datastoresystem" on ESXi '192.168.2.202' failed.

    Operation failed, the diagnostic report: unable to create the file system, please see VMkernel connect you for more details.

    I am unshore where this newspaper VMkernal but that's what I'm going to start hunting for the next...

    in which case it may be useful, I am attaching screenshots of all my configs...

    Here, any help would be great!

    Thank you

    Hi, you can follow this tutorial video and see if you have missed at all stages: http://www.youtube.com/watch?v=Dc20IT1msAk

  • Access to the file system

    My script needs a Framemaker template file to create a new file. I did work hard-code the path to the template in the script:

    sFilename = "C:\\Users\\gisteppen\\Desktop\\fm change bars\\dev\\changes-template.fm";

    I want to make is easy to distribute. I want the script to search for this template file in any directory the script is in, but I find that it won't work if I just put the model name without the path like this:

    sFilename = "changes - template.fm";

    Is there a way to get the current directory where the script is the file system? Then I could build the path absolute Fm seems to need.

    Or maybe there's a better way to go about this?

    Thank you

    Mark

    You can do something like the code below, which detects a settings file with the same name as the script, but with a .cfg extension.

        // Make a File object for the settings XML file.
        var settingsFile = new File($.fileName.replace (/\.jsx$/i , ".cfg"));
        if (settingsFile.exists === false) {
            $.writeln ("Settings file does not exist: " + settingsFile.fsName);
        }
    

    The property of. Filename $ gives you the path to the script running. Here, I am replacing the .jsx by .cfg extension.

    In your case, you could use something like this:

        // Make a File object for the template.
        var template = new File($.fileName.replace (/[^\/]+$/, "changes-template.fm"));
        if (template.exists === false) {
            $.writeln ("Template does not exist: " + template.fsName);
        }
    

    Important: make sure that you save the script before using this code. $. Filename returns (Script #) from a script without a title.

    -Rick

  • Recursive loop through the file system.

    Hello!

    I'm trying to figure if Javascript is my answer to my problem.  I have been able to re - write all my AppleScript scripts that manipulate Illustrator with the exception of those that he had to use the file system.  We stayed in PC at work and now I have to figure this out.  Our art files are saved with a number of 7 digits, followed by the name of art in the file.  Ex: 1000049-Bob Garage.  My applescript had a recursive loop that worked its way down through the structure of the files on our server art until it finds the record low where it belonged, then saved in itself.  Here is an example of how the structure of server files (these are the folder names) is extended:

    1000000-1004999

    1005000-1005999

    1010000-1014999

    and so on.

    The script would load all foldernames in the first level of the directory, loop through them and watch the first and last name of each of these folder names, then compare the Illustrator file name to them.  If my file is between the two, then the loop itself, called loaded the files inside of that folder and in doing so, working its way down through the folders through the tree structure until there where records is no longer.  At this point, the file was saved, in the order, where it should be.

    I have no idea on how to start this task with Javascript, if this is possible even with a language developed for browsers.  I'm with other people who are frustrated by such a widely adopted language, if little info is available on its use outside the browser.  If anyone can tell me all resources dealing with Javascript programming of the file system, or even to have the kindness to write this little monster for me, I'd always in your debt!

    Thanks in advance for any time you spend with this problem!

    Open the ESTK, and then on the Help menu, you will find a link to the Javascript Tools Guide. You will find everything that you need in Chapter 3 file system access.

  • What can I do when my ps3 displays the file system of the disk drive is corrupted and will be restored?

    What can I do when my ps3 displays the file system of the disk drive is corrupted and will be restored?

    Disconnect, and then try to connect again. Use a different cable.

  • I ran CHKDSK, the report tells me I have problems with the file system, usn journal. ___

    I ran CHKDSK, the report tells me that I have problems with the sys file. I ran CHKDSK/F, it is said it fixed the problem but I ran CHKDSK again and it shows that the same listed the issues.

    Describe how you run chkdsk.

    That is what the report said: you have problems with the sys file?

    CHKDSK examines the disk space and use of the disk for the table of allocation of files (FAT) and NTFS file systems. CHKDSK provides information specific to each file system in a situation report. The report shows the errors found in the file system. If you run chkdsk without the /f on an active partition command line option, it can report errors because it cannot lock the drive. You should use chkdsk occasionally on each disk to check for errors.

    If you run chkdsk from a command prompt while Windows is running, it can report errors or it may not report errors - and it may report different
    Errors each time you run.  If this is the case, it could just be the way you run chkdsk.

    Here's how Microsoft explains this observation:

    "... CHKDSK may report that the disc is damaged, even when there is no
    current real corruption. This can happen if NTFS happens to modify
    areas of the disc on behalf of some programme activities that CHKDSK is
    review at the same time. To check a volume correctly, the volume
    must be in a static state, and the only way to ensure that the State is
    to lock the volume. CHKDSK only locks the volume when /F or/r (which
    involves the 'F') is specified. For example, you may need to run CHKDSK more than
    time so that it can complete all the steps in read-only mode. »

    If you run chkdsk from a command prompt, you are not the necessary static state and you can encounter errors "when no real corruption is present. This is how it works when you use this way.  Any changes made to a NTFS file system modifies the USN Journal.  If you are not in a static state, your USN change Journal probably all the time, so what you see (says something like that) can be quite normal.

    Two ways to ensure that you are in a static state is to run chkdsk from the Recovery Console or to schedule a chkdsk to run the next time that the system
    Restart by answering Yes to the question:

    Would you want to check this volume to be the next time the system restarts?

    If chkdsk reports errors when running in a static state, the errors should be investigated, resolved or explained.  This may take several
    chkdsk runs all of the issues and some problems cannot be resolved by chkdsk.

    If chkdsk runs the next time the system is restarted, the activity and the result will be displayed in the application event log.  Look in the Application log for
    Winlogon events and a source have the date and the duration nearby time chkdsk.

    It is in fact a chkdsk additional reading if you want to learn about it and it will explain everything you see and why your expectations exceed reality.

    Please vote my posts as helpful so I can get a lot of points. I'm saving for a pony!

  • Unable to defragment the hard drive get a message that says: incosistancies in the file system

    Original title: cannot defragment the hard drive

    I have windows xp. All dates are updated. Whenever I try to defragmant my c drive I get a message that says: incosistancies in the file system and told me to run chkdsk and scan disk and try to defragment again but I keep getting same message. How can I fix it?

    Hi cliffordsevec,

    Follow these methods.

    Method 1: Follow these steps:

    Step 1: Relocation of defragmentation

    (a) in the disk, find the directory c:\Windows\Inf. If the system directory is not on the c: drive or not named Windows, find by clicking on "Start", then "run" and type %Windir%\Inf in the area.

    (b) find the file called dfrg.inf.

    (c) right click on the file and select "install".

    Step 2: Repair defrag

    un) Click on "Start", then "run", run this command: regsvr32 dfrgsnap.dll.

    (b) click "Start", then "run" and execute this command: regsvr32 dfrgui.dll.

    (c) run Defrag.

    Method 2: Follow the steps in the article.

    Disk Defragmenter does not work on a Windows XP-based computer

    http://support.Microsoft.com/kb/922379

    Method 3: Follow the steps in the article to check the drive for errors.

    How to perform disk error checking in Windows XP

    http://support.Microsoft.com/kb/315265

    Note: If bad sectors are found in the hard drive, then it could try to fix this particular sector. If you have any data on that, it can get lost.

  • The file system on the disk structure is corrupted and unusable. Please run chkdsk on the volume D: utility.

    However, chkdsk finds no problems, so what happens?

    Checking file system on D:
    The type of the file system is NTFS.
    Volume label is A RAID.

    One of your disks needs to be checked for consistency. You
    may cancel the disk check, but it is strongly recommended
    that you continue.
    Windows will now check the disk.
    Cleaning of minor inconsistencies on the drive.
    Cleaning 9 unused entries index $SII of file 0x9.
    Cleaning 9 unused entries index $SDH of file 0x9.
    Cleaning unused 9 security descriptors.
    CHKDSK checks Usn Journal...
    Audit of the USN Journal is complete.
    CHKDSK is verifying file data (stage 4 of 5)...
    File data verification completed.
    CHKDSK is verifying free space (step 5 of 5)...
    Free space verification is complete.

    244196000 KB total disk space.
    126454172 KB in 238052 files.
    109736 Ko 22501 index.
    0 KB in bad sectors.
    868124 KB in use by the system.
    65536 KB occupied by the log file.
    116763968 KB available on disk.

    4 096 bytes in each allocation unit.
    61049000 total allocation on the drive units.
    29190992 allocation units available on disk.

    He is so little known about your configuration - because the forums MS Answers do not ask for information, when a new question is asked.

    If you run some kind of RAID configuration, you might do better if you describe your RAID configuration and after the actual event that you see in the event log (is it event ID 55?).  Then maybe you will get some ideas of the Microsoft Support engineer who might actually work.

    You see just this event in the paper at random times or is it when you try to run a specific operation and if yes, what operation triggers the event?  Here is an article of MS to help get you started, but if you use Google to search for the error message, you can find more ideas:

    http://support.Microsoft.com/kb/246026

    If sfc/scannow solves your problems, I'll send you (or your charitable organization preferred) US $100.

    Here's how to publish events to the event to display the log files:

    If you double-click on an event, it will open a window of properties with more information.  On the right are black up and down arrow keys to scroll through the open events. The third button that looks like two overlapping pages is used to copy the details of the event in your Windows Clipboard.

    When you find an interesting event that occurred at the time of your question, click on the third button at the top and arrows to copy the details and then you can paste the details (right click, paste or CTRL-V) the text in detail here for analysis.  Remove all personal information from your information after you paste If you are forced to do so.

    If you paste an event, it will look something like this annoying system startup event:

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7035
    Date: 14/07/2010
    Time: 17:54:18
    User: Jose
    Computer: computer

    Description:
    The Remote Access Connection Manager service was sent successfully a starting control.

    To get a fresh start on any log of the event viewer, you can choose to clear the log (the log backup is available), and then reproduce your problem, then just look at the events around your show and troubleshoot events that are happening when you have your question.

    You can search for events on the World Wide Web and get ideas.  It's where people events they see and then to the top of their questions, ideas and solutions:

    http://www.EventID.NET/

    If you find your event in the discussion, the first idea or discussion does not necessarily mean it is the "answer" to your situation, so read through all the ideas to find the one that sounds more like your situation.

Maybe you are looking for

  • 641 error code when you try to update

    I have a persistent error Code 641 when the attempt to update through Windows Update with Windows Vista Home Premium... error occurred after an attempt to update routine does not have 10 of 22 files update... same event on two machines (same OS)... s

  • HP Pavilion model p6703w: restore the system image new hard drive

    Failed hard drive. Brought new and try to make a system image restore. Boot using the Windows 7 repair disk. Start the image recovery. Work for a minute or two and gives me the following error. Windows backup cannot extend or mount the recovered volu

  • Upgrade to window 10 to will, this removes DVD Blueray and beats audio

    I Tousch Smart Product name: 520-1050 Windows 7 Home Premium 64-bit Service Pack 1, this computer have BluRey DVD and the sound beats audio if I update to 10 window will I miss the bluray and the program audio beats

  • TFS 2013 Shell Extension now failing

    TFS Shell Extension has worked well for me for months.  Now all of a sudden the overlays of shell still appear, but when I click it, nothing happens.  I tried to reinstall, and it worked again for about a day, then has not yet.  Any advice out there?

  • Users hear MoH when RTC hang up communication

    IP phones begin play at the Ministry of health when the PSTN phone hangs up. After hearing the Department of health for about 10 seconds, the call disconnects. The system is CUCM v10.5.1. The PSTN gateway is a 2951 (IOS 15.4 (3) M) with T1 - PRI rela