Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-03-07 Thread Daniel Tryba
On Wed, Mar 07, 2018 at 10:08:52PM +, Thomas Peters wrote:
> You did indeed warn me. I've made progress, gotten the dhcp option 242 to 
> work, and finally gotten the phone to the point where it asks for a username 
> and password. I defined these on the Asterisk server. I entered them on the 
> phone. It says "Acquiring Service" and sits there.  At least it sets the 
> clock on the phone now. 
> 
> TCPDump shows traffic going back & forth every few seconds: 
> 10.1.138.245.13602 > ad-apbx.mcts.org.sip
> ad-apbx.mcts.org.sip > 10.1.138.245.60206
> 10.1.138.245.30360 > ad-apbx.mcts.org.sip:
> 
> But it sits at Acquiring Service eternally. 
> 
> The username and password I am entering are the Asterisk extension and 
> asterisk extension secret. Should these be entered somewhere in the craft 
> menu instead?

My 9608 has no password/secret in asterisk, could be due to some
problem like you are encountering. Also these phones only work with SIP
over TCP.

sip.conf for my 9608:

[a204]
type=friend
context=204
defaultuser=204
host=dynamic
qualify=yes
nat=yes
disallow=all
allow=alaw
dtmfmode=rfc2833
canreinvite=no
transport=tcp,udp


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-03-07 Thread Thomas Peters
You did indeed warn me. I've made progress, gotten the dhcp option 242 to work, 
and finally gotten the phone to the point where it asks for a username and 
password. I defined these on the Asterisk server. I entered them on the phone. 
It says "Acquiring Service" and sits there.  At least it sets the clock on the 
phone now. 

TCPDump shows traffic going back & forth every few seconds: 
10.1.138.245.13602 > ad-apbx.mcts.org.sip
ad-apbx.mcts.org.sip > 10.1.138.245.60206
10.1.138.245.30360 > ad-apbx.mcts.org.sip:

But it sits at Acquiring Service eternally. 

The username and password I am entering are the Asterisk extension and asterisk 
extension secret. Should these be entered somewhere in the craft menu instead?

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Daniel Tryba
Sent: Wednesday, March 07, 2018 1:30 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

On Tue, Mar 06, 2018 at 05:36:04PM +, Thomas Peters wrote:
> But please don't tell me the only way to program up each phone is via 
> the craft interface?
> 
> Every other phone I've ever used requires a configuration file, which 
> has the MAC address of the phone as its name. The Avaya phones must 
> have some other method. Unless I have to embed the mac address and 
> particulars for all the phones into the 46xxsettings.txt file??

I tried to warn you, didn't I? :)

The phones themselves are nice, when used with an Avaya PBX. What I have seen 
is that these phones are really dumb themselves and need a decent PBX that does 
the smartstuff via proprietary interfaces (H.232 gatekeeper like IPOffice or 
whatever they use with the SIP based Communication Manager)

There is some intelligence in parsing the 46xxsettings file, but AFAIK you need 
the CRAFT menu to do this (apart from MAC adresses).

My advise: sell these phones, any SIP device you can buy with the proceeds is 
more intelligent when used with Asterisk.

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-03-07 Thread Daniel Tryba
On Tue, Mar 06, 2018 at 05:36:04PM +, Thomas Peters wrote:
> But please don't tell me the only way to program up each phone is via
> the craft interface?
> 
> Every other phone I've ever used requires a configuration file, which
> has the MAC address of the phone as its name. The Avaya phones must
> have some other method. Unless I have to embed the mac address and
> particulars for all the phones into the 46xxsettings.txt file??

I tried to warn you, didn't I? :)

The phones themselves are nice, when used with an Avaya PBX. What I have
seen is that these phones are really dumb themselves and need a decent
PBX that does the smartstuff via proprietary interfaces (H.232
gatekeeper like IPOffice or whatever they use with the SIP based
Communication Manager)

There is some intelligence in parsing the 46xxsettings file, but AFAIK
you need the CRAFT menu to do this (apart from MAC adresses).

My advise: sell these phones, any SIP device you can buy with the
proceeds is more intelligent when used with Asterisk.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-03-06 Thread Thomas Peters
Ok, to review,  I'm trying to get Avaya 9608G to come up in a pure Asterisk 
environment-- no Avaya SBC or gateway or any other Avaya gear in sight.

I have the phone working to the point where it boots up properly, then displays 
a Username and Password prompt, and says its extension is 123 and the time is 
4:57p, which is wrong.

But please don't tell me the only way to program up each phone is via the craft 
interface?

