Koozali.org: home of the SME Server

SAIL Installation on SME 7.1

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« on: March 01, 2007, 01:13:44 PM »
Hi all,
Sorry to be a pest, Selintra but I'm still having problems installing SAIL so, here are the steps I'm taking (fresh 7.1 installation)...
Code: [Select]
[root@test SAIL]# uname -r
2.6.9-42.0.3.EL
[root@test SAIL]# rpm -Uvh smeserver-asterisk-zappri-MPP-1.2.6-1.i686.rpm
Preparing...                ########################################### [100%]
   1:smeserver-asterisk-zapp########################################### [100%]
[root@test SAIL]# rpm -Uvh smeserver-asterisk-1.2.10-3.i686.rpm
Preparing...                ########################################### [100%]
   1:smeserver-asterisk     ########################################### [100%]
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected
I'm sure that "Shutting down Asterisk" appears and is over-written by the "1 error(s) detected" line.
Is this normal?

Thanks
Norrie

Offline hervep

  • ***
  • 70
  • +0/-0
SAIL Installation on SME 7.1
« Reply #1 on: March 01, 2007, 05:12:57 PM »
Hi ntblade,

Here is how I proceed to install 'Sail' onto 'fresh SME 7.1'.
After reboot ... it works.

Rpm's used :

nmap-3.70-1.i386.rpm
selintra-sail-2.1.14-425.noarch.rpm
smeserver-asterisk-1.2.10-3.i686.rpm
smeserver-asterisk-sounds-1.2.2-2.noarch.rpm
smeserver-asterisk-zappri-MPP-1.2.6-1.i686.rpm
tftp-server-0.39-2.i386.rpm
xinetd-2.3.13-4.4E.1.i386.rpm

Commands :

rpm -Uvh *.rpm
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/db configuration setprop yum status disabled
/sbin/e-smith/db configuration setprop xinetd status enabled
/sbin/e-smith/db configuration setprop tftp status enabled
/sbin/e-smith/signal-event reboot

Hope this can help ...

Hervé

Offline del

  • *
  • 765
  • +0/-0
SAIL Installation on SME 7.1
« Reply #2 on: March 01, 2007, 06:02:48 PM »
Hi hervep,

I don't have this installed:
Quote
nmap-3.70-1.i386.rpm
What is it for and do I need it :shock: My SAIL PBX seems to work OK. Where is the best place to download these rpms:
Quote
tftp-server-0.39-2.i386.rpm
xinetd-2.3.13-4.4E.1.i386.rpm
I have them installed but they are older versions. Thanks for your help.

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #3 on: March 01, 2007, 06:52:20 PM »
Thanks for the replies,

I'm trying to get the install to work as per the instructions here...
http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter03
Quote
If you DON'T wish to run ISDN BRI cards then install the rpms at

http://mirror.contribs.org/smeserver//contribs/selintra/RPMS/AsteriskForSail-2.1.13/None-ISDN/

Finally, install selintra-sail-2.1.14-nnn which you will find here...

ftp://81.149.154.14/Pre-Releases/

All pre -389 rpms should be installed as follows...

rpm -Uvh target-rpm-release

NB - SAIL-389 onwards

Sail -389 requires nmap so you should install it with yum as follows....

yum localinstall selintra-sail-2.1.14-389.noarch.rpm --enablerepo=base

Cleanup

Once all of your rpms are installed, you must run console-save...

/sbin/e-smith/signal-event console-save

Extras

If you have not yet done it and you want to run automatic provisioning via the on-board Sail tftp-server then you should install tftp-server

Enable CentOS base and install tftp-server as follows...

yum install tftp-server --enablerepo=base


So, I guess this is as mutch about testing the documentation as well as tesing the software but I'm not 100% confident that my installation is as expected as halfway through I get:
Code: [Select]
WARNING: Template processing succeeded for /: 8 fragments generated warnings
 at /usr/lib/perl5/site_perl/esmith/DB.pm line 459
