Patent ID: 7796622

Claim:
A method for implementing an internal connection at a media gateway, comprising the steps of: acquiring, by a media gateway controller, information on the capability of a media gateway for supporting an internal connection; and performing, by the media gateway controller, corresponding control according to the capability of the media gateway for supporting an internal connection, wherein the internal connection is a connection between two parties of a call at the same media gateway; wherein, the performing corresponding control according to the capability of the media gateway for supporting an internal connection comprises: when the internal connection is to be determined and controlled by the media gateway controller, and when the media gateway controller determines that the two parties of the call need to be connected internally, instructing, by the media gateway controller, the media gateway to add two terminations representing respectively the two parties of the call into a same context, so that the two terminations are connected with each other directly; and when the internal connection is to be determined and controlled by the media gateway itself, instructing, by the media gateway controller, the media gateway to create one context for each party of the call, and add a termination representing the calling party into the context created for the calling party, and add a termination representing the called party into the context created for the called party, so that the media gateway connects the two terminations representing respectively the two parties of the call with each other when the media gateway determines the two parties of the call need to be connected internally.