Patent ID: 7675902

Claim:
A method for realizing signaling agent in a network system, the network system comprising media gateways and a media gateway controller in different networks, and at least one agent equipment on a boundary of different networks where a MEGACO Media Gateway Control (MEGACO) Protocol is adopted between the media gateways and the media gateway controller, wherein the agent equipment has at least two network addresses: one being a first network address in a network of the media gateway controller and the other one being a second network address in a network of a media gateway side, the method comprising the steps of: step 1: a media gateway requesting to be registered to the media gateway controller, and the agent equipment dynamically recording message identifier of the media gateway to be registered and network address according to the register message; step 2: for a MEGACO signaling that is unconcerned with a media stream port of the media gateway, the agent equipment directly forwarding the signaling according to a message identifier in the signaling; and step 3: for a MEGACO signaling that is concerned with the media stream port, the agent equipment processing media stream attributes correspondingly, and then forwarding the signaling according to the message identifier in the signaling, wherein step 3 further comprises the steps of: (1) the agent equipment receiving the MEGACO signaling for establishing or modifying media stream port sent to the media gateway from the media gateway controller, establishing or modifying corresponding media stream forwarding port and forwarding table on the agent equipment, replacing relevant media information in the MEGACO signaling with corresponding network address information of media stream forwarding port on the agent equipment, and forwarding the signaling to corresponding media gateway; (2) the media gateway processing MEGACO signaling received, and returning a reply signaling; if the MEGACO signaling is a signaling for creating a connection, further recording on the agent equipment a termination ID of the media gateway; (3) the agent equipment modifying forwarding table of corresponding media stream forwarding port according to the reply signaling received, replacing media information in the signaling with corresponding network address information of media stream forwarding port on the agent equipment, and forwarding to the media gateway controller; and (4) the media gateway controller sending a subtract signaling for releasing media stream port to the media gateway after calling finishes, the agent equipment releasing corresponding media stream forwarding port after receiving the signaling, and forwarding the signaling to corresponding media gateway.