Migrating existing database yum_updates
Migrating existing database configuration
Migrating existing database networks
Migrating existing database accounts
Migrating existing database backups
Migrating existing database spamassassin
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 1.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.

<snip>

Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
smeserver trap post-install: selintra-sail
smeserver trap post-install: nmap

Installed: selintra-sail.noarch 0:2.1.14-425
Dependency Installed: nmap.i386 2:3.70-1
Complete!
==============================================================
WARNING: You now need to run BOTH of the following commands
to ensure consistent system state:

signal-event post-upgrade; signal-event reboot

You should run these commands unless you are certain that
yum made no changes to your system.
==============================================================

Why are you installing xinetd?

After the reboot I go to PCI Cards (none installed at the moment) press probe and get
Code: [Select]
Operation status report - Timed out on UDEV - It may work if you retry...
but the ztdummy module should then be installed

Thanks

Offline del

  • *
  • 765
  • +0/-0
SAIL Installation on SME 7.1
« Reply #4 on: March 01, 2007, 08:22:49 PM »
Hi All,

Please excuse my stupidity :D
Quote
I don't have this installed:
Quote:
nmap-3.70-1.i386.rpm
What is it for and do I need it Shocked My SAIL PBX seems to work OK.
I am still using selintra-sail-2.1.14-339.noarch.rpm, which explains why everything is running OK :oops:

Regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline hervep

  • ***
  • 70
  • +0/-0
SAIL Installation on SME 7.1
« Reply #5 on: March 01, 2007, 08:26:08 PM »
Quote from: "del"
Hi hervep,

I don't have this installed:
Quote
nmap-3.70-1.i386.rpm
What is it for and do I need it :shock: My SAIL PBX seems to work OK. Where is the best place to download these rpms:
Quote

nmap-3.70-1.i386.rpm
tftp-server-0.39-2.i386.rpm
xinetd-2.3.13-4.4E.1.i386.rpm
I have them installed but they are older versions. Thanks for your help.

Regards,
Del


nmap is required for the automatic sets discovery.
It is a 'network scanner'. It may be not needed in you use older version of 'Sail'.

You can use copy-paste in google to find them, or rpmfind.net ... .
If your actual version works, no problem. Those are not critical 'sail' rpm's.

Kind regards,

Hervé

Offline hervep

  • ***
  • 70
  • +0/-0
SAIL Installation on SME 7.1
« Reply #6 on: March 01, 2007, 08:39:04 PM »
Quote from: "ntblade"
Thanks for the replies,

I'm trying to get the install to work as per the instructions here...
http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter03
Quote
If you DON'T wish to run ISDN BRI cards then install the rpms at

http://mirror.contribs.org/smeserver//contribs/selintra/RPMS/AsteriskForSail-2.1.13/None-ISDN/

Finally, install selintra-sail-2.1.14-nnn which you will find here...

ftp://81.149.154.14/Pre-Releases/

All pre -389 rpms should be installed as follows...

rpm -Uvh target-rpm-release

NB - SAIL-389 onwards

Sail -389 requires nmap so you should install it with yum as follows....

yum localinstall selintra-sail-2.1.14-389.noarch.rpm --enablerepo=base

Cleanup

Once all of your rpms are installed, you must run console-save...

/sbin/e-smith/signal-event console-save

Extras

If you have not yet done it and you want to run automatic provisioning via the on-board Sail tftp-server then you should install tftp-server

Enable CentOS base and install tftp-server as follows...

yum install tftp-server --enablerepo=base


So, I guess this is as mutch about testing the documentation as well as tesing the software but I'm not 100% confident that my installation is as expected as halfway through I get:
Code: [Select]
WARNING: Template processing succeeded for /: 8 fragments generated warnings
 at /usr/lib/perl5/site_perl/esmith/DB.pm line 459
