can't find httpd on asterisk

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

can't find httpd on asterisk

Postby akmayuga » Mon Apr 23, 2012 11:28 am

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
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby GaD » Mon Apr 23, 2012 2:52 pm

What is it that you are trying to accomplish?
GaD
 
Posts: 195
Joined: Fri Jul 08, 2011 3:56 pm

Re: can't find httpd on asterisk

Postby akmayuga » Tue Apr 24, 2012 9:36 am

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
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby DomeDan » Wed Apr 25, 2012 3:14 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: can't find httpd on asterisk

Postby akmayuga » Wed Apr 25, 2012 9:22 am

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?
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby DomeDan » Thu Apr 26, 2012 3:53 am

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"
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: can't find httpd on asterisk

Postby akmayuga » Thu Apr 26, 2012 8:55 am

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
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby DomeDan » Fri Apr 27, 2012 5:52 am

ok, that other harddrive you talked about, I thought it was mounted.
does your /etc/apache2/conf.d/vicirecord.conf file differ from mine?
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: can't find httpd on asterisk

Postby akmayuga » Fri Apr 27, 2012 9:21 am

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>
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby akmayuga » Fri Apr 27, 2012 10:09 am

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...
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby DomeDan » Fri Apr 27, 2012 10:41 am

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.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: can't find httpd on asterisk

Postby akmayuga » Fri Apr 27, 2012 12:32 pm

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...
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby DomeDan » Mon Apr 30, 2012 3:05 am

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.
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: can't find httpd on asterisk

Postby williamconley » Mon Apr 30, 2012 8:34 am

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". :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20359
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: can't find httpd on asterisk

Postby akmayuga » Mon Apr 30, 2012 10:03 am

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..
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby akmayuga » Tue May 01, 2012 2:09 pm

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
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby DomeDan » Wed May 02, 2012 3:15 am

I can see one thing, your using "default" instead of "defaults" in /etc/fstab.
and check the directories in monitorDONE if they exist
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: can't find httpd on asterisk

Postby akmayuga » Fri May 04, 2012 10:58 am

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
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm

Re: can't find httpd on asterisk

Postby DomeDan » Fri May 04, 2012 11:16 am

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
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: can't find httpd on asterisk

Postby akmayuga » Mon May 07, 2012 10:45 am

hi guys,

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

:D :D :D :D :D :D :D :D
Vicibox 64-bit
Asterisk v.1.4.39.2-vici
ViciBox Redux v.5.0.2-130807
preload iso installation
No Digium/Sangoma Hardware
No Extra Software After Installation
single server
akmayuga
 
Posts: 56
Joined: Thu Apr 19, 2012 1:53 pm


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: Google [Bot] and 70 guests