To download an ADSI script to an ADSI telephone when it is on-hook, use the ADSI_CPEID state table (see ADSI_CPEID).