Home Forum Developers IP0x mail and voice mail setup

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


switchfinreseller
useravatar
User Info

mail and voice mail setup

Hi,

I ran into an issue where there my IP04 acted as if the was not enough space to spool a voice mail so switchfin could attached it to an email and send it out.  The wav file sent was not full size and could not be played. 

This also made me wonder about running out of voice mail storage room. 

I see /var/spool/ appears to be located at /var/spool where /var/spool/asterisk is actually linked to /persistent/sounds/voicemail  Is this correct?

My IP08 shows / as 90% full.

I installed a 8GB SD card and it shows up at prompt with df.  It does not show up in the GUI.  :-( 

Is there a way to change system settings to redirect the spool location AND /var/spool/asterisk/voicemail storage over to the SD card?

Thanks for any help offered.


Administrator has disabled public posting
arturoportilla
useravatar
User Info

Re: mail and voice mail setup

i have the same problem,
you need to mount SD manually

i do that, and found errors creating files in SD, i think this is no a working feature at this moment in switchfin images, may be i am wrong.

Do:

Code:


>modprobe mmc_spi
>modprobe mmc_block

then

Code:


>mount -t vfat /dev/mmcblk0 /mnt/mmc

OR

Code:


>mount -t vfat /dev/mmcblk0p1 /mnt/mmc

one of those will work on you.

-check if you can create and delete files manually, in you SD.
( i can't ) sometimes i make a file but it creates a directory.

Tell me your results

Arturo.


Administrator has disabled public posting
switchfinreseller
useravatar
User Info

Re: mail and voice mail setup

I just flashed mine from scratch and changed ip04>nand write 0x1000000 0x0 800000 to ip04>nand write 0x1000000 0x0 1000000 because I wanted to see if this would change the size of the / partition.  It did not so I guess the image actually contains fixed partition sizes.

With my IP04 100% clean flashed and rebooted I powered it down and placed a Sandisk 8GB SD card in it and powered it up.  My image is uImage-ip02-ip08-v383.img

I watched it boot at the serial port and saw this:
mmc0: new SDHC card on SPI
mmcblk0: mmc0: 0000 SU04G 3.69 GiB
mmcblk9: p1
found a mmc/sd card
the card has been already formatted

root@ip0x:~> df
Filesystem   1024-blocks  Used  Available  Use%  Mounted On
/dev/root     17905       15761  2144       88%   /
ubi0         219306        444  213852       0%  /persistent
/dev/mmcblk0pl 3860600      28   3860572     0%  /mnt/sd

ls -la > /mnt/sd/files (it writes fine)
ls -la /mnt/sd  (I see it)
vi /mnt/sd/files (opens and looks fine)

I tested it some more and it appears to be working just fine.  I wish I could use it to store voice mail, /var/log/messages and email spooling for attaching voice mail wav files to email

:-\


Administrator has disabled public posting
switchfinreseller
useravatar
User Info

Re: mail and voice mail setup

Oh but the 8GB SD card does not show up in the System Status of the GUI.  :-(


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: mail and voice mail setup

hehehehe the System Status was designed well before we had the SD reader working so it was never put in there, i will add it to the todo list for the GUI!!

Thanks
Jason


Administrator has disabled public posting
switchfinreseller
useravatar
User Info

Re: mail and voice mail setup

Jason;

  I have a off-thread question.  If you look at the above post, can you tell me if I am flashing the IP04 correctly?  I do not fully understand the whole hex thing and this statement: nand write 0x1000000 0x0 800000

  My weak understand is saying start writing at location 0x1000000 for a length of 800000.  Is 800000 the correct value to use?

Thanks.


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: mail and voice mail setup

Hi Switchfinreseller

your understanding is correct however i would set the the 800000 to whatever the transfered value in hex was (Round it up) you should see something like:
-----------------------------------------
Bytes transferred = xxxxxxx (xxxxxx hex)
-----------------------------------------
use the value represented in hex.

Thanks
Jason


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 91
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked