主权项 |
1. A method for controlling a media gateway, comprising:
receiving a command from a media gateway controller, wherein the command comprises:
a termination wildcard, according to a media gateway control protocol and having a length according to the media gateway protocol, the termination wildcard addressing, a plurality of terminations of the media gateway;a condition, distinct from the termination wildcard, under which the command is to be executed for a subset of the addressed plurality of terminations, the condition containing both a property parameter and a property value directed to a property of the subset; identifying the plurality of terminations to which the command is addressed according to the termination wildcard; subsequent to the identifying, determining the subset by selecting, from the addressed plurality of terminations identified according to the termination wildcard, terminations that meet the condition contained in the command, wherein the determined subset comprises fewer terminations than the addressed plurality of terminations, wherein each termination selected to be in the determined subset is assigned a respective termination ID having the length of the termination wildcard; executing the command for each termination in the determined subset without executing the command for any termination in the addressed plurality of terminations not selected to be in the determined subset. |