Changeset 1530 for pjproject/trunk


Ignore:
Timestamp:
Oct 30, 2007 4:41:45 PM (17 years ago)
Author:
bennylp
Message:

Fixed route set bug in simpleua.c (thanks Raquie Rawq)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/simpleua.c

    r1405 r1530  
    236236    } 
    237237 
     238    /* Initialize 100rel support */ 
     239    status = pjsip_100rel_init_module(g_endpt); 
     240    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    238241 
    239242    /* 
     
    335338 
    336339 
     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 
    337360        /* If we want the initial INVITE to travel to specific SIP proxies, 
    338361         * then we should put the initial dialog's route set here. The final 
     
    360383         * Note that Route URI SHOULD have an ";lr" parameter! 
    361384         */ 
    362  
    363  
    364         /* Get the SDP body to be put in the outgoing INVITE, by asking 
    365          * media endpoint to create one for us. The SDP will contain all 
    366          * codecs that have been registered to it (in this case, only 
    367          * 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 earlier 
    379          * 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  
    384385 
    385386        /* Create initial INVITE request. 
Note: See TracChangeset for help on using the changeset viewer.