magnusbilling7 icon indicating copy to clipboard operation
magnusbilling7 copied to clipboard

API - Cannot get callonline field

Open Lampard11 opened this issue 2 years ago • 13 comments
trafficstars

Hello,

I am trying to retrieve the live calls from MagnusBilling API, but it does not work. $result = $magnusBilling->getFields('callonline'); print_r($result);

Shows the following error: Page Not Found Unable to resolve the request "callonline".

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

The module name is callonline, but cannot retrieve this module through API.

Thank you.

Lampard11 avatar Jun 15 '23 22:06 Lampard11

Ola,

Tenta : $result = $magnusBilling->getFields('CallOnLine'); print_r($result);

fabriciosprj avatar Jun 26 '23 12:06 fabriciosprj

Ola,

Tenta : $result = $magnusBilling->getFields('CallOnLine'); print_r($result);

Tried this but getting following error: Access denied in module:CallOnLine

Lampard11 avatar Jun 26 '23 12:06 Lampard11

conferi se usuário tem permissão para acesso ao modulo CallOnLine no : Settings => Group Users

fabriciosprj avatar Jun 26 '23 12:06 fabriciosprj

conferi se usuário tem permissão para acesso ao modulo CallOnLine no : Settings => Group Users

Checked this too, there's already full permissions, yet same issue.

Lampard11 avatar Jun 26 '23 12:06 Lampard11

da uma olhada https://github.com/magnussolution/magnusbilling7/blob/d98ca62652735cc5f62115f896a6ca91ebc2f126/protected/components/ApiAccess.php#L162

fabriciosprj avatar Jun 26 '23 13:06 fabriciosprj

da uma olhada

https://github.com/magnussolution/magnusbilling7/blob/d98ca62652735cc5f62115f896a6ca91ebc2f126/protected/components/ApiAccess.php#L162

How? Sorry I am confused with this.

Lampard11 avatar Jun 26 '23 13:06 Lampard11

esse módulo só pode :

$result = $magnusBilling->read('CallOnLine');

fabriciosprj avatar Jun 26 '23 13:06 fabriciosprj

esse módulo só pode :

$result = $magnusBilling->read('CallOnLine');

Thanks a lot. Is there any way to hang the calls using the API?

Lampard11 avatar Jun 26 '23 19:06 Lampard11

send me an example please?

fabriciosprj avatar Jun 26 '23 20:06 fabriciosprj

send me an example please?

When you are in "Calls Online" section, you can hang up the calls from there. If there's only read only permission when accessing Calls Online, I think it is not possible to use Hang Up the call from there using the API?

Lampard11 avatar Jun 26 '23 22:06 Lampard11

não é possível usar Desligar usando a API.

Solução e via ASTERISK acesso AMI via HTTP

fabriciosprj avatar Jun 27 '23 14:06 fabriciosprj

não é possível usar Desligar usando a API.

Solução e via ASTERISK acesso AMI via HTTP

Thanks, do you have any example how to do that through Asterisk?

Lampard11 avatar Jun 27 '23 14:06 Lampard11

CLI: channel request hangup SIP/99995-000015bb

fabriciosprj avatar Jun 27 '23 14:06 fabriciosprj