• August 22, 2014, 07:45:58 AM
Welcome, Guest. Please login or register. Registration is free.
Did you miss your activation email?

Author Topic: Running Nortel i2004 phones on Asterisk  (Read 9438 times)

0 Members and 1 Guest are viewing this topic.

Offline hrpty

  • Rookie
  • **
  • Posts: 6
Running Nortel i2004 phones on Asterisk
« on: November 01, 2011, 05:33:03 PM »
Hello.  After nearly 2 weeks of trying to research this and try different configurations I finally have to break down and ask for help.

I am new to Asterisk and I am trying to setup and test run some i2004 phones that I purchased used.  I am now back to square one with a completely fresh install of AsteriskNOW 1.7.1 (Asterisk 1.6.2.11 and FreePBX 2.7.0.0).

I have read the other posts about configuring the i2004 phones for Asterisk however I am still getting the same results on the display of the i2004 phones every time.  ĻServer UnreachableĻ

I have these i2004s connected to a Baystack 460 running on PoE.  I have pinged the phone and it comes back fine.  I have pinged the server and it comes back fine.

Any help would be much appreciated.


Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
    • michaelfmcnamara
    • Michael McNamara
Re: Running Nortel i2004 phones on Asterisk
« Reply #1 on: November 01, 2011, 06:14:18 PM »
Hi hrpty and welcome to the forums!

The i2004 and i2002 are almost identical so I would advise you check out this article I wrote a few years back.

http://blog.michaelfmcnamara.com/2009/02/asterisk-with-nortel-i2002-ip-phones/