Every other phone I've ever used requires a configuration file, which has the 
MAC address of the phone as its name. The Avaya phones must have some other 
method. Unless I have to embed the mac address and particulars for all the 
phones into the 46xxsettings.txt file??

How do I get the phone number and authentication into the phone if it isn't 
looking for (for example) 50CD22B47C00.cfg or the like?? These are all the 
files it attempt to read, from /var/log/httpd/access.log:

10.1.138.245 - - [06/Mar/2018:10:19:09 -0600] "GET /voipcfg/96x1Supgrade.txt 
HTTP/1.1" 200 941 "-" "Mozilla/4.0 (compatible; MSIE 6.0)"
10.1.138.245 - - [06/Mar/2018:10:19:09 -0600] "GET /voipcfg/46xxsettings.txt 
HTTP/1.1" 200 421835 "-" "Mozilla/4.0 (compatible; MSIE 6.0)"


By the way, I don't know if I shared this already, but here's my DHCP settings 
on my network that allowed it to find my asterisk server.

First, outside of any defined scope, declare option 242. This is about line 13 
for me, YMMV

option option-242 code 242 = string;

Next, I defined a tiny little scope for Avaya phones:

pool {
range dynamic-bootp 10.194.138.241 10.194.138.254;
deny members of "aastra";
deny members of "polycom-phones";
deny members of "cyberdata-paging";
deny members of "digium-phones";
deny members of "cisco-spa-phones";
allow members of "avaya-phones";
deny members of "sophos";
#option option-242 
"MCIPADD=10.180.202.110,HTTPSRVR=fonia.teste.com.br,L2Q=0,L2QVLAN=0";
option option-242 
"MCIPADD=10.194.141.251,HTTPSRVR=10.194.141.251,HTTPDIR=voipcfg";
  }

Having already created a /voipcfg directory on the web server, the phone now 
boots from there and reads 46xxsettings.txt.



-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-03-01 Thread Daniel Tryba
On Thu, Mar 01, 2018 at 02:46:31PM +, Thomas Peters wrote:
> Right-- I've seen the Avaya document you cite below. It says "To
> administer DHCP option 242, make a copy of an existing option 176" but
> I don't have any example of option 176 or 242 to copy, and don't know
> what to do to /etc/dhcpd.conf to make it offer option 242. 
> 
> Then there's this long table of parameters to use with (presumably)
> option 242.
> 
> I was hoping someone had a working minimal example of a dhcp option
> 242 config I could copy and modify.

Example for our old IP Office (192.168.250.1)  setup:

option option-242 code 242 = string;

subnet 10.0.0.0 netmask 255.255.0.0 {
   #option option-242 "L2Q=1,L2QVLAN=4";
   #option option-242 "HTTPSRVR=10.1.2.3/files";
   option option-242 "MCIPADD=192.168.250.1,MCPORT=1719,HTTPSRVR=192.168.250.1";
}


My guess is you only need HTTPSRVR=hostname/path 
This should point to a dir where a 46xxsettings.txt exists.
Must contain something like:


SET SIPPROXYSRVR 172.16.0.2
SET SIPPORT  5060
SET SIPDOMAIN 172.16.0.2
SET SIPREGISTRAR 172.16.0.2
SET SIP_CONTROLLER_LIST 172.16.0.2:5060;transport=tcp 
SET ENABLE_AVAYA_ENVIRONMENT 0 
SET CONFIG_SERVER_SECURE_MODE 0
SET SIPSIGNAL 0
SET REGISTERWAIT 900

SET CLDISPCONTENT 0
SET DISPLAY_NAME_NUMBER 3

SET DIALPLAN 2xx|0[1-7]|08[458]xxx
SET PHNNUMOFSA 2
SET GMTOFFSET 1:00
SET DSTOFFSET 1
SET DSTSTART LSunMar2L
SET DSTSTOP LSunOct2L

SET BRANDING_VOLUME 1
SET AGCHAND 0
SET AGCHEAD 0
SET AGCSPKR 0
SET DATETIMEFORMAT 2
SET TIMEFORMAT 1
SET SNTPSRVR 109.235.32.103,109.235.32.119
SET ENTRYNAME 0

SET PHNOL


 
> They only have minimal function? No speed dials, BLFs, etc? 

Not as fas as I know. I configured this in 2013 and at that time only
call/transfer and conference worked.


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-03-01 Thread Thomas Peters
Right-- I've seen the Avaya document you cite below. It says "To administer 
DHCP option 242, make a copy of an existing option 176" but I don't have any 
example of option 176 or 242 to copy, and don't know what to do to 
/etc/dhcpd.conf to make it offer option 242. 