Migrating existing database yum_updates
Migrating existing database configuration
Migrating existing database networks
Migrating existing database accounts
Migrating existing database backups
Migrating existing database spamassassin
Use of uninitialized value in substitution (s///) at /usr/lib/perl5/site_perl/esmith/FormMagick.pm line 237, <LEXIN> line 1.
Use of uninitialized value in subroutine entry at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser/Expat.pm line 474.

<snip>

Use of uninitialized value in print at /usr/lib/perl5/site_perl/CGI/FormMagick/Setup.pm line 179.
smeserver trap post-install: selintra-sail
smeserver trap post-install: nmap

Installed: selintra-sail.noarch 0:2.1.14-425
Dependency Installed: nmap.i386 2:3.70-1
Complete!
==============================================================
WARNING: You now need to run BOTH of the following commands
to ensure consistent system state:

signal-event post-upgrade; signal-event reboot

You should run these commands unless you are certain that
yum made no changes to your system.
==============================================================

Why are you installing xinetd?

After the reboot I go to PCI Cards (none installed at the moment) press probe and get
Code: [Select]
Operation status report - Timed out on UDEV - It may work if you retry...
but the ztdummy module should then be installed

Thanks


Looks great ...

Xinetd is needed for tftp.

Only difference is that I do it as a 'local' installation ( RPM localy available ).
It does not requires internet/yum connection during installation.

Edit : Ztdummy depends also of the hardware you have on the pc.
         It is a 'virtual' clock source that is needed for some applications as
         'conferencing'. If it don't start, it is not a critical issue.

Best,

Herve

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #7 on: March 01, 2007, 09:03:47 PM »
[/quote]Looks great ...

Xinetd is needed for tftp.

Only difference is that I do it as a 'local' installation ( RPM localy available ).
It does not requires internet/yum connection during installation.
Quote


Lokks fine but asterisk doesn't start on boot???

Offline hervep

  • ***
  • 70
  • +0/-0
SAIL Installation on SME 7.1
« Reply #8 on: March 01, 2007, 09:40:46 PM »
Quote from: "ntblade"


Lokks fine but asterisk doesn't start on boot???


I do not have the same problem, difficult to answer ...
Assuming you can start asterisk manually, I would suggest to check the following :

- Did you performed ' signal-event post-upgrade & signal-event reboot  ' ?
- Check http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter2510
- Check if service start Symlink is OK. ( can you find 'S93asterisk' into /etc/rc.d/rc7.d ? ).  If not :
Code: [Select]
#/bin/ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S93asterisk

Best,

Hervé

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL Installation on SME 7.1
« Reply #9 on: March 01, 2007, 11:32:34 PM »
Hi guys

You all look to be doing just fine...

However.....

Quote
I'm sure that "Shutting down Asterisk" appears and is over-written by the "1 error(s) detected" line.
Is this normal?


Yes, I'm afraid it is.  This has to do with the strange way in which rpm works and our ignorance when we rolled the original asterisk rpms.  The good news is that it isn't critical


Now, here's the thing...

I ran a clean install of SAIL-425 on SME 7.1 this evening (this is something which we very rarely do because we normally use our SARK.iso to install the lot in one go) and I ran into a couple of problems.

I effectively needed to run the install twice because of the kernel differences.  So...

I will update the zaptel rpms over the weekend to make life easier for everyone.  However, in the meantime here is what I had to do to get a clean SAIL install on 7.1....

drop the rpms (smeserver-asterisk-zappri-MPP, smeserver-asterisk, lastest version of sail (-425) and whichever language modules you want)

Step 1 - install zaptel....

rpm -Uvh  smeserver-asterisk-zappri-MPP-whatever

Now copy the "extra" subdirectory into the correct kernel tree.

e.g. cp -r /lib/modules/2.6.9-34.EL/extra /lib/modules/2.6.9-42.03.EL/

Now remove zaptel...

rpm -e smeserver-asterisk-zappri-MPP

and reinstall it....

rpm -Uvh smeserver-asterisk-zappri-MPP-whatever

I know, I know, it's a complete faff but it's what you need to do right now  
The rest of the install is as described in the docs.

Promise we'll upgrade the zaptel rpms at the weekend if we get time.

:-)

