Koozali.org: home of the SME Server

Asterisk on SME7 (me again)

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #30 on: October 20, 2005, 08:38:36 PM »
Hello Cyr !

Script for uninstall worked ok.

Script for installation of new Asterisk server on B5 also worked ok.

All menues and all functions seems to be working ok now. Have only been testing sip connections with local telephones, but I think sip and voice also works ok. Will keep on with some more testing.

Great !

Arne.
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #31 on: October 20, 2005, 09:43:55 PM »
A shell script for showing status and trafic for the Asterisk server (The function that were left out from the Asterisk web panel.)(Actually it is bether and more easy to use a shell script and remoote ssh/putty for this function.)


clear
echo " "
echo "*** Version:"
asterisk -r -x 'show version'
echo " "
echo "*** Uptime:"
asterisk -r -x 'show uptime'
echo " "
echo "*** Active Sip channels:"
asterisk -r -x 'sip show channels'
echo " "
echo "*** Sip Peers:"
asterisk -r -x 'sip show peers'
echo " "
echo "*** Sip Registry:"
asterisk -r -x 'sip show registry'
echo " "
echo "*** Iax2 SIP Registry:"
asterisk -r -x 'iax2 show registry'
echo " "
echo "*** Iax2 Peers:"
asterisk -r -x 'iax2 show peers'
echo " "
echo "*** Zaptel driver info:"
asterisk -r -x 'zap show channels'
echo " "
echo "*** Conference Info :"
asterisk -r -x 'meetme'
echo " "
echo "*** Voicemail Users "
asterisk -r -x 'show voicemail users'
echo " "
echo "*** NTP Peers "
ntpq -p
echo " "


If anybody have ideas for improvements, please make and post some revisions !
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #32 on: October 20, 2005, 10:24:02 PM »
A small script just for showing online activity:


clear
echo " "
echo "*** Asterisk online monitoring - For ending type: exit"
echo " "
asterisk -vvvvr
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #33 on: October 20, 2005, 11:14:26 PM »
And a small "main menu" to call the two other scripts (so there should be little to remember). Could ofcource be built further on, and improved ..

#!/bin/sh

clear
while :
do
echo " "
echo "Asterisk Menu"
echo "1. Online monitoring."
echo "2. Status."
echo "9. End."

  read INPUT_STRING
  case $INPUT_STRING in
        1)
                sh script2
                clear
                ;;
        2)      sh script1
                read INPUT_STRING
                clear
                ;;

        9)
                clear
                echo "Bye!"
                break
                ;;
  esac
done
echo
......

cyr

Asterisk on SME7 (me again)
« Reply #34 on: October 21, 2005, 12:33:19 PM »
;-) good work

I'll add these scripts during the day

Cyr

cyr

Asterisk on SME7 (me again)
« Reply #35 on: October 21, 2005, 02:49:34 PM »
Done  :hammer:

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #36 on: October 22, 2005, 01:13:01 PM »
I tried to test out the latest revision yesterday night. It apeared that it did not intall correctely. Looks like it does not download some software that should be downloaded during the installation process. Could it be because this web site is down: http://firewall-services.com/  ?? (Or some other web site ..)
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #37 on: October 22, 2005, 09:17:29 PM »
I'm sorry to say it, but I think it happend something strange with the very last revision.

I have made several attempts to install it, and also made a new installation of of the beta 5.

I find it wery strange, and I have been thinking if it could be something hardware or network related here in this end, but it looks like the Aterisk server does not install at all. The AMP panel is there but there is no service running. (Only red indication on the status panel)

If I try "asterisk -vvvvc" it just says simething like "file asterisk not found".

Every things worked OK until the last revision. Then nothing worked any more (???)

Still using a beta 5 "server only" on lan.
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #38 on: October 24, 2005, 02:05:24 AM »
Hello Cyr !

I have red trough the installation log, and I think I have found the error.

installing mpg123
-------------------------------------------
http://mirror.centos.org/centos/4.1/os/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

....

installing Perl Mods
-------------------------------------------
http://mirror.centos.org/centos/4.1/os/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

....

installing libpri driver
-------------------------------------------
http://mirror.centos.org/centos/4.1/os/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: base
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

And so on. None of the files that should be downloaded and installed from centos.org are downloaded. I think I have fount the reason for this as well. Look at this:

http://mirror.centos.org/centos/4.1/readme


So it is not that there were something wrong with the last revision, it is just that by coincidence Centos has changed the web adress for their repodata.

I tried to read trough your installations scripts to se if theese before right, now incorrect url pats can be changed. It looks like it is picking up these incorrect paths at the centos site (???!!). I were not able to find any solution.


Do we have any solution for this problem ??!!


I understod less and less, because I also tried with the installations that I had tested before, and they also did not work. Then I replaced the whole PC and still, the installations that I had tested before did not work.

I think the change in adressing from the Centos might be the explanation of it all (??!!)

Best reg Arne.
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #39 on: October 24, 2005, 02:48:40 AM »
See also here:

[root@sme7 arne]# yum update
Setting up Update Process
Setting up Repos
smeaddons                 100% |=========================|  951 B    00:00
smeupdates                100% |=========================|  951 B    00:00
http://mirror.centos.org/centos/4.1/updates/i386/repodata/repomd.xml: [Errno 4] IOError: HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: updates
failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors to try.
[root@sme7 arne]#
......

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #40 on: October 24, 2005, 02:53:59 AM »
Looks like there is a solution or a part of the solution on its way ..

http://forums.contribs.org/index.php?topic=29335.0
......

cyr

Asterisk on SME7 (me again)
« Reply #41 on: October 24, 2005, 10:39:14 AM »
Hello Arne,

Thank you for the link, I think I will add a recommandation on my howto  ;-)

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #42 on: October 24, 2005, 09:56:49 PM »
Hello Cyr !

I changed the yum configuration of the SME server (with som "unstandard" method):

baseurl=http://mirror.centos.org/centos/4/os/$basearch

After that the installation of Asterisk went well with no visible faults. I did not change anything in the doanloaded files from
http://firewall-services.com/cgi-bin/index.pl

I think/hope/believe that everything should be ok with the "Asterisk@smeserver" installation by now  :hammer:


Best reg Arne.
......

cosy

Asterisk on SME7 (me again)
« Reply #43 on: October 25, 2005, 04:36:50 PM »
Hi All,

  How do i install need the commands

Thanks.

Offline arne

  • ****
  • 1,116
  • +0/-4
Asterisk on SME7 (me again)
« Reply #44 on: October 25, 2005, 10:44:08 PM »
The installation guide is at the web page of mr cyr:

http://firewall-services.com/AsteriskAtHomeSME7.html

There is a problem that will affect the installation. Just now the yum update cammand does not work for the SME server. You can check this by using command "yum update". If this gives an error message, the Asterisk installation will not work.

So the sme yum configuration has to be changed the one way or the other (until it has a permanent repair.) When you get the "yum update" function to work, then you can do the Asterisk installation.

By the way Asterisk server only worked perfect and I could do abroad telephone calls for 5 % of the "normal" price.

I have now mede a new reistallation to check out how things work in the ordinary gateway mode. Will have to do the "yum reconfiguration mod" first just now ..

Will leave a message if things works ok this time too.
......