Changeset 1530 for pjproject/trunk
- Timestamp:
- Oct 30, 2007 4:41:45 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/simpleua.c
r1405 r1530 236 236 } 237 237 238 /* Initialize 100rel support */ 239 status = pjsip_100rel_init_module(g_endpt); 240 PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 238 241 239 242 /* … … 335 338 336 339 340 /* Get the SDP body to be put in the outgoing INVITE, by asking 341 * media endpoint to create one for us. The SDP will contain all 342 * codecs that have been registered to it (in this case, only 343 * PCMA and PCMU), plus telephony event. 344 */ 345 status = pjmedia_endpt_create_sdp( g_med_endpt, /* the media endpt */ 346 dlg->pool, /* pool. */ 347 1, /* # of streams */ 348 &g_med_skinfo, /* RTP sock info */ 349 &local_sdp); /* the SDP result */ 350 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 351 352 353 354 /* Create the INVITE session, and pass the SDP returned earlier 355 * as the session's initial capability. 356 */ 357 status = pjsip_inv_create_uac( dlg, local_sdp, 0, &g_inv); 358 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 359 337 360 /* If we want the initial INVITE to travel to specific SIP proxies, 338 361 * then we should put the initial dialog's route set here. The final … … 360 383 * Note that Route URI SHOULD have an ";lr" parameter! 361 384 */ 362 363 364 /* Get the SDP body to be put in the outgoing INVITE, by asking365 * media endpoint to create one for us. The SDP will contain all366 * codecs that have been registered to it (in this case, only367 * PCMA and PCMU), plus telephony event.368 */369 status = pjmedia_endpt_create_sdp( g_med_endpt, /* the media endpt */370 dlg->pool, /* pool. */371 1, /* # of streams */372 &g_med_skinfo, /* RTP sock info */373 &local_sdp); /* the SDP result */374 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1);375 376 377 378 /* Create the INVITE session, and pass the SDP returned earlier379 * as the session's initial capability.380 */381 status = pjsip_inv_create_uac( dlg, local_sdp, 0, &g_inv);382 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1);383 384 385 385 386 /* Create initial INVITE request.
Note: See TracChangeset
for help on using the changeset viewer.