J

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #10 on: March 02, 2007, 06:17:05 PM »
Hi Selintra,

Did all that, rebooted and asterisk doesn't start.
Went to PCI cards, Probe and:
"Operation status report - Timed out on UDEV - It may work if you retry..."
Pressed "Start" and then "Probe" and the dummy module seems to load.
Went to globals and filled in IP address mail etc, save, commit, rebooted and asterisk still doesn't start but pressing "Start" at the PCI Cards panel starts asterisk and the zaptel module loads...
Code: [Select]
[root@test ~]# lsmod
Module                  Size  Used by
ztdummy                 3924  0
zaptel                206852  3 ztdummy
crc_ccitt               2241  1 zaptel
Any ideas?

Thanks
N

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL Installation on SME 7.1
« Reply #11 on: March 02, 2007, 08:11:39 PM »
HI NT

Yes, I had the same issue.  The link is not being created properly. Do...

Code: [Select]
/bin/ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S93asterisk

I think that will solve the start-up problem.

Other than that you look good to go.

:-)

J

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #12 on: March 04, 2007, 01:09:50 PM »
Thanks!

Installation and startup problems now 99% sorted.

On satrtup I'm getting...
Code: [Select]
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 50: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 51: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 52: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 53: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 54: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 55: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 56: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 57: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 58: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 59: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 60: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 61: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 62: ignoring bad line starting with 'post-install'
Mar  4 11:57:55 bacon modprobe: WARNING: /etc/modprobe.conf line 63: ignoring bad line starting with 'post-install'

but this doesn't seem to be a problem.

Also, I can't see anywhere in the manual f it's possible to automatically prepend our local code (not using PSTN at the the moment - Voiptalk only) so that all calls beginning with 8 will go out as 016208xxxxx say.


Edit:

Here's my Transformation Mask...
00: 0:44 8:4416208
and Dial Plan...
_0. _8XXXXX

Seems to work but what else should go in?

All the best

Norrie

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL Installation on SME 7.1
« Reply #13 on: March 04, 2007, 03:04:52 PM »
Hi Norrie,

The messages are coming out of the kernel.  This is due to the fact that it can't find the zaptel modules in the correct module tree.  You have to move the extras subdirectory to the new kernel tree -  see here...

http://www.selintra.com/docs/cgi-bin/view/Main/DocChapter2510

Once you've moved 'em you then need to remove and reinstall zaptel (as per my previous post).  Unfortunately, because of the dependencies you need to remove sail and asterisk also and then re-install everything.  If you don't do this then you will not be able to run any digium cards and things like conferencing (which need a timing source) wont work.

We'll get around to fixing this snafu soon but for the moment this above is the workaround.

re area codes...

You can prepend area codes in the trunk mask.  It's not very elegant because it's not really what masks were designed for but it works fine.  You need to know the start digits of your local numbers .  In the UK there will usually be two, the BT start digit and the NTL(Mercury) start digit.  So, for example, in our area, subscriber numbers can start with either a 4 or 5.  Our area code is 01924 so you can create a mask like this...
Code: [Select]
4:019244 5:019245

If you aren't sure what the local start digits are then you can just do 'em all like this...

Code: [Select]
2:019242 3:019243 4:019244 5:019245 6:019246 7:019247 8:019248 9:019249

Job done.


Kind Regards

Jeff[/code]

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #14 on: March 04, 2007, 05:26:17 PM »
Thanks for the reply, Jeff - on a Sunday too!

I did a bit of digging and found the transformation mask thread and looked a bit more in the manual. and put:
00: 0:44 8:4416208
in my mask.  This works but:
00: 0:44 8:016208
doesn't.

