Page 1 of 1

Update Remote Agent API

PostPosted: Sun Feb 23, 2025 11:31 am
by susam
Hi Team,
I am finding the API to update remote agent, where I found this in the Non-Agent API document,
http://server/vicidial/non_agent_api.ph ... d=TESTCAMP.
But there is no parameter for External Extension. Could you please help me on this, how to update external extension through API.

Re: Update Remote Agent API

PostPosted: Sun Feb 23, 2025 12:22 pm
by williamconley
Code: Select all
mysql -u cron -p1234 asterisk -e "update vicidial_remote_agents set conf_exten='91##########' where remote_agent_id='##'"

Re: Update Remote Agent API

PostPosted: Sun Mar 16, 2025 3:21 am
by susam
Thanks. I understand it could be done via database command. It will be easy if any Non Agent API is used because all are mentioned; there are only things external no updation.

Re: Update Remote Agent API

PostPosted: Sun Mar 16, 2025 8:21 am
by carpenox
you can put a request in development area for a paid feature addition

Re: Update Remote Agent API

PostPosted: Sun Mar 16, 2025 1:22 pm
by williamconley
carpenox wrote:you can put a request in development area for a paid feature addition


And suggest it in the Issue Tracker (top of this page). Best if you modify the non-agent-api to allow this field to be changed just like any other, then post your updated code in the issue tracker.

Or just make a php page that takes user/pass/remote_agent_id/conf_exten and runs this script IF the user/pass are valid and the associated user has api permissions (ie: make a new simple/quick non-agent-api). Then that single value could be changed in a new non-agent-api call (request in the issue tracker, supply the code ... it may land in the core). If you make your own file: It survives upgrades. If you edit the non-agent-api, it'll get overwritten during upgrades.