问题
Say you have a USSD service which has the following structure:
Main menu -> *123#
Menu Item 1 -> Press 1 from main menu
Menu Item 2 -> Press 2 from main menu
Is there any way to dial a single command to go straight to Menu Item 1, for example *123#1
as opposed to dialing *123#
, then waiting for the Menu, THEN selecting 1?
Hope the question is clear.
回答1:
Yes, you have to handle USSD auto dialing in your application. For example a user should be able to dial *123*2# to go straight to menu item 2. Check the SMSGH USSD Framework for implementation details here from line 69.
来源:https://stackoverflow.com/questions/41614638/passing-multiple-ussd-commands-in-a-single-call