Thursday, October 18, 2012

Full SIP Trunking between NEC SL1000 and Asterisk

The setup was done between an NEC SL1000 and Asterisk flavour FreePBX. The easiest way to explain the setup is to provide a table showing the interacting commands between the two PBX's:


Asterisk (192.168.0.2)
SL1000 (192.168.0.3)
Outgoing:


Trunk name: xxxxx
host=192.168.0.3
username=xxxxx
fromuser=xxxxx
secret=xxxx
type=peer
qualify=yes
context=from-trunk


Incoming:


10-23-02 = 192.168.0.3
10-30-02 = as per asterisk


10-30-03 = as per asterisk
Incoming:


User context = xxxxx


secret=xxxx
type=user
context=from-trunk
Outgoing:


10-28-04; 10-36-UserID,AuthID; 14-12.
10-36-Password; 14-12.

 

32 comments:

Hari said...

Do you have any idea linking Sl1000 with Asterisk using PRI30?
I have done it with Panasonic TD500
and Asterisk with PRI23 with qsig.

Brian said...

I have not setup such a link, but PRI is normally straight forward. Just ensure that the interface card for the Asterisk is for 3OB+2D channel PRI and not the 23B+1D channel card.

zwxk04 said...

Do you know how to register on nec?
I wrote the register string like this:
user:password@the_nec_ip/user

but got this error
'Got SIP response 400 "Bad Request" back from the_nec_ip:5060'
from the asterisk console.

Thanks!

Brian said...

If you are using an SL1000 and have setup as per the table, then you do not need a register string. The username and password for SIP trunking has been specified under trunk name and user context.

The way you want to do it, you must ensure that a SIP extension exists (e.g. 200) and set a password (e.g. test), then test with a normal IP phone to see that the extensions works. Once confirmed enter the register string 200:test@nec_ip.

amorphys said...

Very good.

In my SL100 setup i don't have sip trunk defined at 14-12
Right now i'm using 16 ip telephones 3 Polycom Sip and 13 Nec.

So in order to use Sl1000 with asterisks what i need to do ?!
To make a sip trunk !?

Brian said...

Yes. Each command in the table is necessary.

amorphys said...

ok
Can you be more specific at the outgoing

you put

fromuser=xxxx which user


and at the sl1000 incoming did you put the wrong ip

amorphys said...

Thanks for your great post
But i need some tips regarding this setup

1.where did you setup in the first place the sip trunk
2.Asterisk -> outgoing fromuser=xxxx ? what should i put here

3.SL1000 incoming did you put the wrong ip ?!

sg said...

Hi Brain,

Very useful blog ..

We are using NEC SV8100 for my organization and I need to integrate it with Asterisk.

Please let me know the configuration of SV8100 and where we can do it (web panel or command line)

Thanks
Sagi

Brian said...

From top to bottom:

1. The 'fromuser = xxxx' must be the same as the 'username'. In this example username and passwor are all identical.
(Hence all show xxxx. It is a demo on functionality, not security).

The IPs are not incorrect. Look at the headings of the table. The outgoing IP of the Asterisk is going to be the incoming IP to the SL1000!!!!!!


2. See ABOVE!!!!

3. Unfortunately I have not worked with the SV8100. In fact the NEC is not my preferred PBX, but rather Aastra. I only developed this section of the blog because my employer supports NEC XN/SL. However, should you want some pointers please contact me via the e-mail option.

amorphys said...

Thanks.....great....i would try and come back with some feedback

I will try to be more precise....if is not working :)

sg said...

Thanks for your valuable suggestions.
Let me know your mail id pls.

Brian said...

Contact me at brianv [at] pabxconsultants.co.za

Unknown said...

Do you have the programming for the TD500? I have searched and tried and tried, do have a sip truck from a Asterisk install to a Panasonic TD. Any help would be greatly appreciated.

Brian said...

Sorry, no Panasonic support. Only Aastra and NEC.