I followed your revised installtion instructions:
Installed zaptel
copied the extras directory:
Code: [Select]
ls -l /lib/modules/2.6.9-42.0.3.EL/extra/
total 4324
-rw-r--r--  1 root root  254728 Mar  3 16:34 pciradio.ko
-rw-r--r--  1 root root  219335 Mar  3 16:34 tor2.ko
-rw-r--r--  1 root root  156530 Mar  3 16:34 torisa.ko
-rw-r--r--  1 root root  138569 Mar  3 16:34 wcfxo.ko
-rw-r--r--  1 root root  206881 Mar  3 16:34 wct1xxp.ko
-rw-r--r--  1 root root 1372940 Mar  3 16:34 wct4xxp.ko
-rw-r--r--  1 root root  413461 Mar  3 16:34 wctdm24xxp.ko
-rw-r--r--  1 root root  214484 Mar  3 16:34 wctdm.ko
-rw-r--r--  1 root root  243431 Mar  3 16:34 wcte11xp.ko
-rw-r--r--  1 root root  173856 Mar  3 16:34 wcusb.ko
-rw-r--r--  1 root root  465454 Mar  3 16:34 zaptel.ko
-rw-r--r--  1 root root  132692 Mar  3 16:34 ztd-eth.ko
-rw-r--r--  1 root root  116260 Mar  3 16:34 ztd-loc.ko
-rw-r--r--  1 root root   93022 Mar  3 16:34 ztdummy.ko
-rw-r--r--  1 root root  131965 Mar  3 16:34 ztdynamic.ko

uninstalled and reinstalled zaptel then installed all of the rest of the apps.
Did a depmod, signal-event post-upgrade reboot etc.
The dummy module sems to have been loaded fine:
Quote
lsmod
Module                  Size  Used by
ztdummy                 3924  0
zaptel                206852  3 ztdummy
crc_ccitt               2241  1 zaptel


So do I really need to uninstall and reinstall all the rest of SAIL?

Also (and you might throw your hands up in the air) I want to run this server in a DMZ behind an IPCop firewall.  This installation is located where the ADSL is shared between two builings on different LANs.  both should have access the the server but one is also in the DMZ.  There's to be a separate wireless LAN which will be used to bridge to yet another building which will have internet access only. - no server access

Here's a diagram...
Code: [Select]
Wireless LAN - Phones later?
|          |         |
+----------+---------+
192.168.2.0|
           |         DMZ LAN - No Phones but other client PCs
           |         +----------------
       +---+---+     |       +-------+
  ADSL |       | DMZ |       |       |
 ------+ IPCop +-----+-------+  SME  |
       |       | 192.168.1.0 |       |
       +---+---+             +-------+
           |
192.168.0.0|
 +---------+---------+
 |         |         |
Private LAN - Phones here

So
PCs in private LAN can access DMZ but PCs in DMZ can't access Private LAN but can access Internet
PCs in wireless LAN can access Internet and DMZ but not Private LAN

Phones in DMZ initially register but are then "unreachable" and can call phones in private LAN but there is no sound.
Phones in Private LAN cannot call phones in DMZ but can do everything else.

I really want to keep the server in the DMZ as it helps with the LAN segregation.  I can open up DMZ pinholes in my IPCop firewall. but so far this hasn't helped.

When a SAIL box is in server-only mode is it then unable to have remote phones register with it?

Thanks again

Norrie

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL Installation on SME 7.1
« Reply #15 on: March 04, 2007, 06:42:53 PM »
Quote
I did a bit of digging and found the transformation mask thread and looked a bit more in the manual. and put:
00: 0:44 8:4416208
in my mask. This works but:
00: 0:44 8:016208
doesn't.

Probably because your carrier is looking for E164 numbering - hence the 44 requirement.

Quote
So do I really need to uninstall and reinstall all the rest of SAIL?


As long as you can modprobe zaptel and ztdummy without error, then no you don't need to re-install.

Wow, complicated little network.....

Quote
When a SAIL box is in server-only mode is it then unable to have remote phones register with it?


Not quite but it makes life harder.  As a general rule, you can cross one firewall with SIP if you use symmetrical RTP.  You can't cross two without using a session border controller or media proxy (which both parties can "see").

It might help put this into perspective for you if you read this....

 http://www.voip-info.org/wiki/view/Asterisk+SIP+NAT+solutions

