Changeset 424


Ignore:
Timestamp:
Apr 29, 2006 12:38:25 PM (18 years ago)
Author:
bennylp
Message:

Fixed bug in event subscription when it is challenged/authenticated

Location:
pjproject/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/config.c

    r423 r424  
    2222 
    2323static const char *id = "config.c"; 
    24 const char *PJ_VERSION = "0.5.5"; 
     24const char *PJ_VERSION = "0.5.5.1"; 
    2525 
    2626PJ_DEF(void) pj_dump_config(void) 
  • pjproject/trunk/pjmedia/src/pjmedia/endpoint.c

    r421 r424  
    433433    unsigned i, count; 
    434434    pjmedia_codec_info codec_info[32]; 
     435    unsigned prio[32]; 
    435436 
    436437    PJ_LOG(3,(THIS_FILE, "Dumping PJMEDIA capabilities:")); 
     
    438439    count = PJ_ARRAY_SIZE(codec_info); 
    439440    if (pjmedia_codec_mgr_enum_codecs(&endpt->codec_mgr,  
    440                                       &count, codec_info, NULL) != PJ_SUCCESS) 
     441                                      &count, codec_info, prio) != PJ_SUCCESS) 
    441442    { 
    442443        PJ_LOG(3,(THIS_FILE, " -error: failed to enum codecs")); 
     
    467468 
    468469        PJ_LOG(3,(THIS_FILE,  
    469                   "   %s codec #%2d: pt=%d (%.*s @%dKHz/%d, %sbps, ptime=%d ms, vad=%d, cng=%d)",  
     470                  "   %s codec #%2d: pt=%d (%.*s @%dKHz/%d, %sbps, %dms%s%s%s%s%s)", 
    470471                  type, i, codec_info[i].pt, 
    471472                  (int)codec_info[i].encoding_name.slen, 
     
    475476                  good_number(bps, param.avg_bps),  
    476477                  param.ptime, 
    477                   param.vad, 
    478                   param.cng)); 
     478                  (param.vad ? " vad" : ""), 
     479                  (param.cng ? " cng" : ""), 
     480                  (param.concl ? " plc" : ""), 
     481                  (param.penh ? " penh" : ""), 
     482                  (prio[i]==PJMEDIA_CODEC_PRIO_DISABLED?" disabled":""))); 
    479483    } 
    480484#endif 
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r376 r424  
    13561356        sub->pending_sub = tsx; 
    13571357 
    1358     } else if (tsx == sub->pending_sub && 
    1359                tsx->state >= PJSIP_TSX_STATE_COMPLETED) 
    1360     { 
    1361         sub->pending_sub = NULL; 
    13621358    } 
    13631359 
     
    14681464            return; 
    14691465        } 
     1466 
     1467        /* Clear pending subscription */ 
     1468        if (tsx == sub->pending_sub) 
     1469            sub->pending_sub = NULL; 
    14701470 
    14711471        /* Handle authentication. */ 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r422 r424  
    684684 
    685685 
    686     /* If user specifies the exact codec to be used, then disable all codecs 
    687      * and only enable those specific codecs. 
     686    /* Enable those codecs that user put with "--add-codec", and move 
     687     * the priority to top 
    688688     */ 
    689     if (pjsua.codec_cnt != 0) { 
    690         codec_id = pj_str(""); 
    691         pjmedia_codec_mgr_set_codec_priority(  
    692             pjmedia_endpt_get_codec_mgr(pjsua.med_endpt), 
    693             &codec_id,  
    694             PJMEDIA_CODEC_PRIO_DISABLED); 
    695     } 
    696  
    697          
    698  
    699689    for (i=0; i<pjsua.codec_cnt; ++i) { 
    700690        pjmedia_codec_mgr_set_codec_priority(  
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r284 r424  
    324324    } 
    325325 
     326    pjsip_auth_clt_set_credentials( &dlg->auth_sess, pjsua.cred_count, 
     327                                    pjsua.cred_info); 
     328 
    326329    status = pjsip_pres_create_uac( dlg, &pres_callback,  
    327330                                    &pjsua.buddies[index].sub); 
Note: See TracChangeset for help on using the changeset viewer.