Mika said...

Our SL1000 got tripped! Unable to make call and receive call. Intercom is fine. What do you think has happened? Any DIY solution? Tks!

Brian said...

Hey, tough luck. Have you done a proper reset (power off for 10 seconds, then power on)?

Else, (1) can you call internally?

Unknown said...

Hello, Brian

Great article great tutorial i have done this setup long time ago now what i want to ask you is why when i call from nec....to asterisk the call is take long time to accomplish the phone is ringing after 30 sec !?

From asterisk to nec is very quickly almost instant.
Where should i look ?

Brian said...

Try changing your SIP signalling to UDP (sometimes it is on TCP or UDP, or TCP). Let me know how it proceeds.

Brian said...

Also try dialling a '#' at the end of the number - if dials quicker, then it is the timer settings for en-bloc.

Unknown said...

Hi, Brian
Thnks for info the problem was in nec side at :

PRG 11-01: change dial digit length of 4X from 3 digits to 1 digit

PRG 44-05-09: froute table 2 (for 4xx), put 3 digits for maximum dialing digit

My interiors for Asterisk begin with 4 ex: 401, 402, 415 etc

now it is instant like supposed to be

This was a tip from a good friend that i meet on sundance-communications :)

Unknown said...

HI Brian,

Thanks for the great article, i can connect from Freepbx to NEC Sl1000.

But having issue when call from NEC SL1000 to Freepbx.

I've follow the table :
in Freepbx : at the connectivity --> Trunk
Incoming Settings :
User Context : [Follow from 10-36 UserID]
in the User Details :
secret = [Follow from 10-36 Password]
type = user
context = from-trunk

Not sure if theres any section need to setup.

Need your valuable advice.

Thank you.

Brian said...

Hi Yody,

What issue are you having? Have you tried running wireshark on your FreePBX to see if the SIP invite from the NEC is reaching your PBX?

Unknown said...

Hi Brian,

Thanks for the Response.

The issue is i cant make a phone call from NEC SL1000 to FreePBX.
But from FreePBX to NECSL 1000 its working fine.

I've try wireshark but looks the NEC cant reach PBX.

Do i need to use an extra Hardware from NECSL1000 with FXO Voip Gateway using the Trunk Port ?

Thanks for your Time.

Thank you

Brian said...

For this kind of issue it is (1) network related or (2) typo in your config.
(1) Enable the SL1000 debug interface and try to ping the FreePBX. If they are not in the same subnet, it may be that the routes are an issue.
(2) Look for typos in your config, where the IP address or destination number are incorrect.

It could be licensing. Do you have IP trunk licenses for the NEC? (Although you should have no IP calls working if you did not have the correct license).

You can mail me a diagram of your setup and I can try and help you further.

Unknown said...

Can you help me in my problem? How to connect Elastix to NEC SV9100.

Please send me a guide.
I aleady email you

Unknown said...

Mr. Brian,

We are having similar problem of call not getting mature when we call from NEC SV8100 to asterisk PBX/Free pbx.

Could you pl. help on this?

Unknown said...
This comment has been removed by the author.
Unknown said...

hi, we are having problem with the configuration above, and we are also deploying this kind of integration of sl1000 & asterisk.

can we ask some configuration manual,

if so, please send to this email rjcalo@unicenter.com.ph


thanks and best regards

Unknown said...

Can you anyone help me connect SV9100 and Asterix....email me manual or guide @ bibek.multisys@gmail.com

Eleanor Manning said...

I love the fact the with this technology you can manage spikes and drops in usage for your business. Thanks to providers such as ThinkTel to keep our costs low and at the same time makes it easier to communicate.

Prashanth Shankar said...

HI Sir,

am facing a problem in NEC VoIP DT800 phone that, after configuring the IP phone as per SOP as well as in PCPro SV8300 application, the IP phone is saying its unregistered and login ID and Password is poping up and its not working too.

Kindly suggest me the same.