Entering many misc destinations. script anyone?

looking for someone who had to build a script to enter oh say 1000 misc destinations. i have a multiple pbx layout where all incoming calls come to one pbx then are directly routed to their final location (might be on the same pbx= ez, or several other ones). these are DID routed calls over PRI. with NO IVR.

so if it was only a few, its simple. enter inbound route to misc destination of the DID then outbound route to the IAX2 trunk to the final pbx.

not a few. anyone? meanwhile, i type away. lol

hello to Tony and Philippe