Asterisk API change json response resources

Hi all!

I am trying to change json response in Asterisk API calls but cant find the files where can I change that.
I saw this doc: https://wiki.asterisk.org/wiki/display/AST/Create+a+new+resource+with+ARI

But in my /var/lib/asterisk/rest-api there are not any api-docs directory.

I need to change por example the json response for a 200OK in an originate call:
https://localhost:8088/ari/channels?endpoint=blablabla&extension=blablabla

Need to response with something like that
{
Call succeded
}

Thanks in advance
BR

Such changes would need to be done to the Asterisk source code, which has that directory. As well you would need to modify the actual code which produces the JSON - and you’d need to determine what exactly “Call succeeded” actually means and how it is determined.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.