Koozali.org: home of the SME Server

[Announce] SAIL Asterisk 2.1.10 Beta Available

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #15 on: March 08, 2006, 07:53:12 PM »
Quote
I'm gonna go nuts soon!


Hello Nick,

We sincerely hope you don't!

We'll spin up an X-Lite and take a look at for you.

Have a beer with us while you're waiting!

 :pint:

Best

Selintra

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #16 on: March 08, 2006, 07:54:54 PM »
@NickCritten
Two things:
[general]
localnet=192.168.30.0/255.255.255.0

For x-lite, add:
[5000]
nat=1

Offline NickCritten

  • *
  • 245
  • +0/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #17 on: March 08, 2006, 08:17:44 PM »
Quote from: "selintra"

We'll spin up an X-Lite and take a look at for you.

Have a beer with us while you're waiting!


Cheers guys!   :pint:

Quote from: "stuntshell"
@NickCritten
Two things:
[general]
localnet=192.168.30.0/255.255.255.0

For x-lite, add:
[5000]
nat=1


Thanks Stuntshell

I've updated the sip.conf header so that the sip.conf file now shows the correct localnet (192.168.30.0/255.255.255.0)

But I'm still getting the same error!
I've tried it with nat=1 aswell but no joy.

Any other ideas?
Thanks,
...
Nick

"No good deed goes unpunished." :-x...

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #18 on: March 08, 2006, 08:24:25 PM »
Hi Nick,

Quote
   -- Registered SIP '5002' at 192.168.1.70 port 5060 expires 180
    -- Saved useragent "X-Lite release 1105x" for peer 5002
    -- Executing AGI("SIP/5002-874a", "selintra|*56*") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Playback) Options: (vm-extension)
    -- Playing 'vm-extension' (language 'en')
    -- Playing 'digits/5' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Playing 'digits/0' (language 'en')
    -- Playing 'digits/2' (language 'en')
    -- AGI Script selintra completed, returning 0
  == CDR updated on SIP/5002-874a


Er... Ours came straight up and played back its extension quite happily after *56*.

Here's our settings - first from our generated SIP entry in Extensions panel
Quote
type=friend
username=test-xlite
secret=5002
host=dynamic
qualify=3000
context=internal
callerid="test-xlite" <5002>
canreinvite=no
mailbox=5002
pickupgroup=1
callgroup=1
disallow=all
allow=gsm
allow=alaw
allow=ulaw


Here it is in raw sip.conf

Quote
[general]
tos=0x18
localnet=192.168.1.0/255.255.255.0
context=mainmenu
maxexpirey=180
defaultexpirey=160
disallow=all
allow=gsm
allow=alaw
allow=ulaw
.
.
.
.
.
[5000]
type=friend
username=test1
secret=5000
dtmfmode=rfc2833
host=dynamic
qualify=3000
context=internal
callerid="test1" <5000>
canreinvite=no
mailbox=5000
pickupgroup=1
callgroup=1
disallow=all
allow=gsm
allow=alaw
allow=ulaw


Here are the settings in the phone...

Quote

enabled: yes
Display name: Fred
Username: 5002
Authorization User: 5002
Password: 5002
Domain/Realm 192.168.1.214
SIP Proxy: 192.168.1.214
Out Bound Proxy: 192.168.1.214
Use Outbound Proxy: Default
Register: Default
Voicemail: SIP URL
Forward: SIP URL


Only obvious difference is that we're running SAIL in Thruput mode on this test server (see Globals - compression strategy).  We tried it on Fidelity as well and it worked fine.

Kind Regards

Selintra

Offline JonB

  • *
  • 351
  • +0/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #19 on: March 08, 2006, 08:36:55 PM »
Nick,

The Username needs to be the same as the Auth name i.e your extension number.

The logs were telling you that.

Jon
...

Offline NickCritten

  • *
  • 245
  • +0/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #20 on: March 08, 2006, 09:04:21 PM »
Quote from: "JonB"
Nick,

The Username needs to be the same as the Auth name i.e your extension number.

The logs were telling you that.

Jon


HOLY CRAP its working!!!  :-D

OK so the username field in sip.conf isn't the same as the username field in X-lite :-?  Oh well....

Thanks Everyone!!
Much Beerage to celebrate methinks! :pint:

By the way, Why do I need NAT enabled on the SIP device if it's on my LAN?  I noticed from the SIP debugs that it seems to be trying to communicate via my gateway SME Servers EXTERNAL IP, instead of going straight to the device if I have NAT disabled. Whats up with that?
...
Nick

"No good deed goes unpunished." :-x...

Offline JonB

  • *
  • 351
  • +0/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #21 on: March 09, 2006, 11:55:39 AM »
Selintra,

There is still some bugs with the Asterisk port opening.

Brand new install on pre4 today

asterisk-SME7   .100
selitra-sail   .113

Data base properties are

Code: [Select]
asterisk=service|UDPorts|4569,5060,10000:20000|status|enabled

should be

Code: [Select]
asterisk=service|UDPPorts|4569,5060,10000:20000|status|enabled|access|public

note the P is still missing in UDPPorts and |access|public is missing.

However this is all a moot point at the moment as SME7 does not currently support opening multiple ports using UDPPorts or TCPPorts

See Bug 989 that I raised earlier today.

The asterisk UDP ports will need to be opened individually at the moment if people want external access to *

Code: [Select]
config set IAX2 service status enabled access public UDPPort 4569
config set SIP service status enabled access public UDPPort 5060
config set RTP service status enabled access public UDPPort 10000:20000  
signal-event remoteaccess-update


Jon
...

