22 | | * 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. |
23 | | * 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. |
24 | | * when the offer/answer session in the call is established (and application's {{{on_media_update()}}} callback is called), 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. |
25 | | * from the Media Session Info above, application creates a [http://www.pjsip.org/pjmedia/docs/html/group__PJMED__SES.htm Media Session], specifying also the Media Transport created earlier. This process will create Media Streams according to the codec settings and other parameters in the Media Session Info, and also establish ''connection'' between the Media Stream and the Media Transport. |
26 | | * application retrieve the Media (Audio) Stream from the Media Session, and register this Media Stream to the conference bridge. |
| 22 | * during application initialization, application creates the Conference Bridge, which would normally remains throughout the life time of the application. |
| 23 | * when making outgoing call or receiving incoming call, application would create a Sound Device Port and 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. |
| 24 | * when the offer/answer session in the call is established (and application's {{{on_media_update()}}} callback is called), application creates a [https://www.pjsip.org/docs/latest/pjmedia/docs/html/structpjmedia__stream__info.htm Media Stream Info] from both local and remote SDP found in the INVITE session. |
| 25 | * from the Media Stream Info above, application creates a [https://www.pjsip.org/docs/latest/pjmedia/docs/html/group__PJMED__STRM.htm Media Stream], specifying also the Media Transport created earlier. This process will create Media Streams according to the codec settings and other parameters in the Media Stream Info, and also establish ''connection'' between the Media Stream and the Media Transport. |
| 26 | * application registers this Media Stream to the conference bridge. |