Update Remote Agent API

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Update Remote Agent API

Postby susam » Sun Feb 23, 2025 11:31 am

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.
susam
 
Posts: 32
Joined: Wed Oct 11, 2017 9:27 am

Re: Update Remote Agent API

Postby williamconley » Sun Feb 23, 2025 12:22 pm

Code: Select all
mysql -u cron -p1234 asterisk -e "update vicidial_remote_agents set conf_exten='91##########' where remote_agent_id='##'"
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20410
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Update Remote Agent API

Postby susam » Sun Mar 16, 2025 3:21 am

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.
susam
 
Posts: 32
Joined: Wed Oct 11, 2017 9:27 am

Re: Update Remote Agent API

Postby carpenox » Sun Mar 16, 2025 8:21 am

you can put a request in development area for a paid feature addition
Alma Linux 9.5 | SVN Version: 3919 | DB Schema Version: 1725 | Asterisk 18.26.0 | PHP8
https://dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
DC: https://discord.gg/DVktk6smbh -:- TG: https://t.me/+wkDmkF9U4aUxOGYx
carpenox
 
Posts: 2581
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Update Remote Agent API

Postby williamconley » Sun Mar 16, 2025 1:22 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20410
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 43 guests