You need to use the UNIStim channel driver (hopefully it's still in Asterisk) since these IP phones are not capable of SIP. You also didn't mentioned that you configured the IP phones with the IP address and port of the Asterisk server. You should be able to run Asterisk in debug mode (or perform a packet capture from the server) to see the IP phones attempting to connect.

Good Luck!

Cheers!
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline hrpty

  • Rookie
  • **
  • Posts: 6
Re: Running Nortel i2004 phones on Asterisk
« Reply #2 on: November 01, 2011, 07:25:29 PM »
Ok. I have read this thoroughly and everywhere is stated that Asterisk v1.6 and up come with Unistim in the Asterisk tree source.  Perhaps there is something else that needs to be installed with this that I have not found?

I have reviewed the postings here regarding the settings for the phone itself. It is configured to my Asterisk serverīs IP address and port 5000.  Still a no go.

In any case, I get the impression from what Im reading that I still need to edit the unistim configuration file.  I have not, however, been able to either locate or open this file to edit it.  Forgive me, I am very new to Asterisk and Linux.

Your help is much appreciated,
Matt

Offline hrpty

  • Rookie
  • **
  • Posts: 6
Re: Running Nortel i2004 phones on Asterisk
« Reply #3 on: November 12, 2011, 02:20:07 PM »
It appears that there was a problem with the distro of AsteriskNow I was using, missing unistim files.  In any case, I went with a fresh re-install of TrixboxCE, edited the unistim.conf (just like the one you posted), created the extensions, connected two i2004s on PoE and voila, they connected and registered with Asterisk.

Now the problem is this.  I am running these two i2004 test phones as extensions and 2 LAN terminals with X-Lite extensions.  The X-lite will dial and communicate fine between each other and the i2004s will ring the X-Lite extensions.  However, the i2004s will not ring each other.

Any ideas on that one?

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
    • michaelfmcnamara
    • Michael McNamara
Re: Running Nortel i2004 phones on Asterisk
« Reply #4 on: November 14, 2011, 12:04:09 AM »
I don't recall having any such issues when I tested it sometime ago. I can't really say myself perhaps someone else will be able to tell. Short of that I would look to put Asterisk into debug and see what the logs say when you try to dial the handset. Are you selecting the line and then dialing the number and selecting dial again?
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline Caraculo

  • Rookie
  • **
  • Posts: 1
Re: Running Nortel i2004 phones on Asterisk
« Reply #5 on: January 15, 2012, 06:14:18 PM »
Hi.

I have a Nortel i2002 and I am posting this here since the phone is similar to the i2004 when it comes to its technology.

I am also trying to make it work through an asterisk 1.6 environment using unistim.conf to be able to use the i2002 UNIStim capabilities.

My Asterisk environment works fine when running with a Cisco 7960 SIP enabled phone but I cannot make it work with the Nortel i2002. I can actually call local numbers but no external calls. I have read McNamara's comments and his blog but without being able to find out what is going wrong. I also searched the web but also with no success.

One thing that I don't understand is that my "exten=>" doesn't contain any trunk information as when using SIP. So how does the Nortel phone ans Asterisk know how to reach the "outside" world?

Here are the Asterisk-log lines from call and my conf files...

Asterisk log
[Jan 16 00:08:35] NOTICE[12082]: chan_unistim.c:3582 parsing: 192.168.1.7 Warning : received a retransmitted packet : #0x0000 (we are at #0x0001)
    -- Device 'i2002' successfuly registered
    -- Added extension '208' priority 1 to default (0x603098)
    -- Starting switch on '208@i2002-0' to 65555555
  == Starting USTM/208@i2002-0 at default,55555555,1 failed so falling back to exten 's'
  == Starting USTM/208@i2002-0 at default,s,1 still failed so falling back to context 'default'


unistim.conf
[general]
port=5000
autoprovisioning=no

[i2002]
context=default
device=0016 xxxx xxxx
rtp_port=10000
rtp_method=3
status_method=0
dateformat=0
timeformat=2
country=dk
callerid="Customer Support" <208>
callhistory=1
linelabel="208"
line=>208

extensions.conf
exten => 208,1,Dial(USTM/208@i2002)

Working extensions.conf used with Cisco SIP ; not used when testing the Nortel i2002
[CallingRule_208]
exten => _X.,1,Dial(SIP/${EXTEN}@musimi,40,r)

users.conf
[musimi]
context = DID_######
host = musimi.dk
trunkname = Musimi
username = #####
secret = xxxxxxxx
hasiax = no
registeriax = no
hassip = yes
registersip = yes
trunkstyle = voip
hasexten = no
insecure = port,invite
disallow = all
allow = g729,ulaw,alaw

[208]
username = 208
transfer = yes
mailbox = 208
host = dynamic
...
dtmfmode = rfc2833
disallow = all
allow = g729,ulaw,alaw
« Last Edit: January 16, 2012, 06:07:55 AM by Caraculo »

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
    • michaelfmcnamara
    • Michael McNamara
Re: Running Nortel i2004 phones on Asterisk
« Reply #6 on: January 17, 2012, 06:55:16 PM »
Hi Caraculo and welcome to the forums!

I've never had the opportunity to test calls outside a single Asterisk server, although I believe there was a IAX2 test trunk (years back now - probably gone now) that I was able to setup and test calls through. I've also been successful in establishing calls between an 1120e (SIP) and an i2004 (H323) so Asterisk must be normalizing the signaling (H323 <-> SIP) and feeding the RTSP media G.711 packets between the endpoints.

Obvious question here... have you tried to setup the Extern string just like any other SIP extension, substituting the proper extension definition?

I would think it's just an Asterisk configuration issue... unfortunately I'm not an Asterisk expert although I have been playing with it more recently.

Cheers!
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline hrpty

  • Rookie
  • **
  • Posts: 6
Re: Running Nortel i2004 phones on Asterisk
« Reply #7 on: January 19, 2012, 11:25:02 PM »
I have these Nortel i2004s (24 of them) powered up to a Nortel Baystack PoE switch and communicating with Asterisk v2.6, (Trixbox v2.8.0.4) on a Dell Poweredge 1750 server...

Anyhoo... I can get them to ring, display anything I want. All the ring tones work fine, gets dial tone, But I STILL can not get any audio whatsoever in either direction - calling internally extension to extension. I have also tested this with X-Lite 4 calling out to a Nortel set and receiving in to a Nortel set. Same results as Nortel to Nortel, dial tone, it rings, says call is connected but no audio.

So, the question is, could this be the firmware on the Nortel sets??  Does a firmware update even matter?  And, how do you do a firmware update without a BCM?

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
    • michaelfmcnamara
    • Michael McNamara
Re: Running Nortel i2004 phones on Asterisk
« Reply #8 on: January 20, 2012, 09:42:16 AM »
So, the question is, could this be the firmware on the Nortel sets??  Does a firmware update even matter?  And, how do you do a firmware update without a BCM?

I though think the firmware wouldn't be an issue with just making calls.

There is no way to update the i2002/i2004 without a CS1000 or BCM or similar as they utilize the UTFTP process.

So you've made some progress from your initial post... care to share with the folks here how you got this far?
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline hrpty

  • Rookie
  • **
  • Posts: 6
Re: Running Nortel i2004 phones on Asterisk
« Reply #9 on: January 20, 2012, 04:44:10 PM »
The original problem was with the newer version Distro of Asterisk v2.8. I couldnīt figure out unistim.conf, because aparently it didnīt come with this preloaded. Even after trying to install it via Yum, I was not successful. So, I switched to an older Distro - Trixbox CE (v2.8) and it was easy to run. I simply edited unistim.conf with similar settings as those you have listed on the forum, reload the config files and then added the extensions in the Web GUI and update settings. After that, the phones register with Asterisk and display all options on the screen in working function, great! They ring each other by extension number, great!

Then the problems come into action. All ring/dial tones work, but No voice audio on any end and they donīt dial out either. Also, Asterisk is not showing the phones online or even being in the queue. I have tested this with DHCP and with Static IP with the same results and wonder if NAT could be the problem? I have read up on setting the Nortels up in a VPN. This may be the next step...

Thoughts anyone?

« Last Edit: January 20, 2012, 05:11:17 PM by hrpty »

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
    • michaelfmcnamara
    • Michael McNamara
Re: Running Nortel i2004 phones on Asterisk
« Reply #10 on: January 20, 2012, 10:30:42 PM »
Are you pressing the line key? I believe you need to press the line key to place/answer a call.
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline hrpty

  • Rookie
  • **
  • Posts: 6
Re: Running Nortel i2004 phones on Asterisk
« Reply #11 on: January 22, 2012, 12:56:20 PM »
If I understand correctly...

The line key is the green of the six soft keys and opens up a dial tone.  Simply picking up the handset does exactly the same thing.  There is 1 of 4 feature keys below the display, one of which is marked for DIAL, pressing that does the same thing also!  After doing any of the above three, that same lower softkey then changes to say CALL, which I do, and then press it. 

That does ring extension to extension internally. And, when dialing out, it says "is on-line" and the call timer runs, but no voice/audio either case - internal or external.  Itīs baffling.

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
    • michaelfmcnamara
    • Michael McNamara
Re: Running Nortel i2004 phones on Asterisk
« Reply #12 on: January 23, 2012, 09:47:20 PM »
I just setup an i2002 tonight really quick using my recent AsteriskNow installation, details regarding the configuration can be found here. I created the file /etc/asterisk/unistim.conf, I added a custom extension definition in FreePBX, and I restarted Asterisk (service restart asterisk).

Initially I was unable to establish a voice path between either Asterisk or another extension. Once I added the following three lines to my unistm.conf file under the extension definition and after restarting asterisk everything starting working.


rtp_port=10000              ; RTP port used by the phone, default = 10000. RTCP = rtp_port+1
rtp_method=3                ; If you don't have sound, you can try 1, 2 or 3, default = 0
status_method=0             ; If you don't see status text, try 1, default = 0


I retrieved the information above from my original blog post on Asterisk back in February of 2009.

Hopefully this helps.

Good Luck!
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!

Offline hdik

  • Rookie
  • **
  • Posts: 7
Re: Running Nortel i2004 phones on Asterisk
« Reply #13 on: July 24, 2012, 11:44:55 AM »
I'm tackling the same problem without much success.

Setup:
- two Nortel IP 2004 phone (Firmware 0602B59);
- TrixBox 2.8;
- no NAT/VPN/Firewall (at the moment);

Both phones can contact each other and ring. But no sound/audio.

Tried different values of rtp_method.
Both phones show status and time is running. But no audio gets through.

Any direct way to troubleshoot this?

What I noticed, with TrixBox you don't edit the extensions file directly.
And therefore it is different than what Michael says in his blog from Feb.2009
Instead of
exten => 100,1,Dial(USTM/100@phone1)
exten => 101,1,Dial(USTM/101@phone2)

in the extensions.conf file I see
exten => 201,1,Macro(exten-vm,novm,201)
exten => 201,n,Goto(${IVR_CONTEXT},return,1)
exten => 201,hint,USTM/102@Nortel2004&Custom:DND201

in the extensions_additional.conf for each phone.

Can this have something to do with sound?

Thanks.
Henry.
« Last Edit: July 24, 2012, 11:46:51 AM by hdik »

Offline Michael McNamara

  • Administrator
  • Hero Member
  • *****
  • Posts: 3689
    • michaelfmcnamara
    • Michael McNamara
Re: Running Nortel i2004 phones on Asterisk
« Reply #14 on: August 02, 2012, 07:44:31 PM »
Hi hdik and welcome to the forums!

It can be an issue with network communications between the IP phones.

The IP phones are on the same VLAN and have the proper IP address and netmask?

I would suggest trying a packet trace, do you see any data from either IP phone after the call is established?

Good Luck!
We've been helping network engineers, system administrators and technology professionals since June 2009.
If you've found this site useful or helpful, please help me spread the word. Link to us in your blog or homepage - Thanks!