Been searching the web for quite some time trying to figure out how to update an extensions Outbound CID and Name via a database change / CLI.
We have a few numbers and specific users need to call out on different numbers for different reasons. I’ve created a small online web portal for managing our system. Seeing call logs, usage, etc. I would like to be able to allow my users to change their caller ID for their extension via a dropdown in the online portal I made in PHP.
So far I’m able to change the CID in the asteriskdb.users table but when I try pushing the ‘fwconsole reload’ or the 'amportal a r ’ it appears to apply the changes, and when I check in FreePBX it even changed the Outbound CID for the specific extension in the field, but the CID doesn’t actually change when placing a call. When I check the users table again the change is there, and the changed CID persists after doing an ‘apply config’ in freePBX to some other portion but still the CID doesn’t change. If I change the outbounbd CID to something inside FPBX and apply the config, or even hit ‘submit’ and then ‘apply config’ after my web app made the change, then the CID is changed successfully and can place a call out with the changed CID.
I also made a function for my users to add or remove themselves from a ring group using the same exact functions and that works flawlessly.
I’m missing something obvious I know it, just need a little help.
Thanks in advance!