Koozali.org: home of the SME Server

SAIL Installation on SME 7.1

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