Offline JonB

  • *
  • 351
  • +0/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #22 on: March 09, 2006, 12:08:45 PM »
Quote from: "selintra"
We're pretty sure this is because you have Enable Call Features set to "Yes" on your BT100.  Set it to "No" and it will work fine.   We simulated it on a GS BT102 and a GXS2000 this morning and it's the same for both.  *5xx numbers won't get transmitted to Asterisk if the Enable Call Feature is set to Yes.  We don't know why at this point but *5 is obviously of some significance to the GS software.


Cheers, that was the problem. Is there a hardware wiki page where this sort of information can be placed as the Enable Call Features is enabled by default on the GS. Its bound to catch someone else out.

Jon
...

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #23 on: March 09, 2006, 01:37:43 PM »
Code: [Select]

asterisk=service|UDPorts|4569,5060,10000:20000|status|enabled


Ouch!  Sorry Jon.  Too many late nights here.  We've just put a 117 release up to the ftp site which we really, really promise fixes the ports.  

The lack of port range opening in 7.0 is a worry tho'. In truth for most users you can get away with just having 5060 open as long as your carrier is running session border control.  However it does mean that remote sip phones are a complete no-no unless you want to sit and laboriously open a bunch of ports manually.  IAX, of course, is fine.

We'll put a page up on the wiki for softphone/hardphone settings.

Selintra

       [/quote]

Offline psoren

  • *
  • 371
  • +0/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #24 on: March 19, 2006, 11:53:28 PM »
Quote from: "selintra"
Quote
Then i found A@H and installed that on a separate box with another C3 CPU the same way as Jon suggests, works fine.
But i would really like to integrate SME and Asterisk, but i didn't like A@H and SME7 together and was hoping yours would be better.


Hello Per

There is a small gift for you on our FTP site.  It would appear that one of our developers also likes the C3 chip.  No promises for the rpm but we've been playing with it this afternoon on a VIA Eden board and it seems to work OK.  :-)


Selintra


Selintra,

Sorry for the late reply but my job takes a lot of my time off.... :-D
I'm downloading now and will start the "fight" soon, i will let you know how it goes.
Thanks....

Per

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: [Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #25 on: March 23, 2006, 07:47:08 PM »
Quote from: "selintra"

WARNING.

asterisk-SME7 WILL NOT RUN WITH ANY KERNEL OTHER THAN

2.6.9-22.0.2.EL


I'd suggest that you package the kernel specific portion of asterix separately. I presume it's one or more kernel modules. Let me know if you'd like help in doing that.

RHEL/CentOS release new kernel updates from time to time, and SME 7 pick them up from time to time. It doesn't make sense for everyone to get a new asterix install every time that happens.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #26 on: April 01, 2006, 02:23:09 PM »
Quote
RHEL/CentOS release new kernel updates from time to time, and SME 7 pick them up from time to time. It doesn't make sense for everyone to get a new asterix install every time that happens.


Hi Charlie,

We hadn’t ignored this, we’ve just been giving it some thought.

We agree and thanks for the offer of help. We suggest we do the split as follows…
    Asterisk core mainline + add-ons + sample configs (about 10-12Mb in all)
    Asterisk ZAP (TDM) drivers; Zaptel & libpri  (a few hundred K)
    Asterisk Sounds (about 8Mb)


We'll also remove any SAIL dependencies so that the rpms are of general use to anyone wanting to use asterisk on SME server.  Finally, if you wish, we’ll rename them along the following lines;

smeserver-asterisk-component.1.2.3-release-num.arch.rpm

Suggest we reset the release num to 1. So first set will be

smeserver-asterisk-main.1.2.3-1.i686.rpm
smeserver-asterisk-zappri.1.2.3-1.i686.rpm
smeserver-asterisk-sounds.1.2.3-1.noarch.rpm

 
After we’re done we’ll hand them over to contribs.

Thoughts/comments?

Kind Regards

Selintra

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #27 on: April 01, 2006, 05:00:06 PM »
Quote from: "selintra"

Suggest we reset the release num to 1. So first set will be

smeserver-asterisk-main.1.2.3-1.i686.rpm
smeserver-asterisk-zappri.1.2.3-1.i686.rpm
smeserver-asterisk-sounds.1.2.3-1.noarch.rpm


Please be sure to include one or more src.rpm file(s). That will allow others to contribute to the development work, but will also allow others to comply with their GPL obligations.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #28 on: April 01, 2006, 09:10:19 PM »
Quote
Please be sure to include one or more src.rpm file(s). That will allow others to contribute to the development work, but will also allow others to comply with their GPL obligations.


Yes of course.  It was implicit in our offer to do the work. However your point is well taken and we're only too happy to help.  :-)


Kind Regards

Selintra

Offline gregswallow

  • *
  • 651
  • +1/-0
[Announce] SAIL Asterisk 2.1.10 Beta Available
« Reply #29 on: April 02, 2006, 07:08:38 PM »
Selintra (Jeff?), did you get my email with the username/password for the FTP directory on contribs.org.  I'll set up a space in the bug tracker here as well in the SME Contribs category called smeserver-asterisk.  Do you have a bugzilla account set up that I can set as the default assignee for bugs?

[EDIT] I see you did have an account set up.

Bugs can now be submitted for smeserver-asterisk (asterisk-SME7) here:
http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=smeserver-asterisk

...and for selintra-sail here:
http://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=selintra-sail

Bugs for both can be seen here:
http://bugs.contribs.org/buglist.cgi?product=SME+Contribs&component=selintra-sail&component=smeserver-asterisk

And probably soon the files will all be here:
http://mirror.contribs.org/smeserver/contribs/selintra/

Thanks, sorry for the delay setitng all that up.