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:passw...@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:[email protected]] 
Sent: Friday, January 29, 2010 9:15 AM
To: [email protected]
Subject: Re: [on-asterisk] Help with auto provisioning on Linksys PAP2T ATA

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/PAP2
T_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


On Wed, Jan 27, 2010 at 7:09 PM, Erik Schwartz <[email protected]>
wrote:
> 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/administra
> tion/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.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional commands,
e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to