[on-asterisk] Help with auto provisioning on Linksys PAP2T ATA

895 views
Skip to first unread message

Erik Schwartz

unread,
Jan 27, 2010, 6:27:26 PM1/27/10
to aste...@uc.org
Can anyone help with provisioning on this device? I've tried scouring the
net for help from Linksys/Cisco and found very little. The best I can find
is the "administration guide" which does little more than explain the ****
IVR and it's codes.
http://www.cisco.com/en/US/docs/voice_ip_comm/csbpvga/pap2t/administration/g
uide/pap2t_user.pdf

I'm trying to figure out where to tell the ATA look for configuration info
and also understand what are the options that I can put in the mac.cfg file.
One slight wrinkle -- my Asterisk box is in a datacenter and not on the same
LAN as the ATAs.

Thanks in advance.
Erik.

Erik Schwartz

unread,
Jan 27, 2010, 7:09:22 PM1/27/10
to aste...@uc.org

Erik Schwartz

unread,
Jan 29, 2010, 7:38:47 AM1/29/10
to aste...@uc.org

Simon P. Ditner

unread,
Jan 29, 2010, 8:49:38 AM1/29/10
to Erik Schwartz, aste...@uc.org
You would use DHCP option 66 to tell it the ip address of the TFTP
server to go to. Most SPA devices (which the PAP2 is I believe) will
also accept http://<spa ip address>/admin/resync?http://<location of
config>

Here are some pointers on the config file format:
http://www.mail-archive.com/aste...@uc.org/msg03093.html

2010/1/29 Erik Schwartz <aster...@gmail.com>:

---------------------------------------------------------------------
To unsubscribe, e-mail: asterisk-u...@uc.org
For additional commands, e-mail: asteri...@uc.org

Liviu Toma

unread,
Jan 29, 2010, 9:14:30 AM1/29/10
to aste...@uc.org
To access the Provisioning settings of the PAP2T, use ****110# to find
its IP address, then go to the web interface, click Admin Login on the
right then click Switch to Advanced view in the middle. Now you should
see the Provisioning tab (see this for what the web page should look
like: http://voipfan.net/emulators/pap2t/admin/advanced/)
The Profile Rule setting from that page specifies the URL for your
provisioning server. You can point it to a web server or a TFTP
server. Also, you can specify an encryption key for the configuration
file. Usually, most people use a token like $MA in the URL, which the
adapter will replace with its own MAC address.
As for the DHCP option 66: that can be used as well, if your
provisioning server is located in the same LAN as your VoIP
adapter(s). If I'm not mistaking, the PAP2 and PAP2T will look for a
TFTP server using that DHCP option, and then they will ask for the
file init.cfg from the root of the TFTP server. That init.cfg could
have the whole configuration (but then if you have multiple ATAs they
will all use the same configuration file), or you can use the init.cfg
to point the adapter's provisioning to another server/URL. For
example, my init.cfg is a simple XML that looks like this:

<flat-profile>
<Profile_Rule ua="na">http://sipconfig.anotherserver.net/$MA.xml</Profile_Rule>
</flat-profile>

This way, any factory reset adapter that connects to my LAN will grab
that file automatically and set its provisioning URL to
"http://sipconfig.anotherserver.net/$MA.xml". From there, I can use
separate configuration files based on the MAC address of the adapter.

To see what the configuration file would look like, I recommend
downloading the SPC tool from
http://www.cisco.com/en/US/prod/voicesw/ps6790/gatecont/ps10024/ps10029/PAP2T_Firmware.zip
You can use it to generate a sample configuration file for you, then
customize that file to your needs. Just a friendly notice that due to
the huge number of options that you can change in the Linksys ATAs,
the sample XML can look a little scary. If you want a trimmed down
version of the config file, have a look at the one I am using
http://voipfan.net/files/sample.xml

Last, here's a good admin guide for the Linksys / Sipura adapters. It
has lots of info on provisioning too:
http://voipfan.net/files/LinksysSPAAdminGuidev2.0.11-16.pdf

---------------------------------------------------------------------

Chuck Mariotti

unread,
Jan 29, 2010, 9:55:02 AM1/29/10
to liviu...@gmail.com, aste...@uc.org
Do you know if this applies to all of the sipura based ATAs? 3102, etc... Are the XML files compatible? I too would also like to auto provision my Sipuras. Only reason I'm using those instead of the PAP2's is T38... although I have yet to have to actually use T38.

Liviu Toma

unread,
Jan 29, 2010, 10:16:15 AM1/29/10
to aste...@uc.org
Most of this applies to all the Sipura based adapters with a couple of
notes:
- for the SPAxxxx adapters, the default provisioning URL is set to
/spa$PSN.cfg. The $PSN token is the adapter's model, so for example a
SPA2002 will look for /spa2002.cfg, a SPA3102 will look for spa3102.cfg, etc
- most of the settings in the XML are the same among different adapters,
however, there are differences. For example the SPA2102 and SPA3102
incorporate a router, so that are some additional settings related to that
feature. The SPA3000 and SPA3102 have an FXO+an FXS port instead of 2 FXS,
so the settings in the Line (FXO) tab are a little different. The best way
to see what settings are available is to download the SPC tool from Cisco
for that particular model and use it to generate a sample file.

Liviu

Erik Schwartz

unread,
Feb 9, 2010, 4:01:29 PM2/9/10
to aste...@uc.org
Thanks for the information below Liviu,

I have been formatting the "Profile Rule" with "0.0.0.0/tftp/$MAC.xml",
where 0.0.0.0 is the IP of the server. It has a public_html directory and a
tftp there under. I have created a file based on my MAC as appropriate.

Then when I go the the asterisk box and do a "tcpdump -i any port 69 -vv" I
see the request coming in, but don't get the results I'm expecting. You'll
have to forgive me as my Linux knowledge is weak and based on Google (yes
windoze guy). I see the request for the file, it has an RRQ
"/tftp/00:00:00:00:00.xml" thinking that it might be a problem of the file
name with the colons inside I created another file with the colons and even
tried using another file just called test.xml. In all cases I see the ATA
trying to grab the file as appropriate, but it never seems to take it, or at
least none of the configuration information in the file takes effect. I
looked up some simple parameters from the links you provided and copied them
into the config file.

What could be going wrong?

Also are there any sort of credentials to be used with TFTP? I have tried
using username:password@IP/tftp/MAC$.xml and it doesn't seem to go either.

I am using Bicom's PBXware if that helps at all.

-----Original Message-----
From: Liviu Toma [mailto:liviu...@gmail.com]
Sent: Friday, January 29, 2010 9:15 AM
To: aste...@uc.org
Subject: Re: [on-asterisk] Help with auto provisioning on Linksys PAP2T ATA

John Lange

unread,
Feb 9, 2010, 4:34:57 PM2/9/10
to aste...@uc.org
On Tue, 2010-02-09 at 16:01 -0500, Erik Schwartz wrote:
> Thanks for the information below Liviu,
>
> I have been formatting the "Profile Rule" with "0.0.0.0/tftp/$MAC.xml",
> where 0.0.0.0 is the IP of the server. It has a public_html directory and a
> tftp there under. I have created a file based on my MAC as appropriate.

Either of these:

<Profile_Rule_B>
tftp://X.X.X.X/pap2_$MA.cfg
</Profile_Rule_B>

<Profile_Rule_B>
http://X.X.X.X/pap2_$MA.cfg
</Profile_Rule_B>

will result in a request such as:

pap2_000e08dea417.cfg

Hope that helps.

Regards,

--
John Lange
http://www.johnlange.ca

Reply all
Reply to author
Forward
0 new messages