Ignore:
Timestamp:
Feb 19, 2006 1:38:06 AM (18 years ago)
Author:
bennylp
Message:

Initial SIMPLE implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua/pjsua_opt.c

    r184 r197  
    404404                return -1; 
    405405            } 
    406             pjsua.buddies[pjsua.buddy_cnt++] = pj_str(optarg); 
     406            pjsua.buddies[pjsua.buddy_cnt++].uri = pj_str(optarg); 
    407407            break; 
    408408        } 
     
    511511    pjsip_endpt_dump(pjsua.endpt, 1); 
    512512    pjmedia_endpt_dump(pjsua.med_endpt); 
     513    pjsip_tsx_layer_dump(); 
    513514    pjsip_ua_dump(); 
    514515 
     
    536537        } 
    537538    } 
     539 
     540    /* Dump presence status */ 
     541    pjsua_pres_dump(); 
    538542 
    539543    pj_log_set_decor(old_decor); 
     
    548552{ 
    549553    int argc = 3; 
    550     char *argv[] = { "pjsua", "--config-file", (char*)filename, NULL}; 
    551  
     554    char *argv[4] = { "pjsua", "--config-file", NULL, NULL}; 
     555 
     556    argv[3] = (char*)filename; 
    552557    return pjsua_parse_args(argc, argv); 
    553558} 
     
    655660    for (i=0; i<pjsua.buddy_cnt; ++i) { 
    656661        pj_ansi_sprintf(line, "--add-buddy %.*s\n", 
    657                               (int)pjsua.buddies[i].slen, 
    658                               pjsua.buddies[i].ptr); 
     662                              (int)pjsua.buddies[i].uri.slen, 
     663                              pjsua.buddies[i].uri.ptr); 
    659664        pj_strcat2(&cfg, line); 
    660665    } 
Note: See TracChangeset for help on using the changeset viewer.