It isn't entirely accurate but it gives a good general overview of what is and isn't possible.

The big "trick" for SIP where natted firewalls are concerned, is the use of Symmetrical RTP.  SAIL uses the inbuilt asterisk RTP symmetry whenever you specify a phone as "remote" when you define it to SAIL.  For all practical purposes, "remote" means "not on this subnet".  

So, are you running your phones as "remotes" or "locals"?

Next point, we often run the SARK/SAIL box behind a Natted firewall but we still run it in server-gateway mode.  This allows us to run all of the phones on their own sub-net (below the SARK box) and it works pretty well, except for remote phones, unless SARK is in the DMZ and receiving all SIP & RTP packets from the router/firewall, in which case remote phones work fine.

You will find in these circumstances that Wireshark (formerly ethereal) becomes your best pal.  In many cases it is the ONLY way to see what is actually going on in the network and where the packets are flowing, and more importantly, not flowing.  

Quote
Phones in DMZ initially register but are then "unreachable" and can call phones in private LAN but there is no sound.


This is usually because you have the external ip address in Globals either not set or incorrectly set.  It should reflect the IP address at your network border, i.e. the router/gateway.  It is only relevant in server-only mode and asterisk uses it as the return address and puts it into all of the outbound packets.  If it is set to an incorrect value (for example 192.168.1.100 - which is meaningless outside of the local subnet)  then you will effectively "spoof" the target (phone) with the wrong return address.

Read the stuff on SIP NAT first so you have a feel for the art of the possible and then experiment by running tethereal at your SAIL box to see what packets are arriving and departing.  Usually this will be enough to pinpoint where the failures are.

Kind Regards

Selintra

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #16 on: March 04, 2007, 07:46:07 PM »
Just a quick reply, Jeff.
My test setup is this...

ADSL - Static IP - Firewall - SME (Server only)

The firewall has an ADSL PCI card which picks up my Public IP address, some port forwarding to SME server which is on 192.168.1.2 so, should the external address in the globals panel be set to my public address or 192.168.1.2?

The box has to go back for a couple of days but I'll keep trying on my test stuff.  I'll also check the link you sent.

Cheers
Norrie

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL Installation on SME 7.1
« Reply #17 on: March 04, 2007, 08:42:20 PM »
Quote
should the external address in the globals panel be set to my public address or 192.168.1.2?


The public address because those packets will be correctly forwarded back to the SAIL box from IPCOP (or should be).


Best

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #18 on: March 05, 2007, 06:43:38 PM »
I went to bed and thought about this...

One extension in DMZ beside SME and one in private LAN.  Set extension in private LAN to use my public IP as SIP Server and left DMZ IP as proxy.  
Forwarded ports 4569 5060 and 1000-2000 to server, Phone in Private LAN registers as Private IP Address (of phone).
Calling between extension works and I can call out from Private LAN as well.
So far I'm not able to transfer but I'm not sure if I could when the phones were on the same LAN.

So far so good.
:-)

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL Installation on SME 7.1
« Reply #19 on: March 05, 2007, 11:20:42 PM »
Good,

Transfer should just work using SIP INVITE (this is the regular tansfer button on the SIP phone),   # should also allow you to blind transfer.

Best

J

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #20 on: March 06, 2007, 10:04:57 AM »
Transfer working between phones on same and different subnet.  (Had to change a setting in the phones)

Cheers
N

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL Installation on SME 7.1
« Reply #21 on: March 09, 2007, 01:39:50 AM »
Just upgraded my 7.1 box to update 1 & 2.  So now its 7.1.2.
Asterisk would not start.  Appliede fix provided earlier in this thread and things are back to normal.  Here are the codes used as provided by Jeff:

/bin/ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S93asterisk
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #22 on: March 09, 2007, 10:31:09 AM »
Thanks for the info, I'm still a bit worried about applying the updates.
What kernel are you running and are you still using the "extras" from /lib/modules/2.6.9-34.EL/extra?
Are there any updates you didn't apply?

