Create extension from URL

Hi,
I have freepbx 12 and we need the ability to create extensions from our CRM
I found 2 scripts but non of them is working properly:


http://samyantoun.50webs.com/asterisk/freepbx/createext.php.txt

Is anyone did that with freepbx 12?

Thank you.