Using genericMenu with Items from variable

as the Digium Phones are missing the pickupgroup notification like the snom phones do I’m building one using the API and AMI.

That’s how it works:
Everytime a new call in the pickupgroup arrives I send an action from ami to the phones belonging to that group and a menu pops up.

And the problem:
Once the menu was shown it displays the first initial items from first show every next time although the items from my variable have changed.

One solution is changing the id of the menu everytime I show it.
But I don’t know if it will result in an overflow when the app is in business…

Is there a way to dispose this menu after it was sent to background?

Exit the application everytime after showing is no option cause I need the observe to catch the action from the ami…

Best regards,

If I’m following, I think what you are looking for is the ‘forceRedraw’ parameter to

Thank you very much!!! That is exactly what I was looking for!
Didn’t knew it is working for the genericMenu, too, because it’s not mentioned in the api-reference…

Ahh…I didn’t even notice that I linked the wrong documentation page after I checked in the code.

So, now to see about updating that documentation page… Thanks for pointing that out.