Then there's this long table of parameters to use with (presumably) option 242.

I was hoping someone had a working minimal example of a dhcp option 242 config 
I could copy and modify.

They only have minimal function? No speed dials, BLFs, etc? 

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Daniel Tryba
Sent: Thursday, March 01, 2018 3:42 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

On Wed, Feb 28, 2018 at 08:48:38PM +, Thomas Peters wrote:
> I'd like to start configuring my Avaya 9608G phones for use on 
> Asterisk / FreePBX / PBX-In-a-Flash. I'm using a variety of other 
> phones on my system without major issues.
> 
> I've read the discussion back in March, May and August of 2016, but 
> unfortunately, my difficulty is much more basic. I think it has to do 
> with DHCP, specifically, what options I'm offering the phone via DHCP.

So you might want to start without configurations from DHCP. Enter the 
file/http server in the phone manually and point it to a http server containing 
the needed firmware files and a correct 46xxsettings.txt for you asterisk.

Avaya uses other dhcp options for these phone (242):
https://downloads.avaya.com/elmodocs2/one-X_Deskphone_Edition/R1.5/output/16_300698_4/admn054.html

BTW these phones are a terrible waste when used with Asterisk. They only 
provided minimal functionality (calls and transfer).

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-03-01 Thread Daniel Tryba
On Wed, Feb 28, 2018 at 08:48:38PM +, Thomas Peters wrote:
> I'd like to start configuring my Avaya 9608G phones for use on
> Asterisk / FreePBX / PBX-In-a-Flash. I'm using a variety of other
> phones on my system without major issues.
> 
> I've read the discussion back in March, May and August of 2016, but
> unfortunately, my difficulty is much more basic. I think it has to do
> with DHCP, specifically, what options I'm offering the phone via DHCP.

So you might want to start without configurations from DHCP. Enter the
file/http server in the phone manually and point it to a http server
containing the needed firmware files and a correct 46xxsettings.txt for
you asterisk.

Avaya uses other dhcp options for these phone (242):
https://downloads.avaya.com/elmodocs2/one-X_Deskphone_Edition/R1.5/output/16_300698_4/admn054.html

BTW these phones are a terrible waste when used with Asterisk. They only
provided minimal functionality (calls and transfer).

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-02-28 Thread Doug Lytle
The Polycom phones are using the standard FTP; It was only a shot in the 
dark.


Doug


On 02/28/2018 05:15 PM, Thomas Peters wrote:

Doug:

Not sure these phones understand TFTP.  Docs say they don't. But I made changes 
like what you suggested. No luck; the phone still never bothers the asterisk 
server for anything. I still see only broadcasts (only ARPs.)





--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-02-28 Thread Thomas Peters
Doug: 

Not sure these phones understand TFTP.  Docs say they don't. But I made changes 
like what you suggested. No luck; the phone still never bothers the asterisk 
server for anything. I still see only broadcasts (only ARPs.)



-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Doug Lytle
Sent: Wednesday, February 28, 2018 3:06 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 

Subject: Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

>>> but unfortunately, my difficulty is much more basic. I think it has to do 
>>> with DHCP, specifically, what options I’m offering the phone via DHCP.

I'm using ISC DHCP with the following:

 option tftp-server-name "10.30.100.109";
next-server 10.30.100.109;

That provides enough information for my Polycom phones to find their server.

Doug

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-02-28 Thread Doug Lytle
>>> but unfortunately, my difficulty is much more basic. I think it has to do 
>>> with DHCP, specifically, what options I’m offering the phone via DHCP.

I'm using ISC DHCP with the following:

 option tftp-server-name "10.30.100.109";
next-server 10.30.100.109;

That provides enough information for my Polycom phones to find their server.

Doug

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] Avaya 9608G and DHCP and TFTP and HTTP oh my

2018-02-28 Thread Thomas Peters
I'd like to start configuring my Avaya 9608G phones for use on Asterisk / 
FreePBX / PBX-In-a-Flash. I'm using a variety of other phones on my system 
without major issues.

I've read the discussion back in March, May and August of 2016, but 
unfortunately, my difficulty is much more basic. I think it has to do with 
DHCP, specifically, what options I'm offering the phone via DHCP.


  1.  I haven't even gotten the phone to look for any files on my asterisk 
server. I know this because the only traffic on my asterisk server going to or 
from the phone is ARP packets. Here's a tcpdump:

$ tcpdump -v -vv host 10.194.138.245
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

