Ignore:
Timestamp:
Oct 7, 2016 7:42:22 AM (8 years ago)
Author:
ming
Message:

Fixed #1965: Add support to specify Contact params specific to REGISTER requests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/account.cpp

    r5410 r5455  
    4444    NODE_READ_UNSIGNED  (this_node, unregWaitMsec); 
    4545    NODE_READ_UNSIGNED  (this_node, proxyUse); 
     46    NODE_READ_STRING    (this_node, contactParams); 
    4647 
    4748    readSipHeaders(this_node, "headers", headers); 
     
    6263    NODE_WRITE_UNSIGNED (this_node, unregWaitMsec); 
    6364    NODE_WRITE_UNSIGNED (this_node, proxyUse); 
     65    NODE_WRITE_STRING   (this_node, contactParams); 
    6466 
    6567    writeSipHeaders(this_node, "headers", headers); 
     
    330332    ret.unreg_timeout           = regConfig.unregWaitMsec; 
    331333    ret.reg_use_proxy           = regConfig.proxyUse; 
     334    ret.reg_contact_params      = str2Pj(regConfig.contactParams); 
    332335    for (i=0; i<regConfig.headers.size(); ++i) { 
    333336        pj_list_push_back(&ret.reg_hdr_list, &regConfig.headers[i].toPj()); 
     
    464467    regConfig.unregWaitMsec     = prm.unreg_timeout; 
    465468    regConfig.proxyUse          = prm.reg_use_proxy; 
     469    regConfig.contactParams     = pj2Str(prm.reg_contact_params); 
    466470    regConfig.headers.clear(); 
    467471    hdr = prm.reg_hdr_list.next; 
Note: See TracChangeset for help on using the changeset viewer.