| 18 | |
| 19 | The media interconnection above would be set up as follows: |
| 20 | |
| 21 | * during application initialization, application creates the Sound Device Port and the Conference Bridge. These two objects would normally remain throughout the life time of the application. |
| 22 | * when making outgoing call or receiving incoming call, application would create a media transport instance (normally it's an [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__UDP.htm UDP Media Transport]). From this media transport, application can put its listening address and port number in the local SDP to be given to the INVITE session. |
| 23 | * when the media in the call is established, application creates a [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SES.htm Media Session Info] from both local and remote SDP found in the INVITE session. |
| 24 | * from the Media Session Info above, application creates a [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SES.htm Media Session], specifying the Media Session Info and the Media Transport created earlier. |
| 25 | * application retrieve the Media (Audio) Stream from the Media Session, and register this Media Stream to the conference bridge. |
| 26 | * application connects the Media Stream slot in the bridge to other slots such as slot zero which normally is connected to the sound device. |
| 27 | |
| 28 | |