Page 1 of 1

can't find httpd on asterisk

PostPosted: Mon Apr 23, 2012 11:28 am
by akmayuga
hi,

i installed vicibox and it runs perfectly but the only thing is i cant find the "httpd path" to allow access in recordings.

please help....

thanks

Re: can't find httpd on asterisk

PostPosted: Mon Apr 23, 2012 2:52 pm
by GaD
What is it that you are trying to accomplish?

Re: can't find httpd on asterisk

PostPosted: Tue Apr 24, 2012 9:36 am
by akmayuga
hi,

thanks for the reply...

we are trying to access" http ://ipaddress/recordings" and it only shows that the page is forbidden,we read some forums that we need to edit something in httpd.

Or maybe you have other way to help us regarding on this issue. please..........

thanks

Re: can't find httpd on asterisk

PostPosted: Wed Apr 25, 2012 3:14 am
by DomeDan
Then its this file: /etc/apache2/conf.d/vicirecord.conf here is my file:
Code: Select all
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"

<Directory "/var/spool/asterisk/monitorDONE">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
   <files *.mp3>
      Forcetype application/forcedownload
   </files>
</Directory>

and this is the directory: /var/spool/asterisk/monitorDONE/ here are how my permissions looks:
Code: Select all
# ls -l /var/spool/asterisk/
total 12
drwxrwxrwt 2 root     root       40 2012-04-25 10:04 monitor
drwxr-xr-x 9 wwwrun   root     4096 2012-04-24 12:53 monitorDONE
drwx------ 2 root     root     4096 2012-04-24 12:58 outgoing
drwxr-xr-x 3 asterisk asterisk 4096 2011-12-14 06:09 voicemail

# ls -l /var/spool/asterisk/monitorDONE/
total 28
drwxr-xr-x 2 root root 4096 2012-04-24 12:53 FTP
drwxr-xr-x 2 root root 4096 2012-04-24 12:53 FTP2
drwxr-xr-x 2 root root 4096 2012-04-24 12:53 GSM
drwxr-xr-x 2 root root 4096 2012-04-24 12:53 GSW
drwxr-xr-x 2 root root 4096 2012-04-24 12:53 MP3
drwxr-xr-x 2 root root 4096 2012-04-24 12:53 OGG
drwxr-xr-x 2 root root 4096 2012-04-24 12:53 ORIG

Re: can't find httpd on asterisk

PostPosted: Wed Apr 25, 2012 9:22 am
by akmayuga
thanks rot the reply,

maybe i did something wrong. i put another harddrive and partition it (file system ext3) mounting it to /var/spool/asterisk/monitorDONE, now i checked my root mail and it is giving me this message, "mv: cannot move `/var/spool/asterisk/monitorDONE/20120425-021257_1234567890-all.wav' to `/var/spool/asterisk/monitorDONE/ORIG/20120425-021257_1234567890-all.wav': No s$ :no such file or directory"

Can you give me a guide how to partition the 2nd harddrive and the correct mounting point using yast2?

Re: can't find httpd on asterisk

PostPosted: Thu Apr 26, 2012 3:53 am
by DomeDan
ok, does the directory /var/spool/asterisk/monitorDONE/ORIG exist? maybe you just need to create that directory
post "ls -l /var/spool/asterisk/"
and the mount-options "cat /etc/fstab"
verify that it is mounted "df -h"

Re: can't find httpd on asterisk

PostPosted: Thu Apr 26, 2012 8:55 am
by akmayuga
hi DomeDan,

thanks for the reply.... i checked those directory you've send...

yes the "cd /var/spool/asterisk/monitorDONE/ORIG" does exist
here is it.
Code: Select all
ipbx:~ # cd /var/spool/asterisk/monitorDONE/ORIG
ipbx:/var/spool/asterisk/monitorDONE/ORIG # ls
20120426-030624_12345679890-all.wav   20120426-183824_12345679890-all.wav
20120426-030740_12345679890-all.wav  20120426-184606_12345679890-all.wav
20120426-031402_12345679890-all.wav  20120426-185054_12345679890-all.wav
20120426-181814_12345679890-all.wav  20120426-185325_12345679890-all.wav
20120426-182123_12345679890-all.wav   20120426-193323_12345679890-all.wav
20120426-183457_12345679890-all.wav   20120426-193948_12345679890-all.wav
ipbx:/var/spool/asterisk/monitorDONE/ORIG #

here is our "ls -l /var/spool/asterisk/"
Code: Select all
ipbx:~ # ls -l /var/spool/asterisk/
total 12
drwxrwxrwt 2 root     root       40 Apr 26 11:42 monitor
drwxr-xr-x 9 wwwrun   root     4096 Apr 26 11:43 monitorDONE
drwx------ 2 root     root     4096 Apr 25 18:34 outgoing
drwxr-xr-x 3 asterisk asterisk 4096 Jan 26 06:02 voicemail
ipbx:~ #

our mount-options "cat /etc/fstab":
Code: Select all
devpts  /dev/pts          devpts  mode=0620,gid=5 0 0
proc    /proc             proc    defaults        0 0
sysfs   /sys              sysfs   noauto          0 0
debugfs /sys/kernel/debug debugfs noauto          0 0
usbfs   /proc/bus/usb     usbfs   noauto          0 0
/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVG904ZHSESNKV-part1 / ext3 defaults 1 1
/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVG904ZHSESNKV-part2 swap swap defaults 0 0
tmpfs   /var/spool/asterisk/monitor       tmpfs      rw,size=6G              0 0

Re: can't find httpd on asterisk

PostPosted: Fri Apr 27, 2012 5:52 am
by DomeDan
ok, that other harddrive you talked about, I thought it was mounted.
does your /etc/apache2/conf.d/vicirecord.conf file differ from mine?

