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
<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
---------------------------------------------------------------------
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
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