Need to add extensions outside of GUI

Any advice on how to handle this?

The issue I’m having now is with the password. I’m including “password” => “testpw123” in the array. the password is added correctly to the users table. But the secret in the GUI appears to be an auto generated pw. I looked in the sip table and there is no secret set. Should the script use core_devices_add or core_devices_addsip?

I have the same problme in my web! can you give me some value point!