10:07:57.256579 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], proto: ICMP 
(1), length: 48) dhcpserver.mcts.org > 10.194.138.245: ICMP echo request, id 
47332, seq 0, length 28
10:07:59.215981 arp who-has 10.194.138.245 (Broadcast) tell 0.0.0.0
10:08:00.216237 arp who-has 10.194.138.245 (Broadcast) tell 0.0.0.0
10:08:02.563742 arp who-has firewall.mcts.org (Broadcast) tell 10.194.138.245


  1.  The question of boot protocol isn't settled at all-many people say go 
ahead and use tftp (which would be nice, since all my other phones do) but 
there's this document https://downloads.avaya.com/css/P8/documents/100176078 
that says in part: (page 56)

HTTP Generic Setup
You can store the binary file, upgrade file, and settings file on an HTTP 
server. With proper
administration, the deskphone seeks out and uses that material. Some 
functionality might be
lost by a reset if the HTTP server is unavailable.

Note:
If you used TFTP to provide the binary, upgrade, and settings files to older 
Avaya
IP telephones, note that 9600 Series IP Telephones do not support TFTP; you
must use HTTP or HTTPS instead.

This shouldn't matter, as I think I have provided for both- I added a new 
directory to my apache config files on my asterisk server, which opens fine in 
a web browser: 
http://astserver.mcts.org/voipcfg/ And I do 
have those same files in the tftpboot directory, so if it was trying to use 
tftp, I'd see that.

/tftpboot is r-x to everyone, so are all the subdirectories, and the avaya 
files are all 744 (owned by root.)

It contains an index page that just says "hello world" and all the config and 
upgrade files I downloaded from Avaya. But the phone never looks for anything 
on this server.  It's got 46xxsettings.txt 96x1Supgrade.txt and some tar files 
and bin files. But the tcpdump tells me it never checks.


  1.  The docs I've been able to find talk about DHCP option 242 and 176, which 
I've never used before.

All I know about are options like this:

pool {
range dynamic-bootp 10.194.138.241 10.194.138.254;
allow  members of "avaya-phones";
deny members of "sophos";
  # 10.194.141.251 is asterisk server
#option tftp161  "http://10.194.141.251;;
option tftp161  "10.194.141.251";
option tftp162  "/voipcfg";
next-server 10.194.141.251;
 }


DHCP is doing some things right for this phone:

14:22:14.020926 arp who-has 10.194.138.245 tell dhcpserver
14:22:15.001014 IP (tos 0x10, ttl  16, id 0, offset 0, flags [none], proto: UDP 
(17), length: 330) dhcpserver.bootps > 10.194.138.245.bootpc: BOOTP/DHCP, 
Reply, length: 302, xid:0x2c46f14e, flags: [none]
  Your IP: 10.194.138.245
  Server IP: astserver.mcts.org
  Client Ethernet Address: 50:cd:22:b4:7c:a6 (oui Unknown)
  Vendor-rfc1048:
DHCP:OFFER
SID:dhcpserver
LT:144000
SM:255.255.0.0
DG:firewall.mcts.org
DN:"transit.mcts.org"
NS:domainc1.transit.mcts.org,domainc2.transit.mcts.org
NTP:dhcpserver
14:22:15.020927 arp who-has 10.194.138.245 tell dhcpserver
14:22:16.020925 arp who-has 10.194.138.245 tell dhcpserver
14:22:16.061936 IP (tos 0x10, ttl  16, id 0, offset 0, flags [none], proto: UDP 
(17), length: 330) dhcpserver.bootps > 10.194.138.245.bootpc: BOOTP/DHCP, 
Reply, length: 302, xid:0x2c46f14e, flags: [none]
  Your IP: 10.194.138.245
  Server IP: astserver.mcts.org
  Client Ethernet Address: 50:cd:22:b4:7c:a6 (oui Unknown)
  Vendor-rfc1048:
DHCP:ACK
SID:dhcpserver
LT:144000
SM:255.255.0.0
DG:firewall.mcts.org
DN:"transit.mcts.org"
NS:domainc1.transit.mcts.org,domainc2.transit.mcts.org
NTP:dhcpserver
14:22:16.232035 arp who-has 10.194.138.245 (Broadcast) tell 0.0.0.0
14:22:17.232318 arp who-has 10.194.138.245 (Broadcast) tell 0.0.0.0
14:22:19.575743 arp who-has firewall.mcts.org (Broadcast) tell 10.194.138.245

Anyone have any clues?


Thomas M. Peters | Sr. Systems Administrator |