1 post / 0 new
khaaby@sevenfeathers.com's picture
Joined: 2016/09/22
Points: 0

Hello, I have a script that I run on my domain controller that exports phone numbers along with the location of the phones to a .csv file. I'd like to create a cron job to parse the file and look at the last 4 digits of the phone number and compare it to the extensions list. If the 4-digits exist as an extension, to then write the tag field in asterisk with the location in the .csv file for that extension. I'm not well versed in either cron jobs or writing directly to the database and was hoping someone might have some tips, or even have done something similar that they can share. Thanks in advance!