Many thanks

Norrie

Offline chris burnat

  • *****
  • 1,135
  • +2/-0
    • http://www.burnat.com
SAIL Installation on SME 7.1
« Reply #23 on: March 09, 2007, 10:42:06 AM »
Quote from: "ntblade"
Thanks for the info, I'm still a bit worried about applying the updates.

Yes, well it makes two of us, but do not fear, keep your cool and apply the fix I copied in my post (thanks to the author, its not mine...) because asterisk will not restart at the moment.  Minor glitch, I am sure Jeff and Crew will fix this sooner or later.

>What kernel are you running:
[root@gateway0 ~]# uname -r
2.6.9-42.0.10.ELsmp

>and are you still using the "extras" from /lib/modules/2.6.9-34.EL/extra?
Watch it, this was for a previous kernel.  You have to adjust for latest kernel, so for the 2.6.9-42.0.10 version, you would do:
cp -r /lib/modules/2.6.9-34.EL/extra/ /lib/modules/2.6.9-42.0.10.EL
depmod

and/or if you use the ELsmp kernel:

cp -r /lib/modules/2.6.9-34.ELsmp/extra/ /lib/modules/2.6.9-42.0.10.ELsmp
depmod

Asterisk should now start and run normally.
Restart asterisk manually first time (in panel save + commit)
# Reboot

>Are there any updates you didn't apply?
No, I just let yum do its thing.  I was 7.1, so update 1 & 2 were installed.

Cheers
chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #24 on: March 09, 2007, 01:56:58 PM »
Eeek!

Applied all the updates, copied the extras to the correct place, did depmod, reconfigured my X100P card and got asterisk to start on boot again but now I can't get incoming call on my Voiptalk number!!!
I get "This number is not accepting calls..."
In the * CLI I do "sip show peers" and get:
Name/username              Host            Dyn Nat ACL Port     Status
5000/5000                  10.0.1.250       D          5060     OK (4 ms)
1 sip peers [1 online , 0 offline]
No mention of voiptalk (although there wasn't previously).
Could it be a voiptalk problem?  I'm positive that I could get calls in before I ran the updates

N

Help!

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
SAIL Installation on SME 7.1
« Reply #25 on: March 10, 2007, 01:53:42 AM »
'sip show peers' should show any SIP VOIP providers you are registered with, but I doubt it would show any IAX providers.

I just did some Googling and it appears Voiptalk is an IAX provider.

Here is a link to more info:

http://www.voiptalk.org/products/iaxconfig.html

Sorry I wasn't more help.

G

Offline ntblade

  • *
  • 252
  • +0/-0
SAIL Installation on SME 7.1
« Reply #26 on: March 10, 2007, 11:16:55 AM »
Quote from: "sonoracomm"
'sip show peers' should show any SIP VOIP providers you are registered with, but I doubt it would show any IAX providers.
Ah, right.  I didn't realise that.
Quote
I just did some Googling and it appears Voiptalk is an IAX provider.

Here is a link to more info:

http://www.voiptalk.org/products/iaxconfig.html

Sorry I wasn't more help.

G
Yes, I chose voiptalk because they provide IAX.

Thanks, still can't get calls in.

N

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
SAIL Installation on SME 7.1
« Reply #27 on: March 10, 2007, 03:13:12 PM »
Quote
Thanks, still can't get calls in.


You have to be a bit careful with Telappliant (VoipTalk).  There service is excellent (they use Magrathea) but there are a few things you should be aware of.

Firstly, they run strictly E164 so your DiD (in the Trunk definition) should be expessed as an E164 number.  

They don't operate on a registration basis, indeed you don't register with them at all (similar to Gamma and many of the other Tier 2 carriers).  So the only way they know how to get to you is if you correctly fill out your delivery address (ip address) on their web-portal.

Thirdly, even tho' you define your trunk as IAX, they may be delivering to you in IAX or SIP, depending upon how you have set your delivery address in their system (you can specify either).

Hope this helps


Selintra