I fiddled a bit with the error handling yesterday, and managed to get a little further - a half extension got created. It was only visible under ?display=devices and where I have “fixed” in Device Type for my manually created extensions - this only had an “f”. Maybe that is useful info?
I’ve been doing some debugging, and found where the ‘value’ error came from.
The method “addDevice” in admin/modules/core/Core.class.php is using this format: $settings['dial']['value'] = 'PJSIP/605'
but the settings array looks like this: $settings['dial'] = 'PJSIP/605'
I made a copy of the file, and deleted all the ['value'] occurrences.
That got me a bit further, and now I get this error: Mailbox is not in the proper format.
So now I would like to know if I’m sending a malformed mutation object or the code in Core.class.php is faulty.
Looks like there’s definitely a bug or two there. Would you mind opening a ticket at https://issues.freepbx.org so that our developers can take a look and investigate it further?