Hello everyone, I am unable to get names of simple dynamic queue with php api, would like some help but the experienced group, I thank you for your attention
It should be as simple as “/queue/simple/print”, and you can then simply loop over the results.
How does your attempt look like?
The dynamic queue name will show ex:
=.id=*1 >>> [21/21 bytes read. >>> [21, 1324] =name= >>> [14/14 bytes read
this is dynamic
=.id=*2 >>> [15/15 bytes read. >>> [15, 667] =name=marquinho >>
this is static
$API->write('/queue/simple/print',false);
$API->write('=stats=');
$ARRAY = $API->read();
Oh. So when the queue is a static one, it works, but not when it’s dynamic?
Chances are this is a RouterOS bug. What version are you using? If it’s 6.10, you should probably report this to support. Make sure to also tell them what function creates this dynamic queue (is it from RADIUS, hotspot?).
I’m using pppoe local authentication, tested up to version 5.26 and does not work, I need to find a way to get the name to display a php page link consumption of customers, through the pppoe logged.
I am very grateful for your attention friend.