Re: can't find httpd on asterisk

PostPosted: Fri Apr 27, 2012 9:21 am
by akmayuga
hi DomeDan,

thanks for the reply....

does your /etc/apache2/conf.d/vicirecord.conf file differ from mine?

yes, its the same as yours.

Code: Select all
<Directory "/var/spool/asterisk/monitorDONE">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
        <files *.mp3>
                Forcetype application/forcedownload
        </files>
</Directory>

Re: can't find httpd on asterisk

PostPosted: Fri Apr 27, 2012 10:09 am
by akmayuga
hi DomeDan,

I finally solved it... and the solution is................this!!!!!! "/" :mrgreen: :mrgreen: :mrgreen: :mrgreen: , you need to include "/" at the end of the address like so:
Code: Select all
http://"ipaddress"/RECORDINGS/
:oops: :oops: :oops: :oops:

THANK YOU SO MUCH FOR YOUR TIME...

Re: can't find httpd on asterisk

PostPosted: Fri Apr 27, 2012 10:41 am
by DomeDan
Oh, glad you figgured that one out, I was out ideas of what the problem was.
If your planning to use an other harddrive for recordings (as you were talking about), just fix the mount-point and permissions and it will probably work.

Re: can't find httpd on asterisk

PostPosted: Fri Apr 27, 2012 12:32 pm
by akmayuga
hi DomeDan,

thanks for the advice... i wanted to use the other Hard drive, but the thing is i don't know how to do it. maybe if you have time, and if its not to much to ask, would you give me some step by step guide on how to do it..

thank you so much...

Re: can't find httpd on asterisk

PostPosted: Mon Apr 30, 2012 3:05 am
by DomeDan
Alright. I would:
Make a partition on the harddrive. "fdisk"
Create a ext3 filesystem "mkfs.ext3"
move the content in /var/spool/asterisk/monitorDONE/ somewhere else (when there is no live calls on the system)
mount the drive to /var/spool/asterisk/monitorDONE/
check if its ok with "df -h"
and "touch /var/spool/asterisk/monitorDONE/test" to check it you can write there
and then put something in /etc/fstab like: "/dev/sdX1 /var/spool/asterisk/monitorDONE/ ext3 defaults 0 0"
umount it, and try to mount it using "mount /var/spool/asterisk/monitorDONE/"
and check if everything is ok, then move the content back to monitorDONE/

make sure that the drive is fast enough to prevent creating a bottleneck.

Re: can't find httpd on asterisk

PostPosted: Mon Apr 30, 2012 8:34 am
by williamconley
and seriously consider using the "archive server" setup to put this drive in a completely different server at a different physical location for actual disaster recovery backup. then you can use the ftp settings in /etc/astguiclient.conf to auto-copy your recordings there and your backups. your vicidial server gets heavy usage. drives die. hackers do mean things. having a full backup is a long-term "butt saver". :)

Re: can't find httpd on asterisk

PostPosted: Mon Apr 30, 2012 10:03 am
by akmayuga
hi guys!

i really appreciate this guys.. thank you so much for keeping in touch... i will try all of these and ill tell you how it goes..

Re: can't find httpd on asterisk

PostPosted: Tue May 01, 2012 2:09 pm
by akmayuga
hi guys,

i tried what you've said ("I used Yast2") and i got this as a result:
Code: Select all
/usr/bin/sox FAIL formats: can't open output file `/var/spool/asterisk/monitorDONE/GSM/20120502-023840_1234657890-all.gsm': No such file or$
mv: cannot move `/var/spool/asterisk/monitorDONE/20120502-023840_1234657890-all.wav' to `/var/spool/asterisk/monitorDONE/ORIG/20120502-0238$

we change the file extension to .GSM

this is our "df -h" i just accidentally inter change the hard drive
Code: Select all
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb3             143G  2.2G  133G   2% /
devtmpfs              987M  228K  987M   1% /dev
tmpfs                 988M  4.0K  988M   1% /dev/shm
tmpfs                 6.0G     0  6.0G   0% /var/spool/asterisk/monitor
/dev/sda1             147G  188M  140G   1% /var/spool/asterisk/monitorDONE

this is my /etc/fstab
Code: Select all
/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVG904ZHSESNKV-part3 /                    ext3       defaults              1 1
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
tmpfs   /var/spool/asterisk/monitor       tmpfs      rw,size=6G              0 0
/dev/disk/by-id/ata-Hitachi_HDS721616PLA380_PVF974ZH0YUEXN-part1 /var/spool/asterisk/monitorDONE/ ext3       acl,user_xattr        1 2
/dev/sda1 /var/spool/asterisk/monitorDONE/ ext3 default 0 0


thanks guys

Re: can't find httpd on asterisk

PostPosted: Wed May 02, 2012 3:15 am
by DomeDan
I can see one thing, your using "default" instead of "defaults" in /etc/fstab.
and check the directories in monitorDONE if they exist

Re: can't find httpd on asterisk

PostPosted: Fri May 04, 2012 10:58 am
by akmayuga
hi guys,

i just want to ask if how will i know if this records goes to the right harddrive, i tried it again but im not so sure if i done i correctly..

I've learned a lot from you guys.... long live... thanks

Re: can't find httpd on asterisk

PostPosted: Fri May 04, 2012 11:16 am
by DomeDan
check with the command df
and if you are still not sure, try to create a big file in monitorDONE and check with df again if the right drive got more space used

Re: can't find httpd on asterisk

PostPosted: Mon May 07, 2012 10:45 am
by akmayuga
hi guys,

we got it working.. thank you so much.... keep on rockn....

:D :D :D :D :D :D :D :D