Changeset 438 for pjproject/trunk/pjsip-apps/src/samples/simpleua.c
- Timestamp:
- May 13, 2006 10:46:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/simpleua.c
r412 r438 586 586 pj_status_t status) 587 587 { 588 pjmedia_session_info sess_info; 588 589 const pjmedia_sdp_session *local_sdp; 589 590 const pjmedia_sdp_session *remote_sdp; … … 608 609 609 610 611 /* Create session info based on the two SDPs. 612 * We only support one stream per session for now. 613 */ 614 status = pjmedia_session_info_from_sdp(inv->dlg->pool, g_med_endpt, 1, 615 &sess_info, &g_med_skinfo, 616 local_sdp, remote_sdp); 617 if (status != PJ_SUCCESS) { 618 app_perror( THIS_FILE, "Unable to create media session", status); 619 return; 620 } 621 622 /* If required, we can also change some settings in the session info, 623 * (such as jitter buffer settings, codec settings, etc) before we 624 * create the session. 625 */ 626 610 627 /* Create new media session, passing the two SDPs, and also the 611 628 * media socket that we created earlier. 612 629 * The media session is active immediately. 613 630 */ 614 status = pjmedia_session_create( g_med_endpt, 1, 615 &g_med_skinfo, 616 local_sdp, remote_sdp, 631 status = pjmedia_session_create( g_med_endpt, &sess_info, 617 632 NULL, &g_med_session ); 618 633 if (status != PJ_SUCCESS) {
Note: See TracChangeset
for help on using the changeset viewer.