Creating Extensions using Batch Script

Is there any way that I can create extensions from a batch script or an xml file. I have about 250 extensions to create for agents and to make dial plans, and manually typing them out seems like a lot of work.

Thanks,
Shekar

Just create something in php that outputs the same plus 1 or to the same with asterisk real time and mysql.

maybe this can get you started…just chmod +x and run it after customizing to suit:

#!/bin/bash

echo "Enter Parameter 1:"
echo " "
read parm1
echo " "
echo "Enter Parameter 2:"
echo " "
read parm2
echo " "
echo “
sometextornumber $parm1 somemoretext $parm2” >> extensionfile.conf