lua script worked, i used lua to get session variable and execute php file,
but the main issue remains which dialplan to target for incoming call to extension,
there are many ways an incoming call will be going to extension, from ringgroup, ivr, callcenter or direct,
but i could find a dialplan...