Ignore:
Timestamp:
Mar 30, 2010 11:13:59 AM (12 years ago)
Author:
nanang
Message:

Ticket #1044:

  • Added initial version of automatic re-registration after registration failure and automatic call disconnection after re-registration attempt fails.
  • Published auto re-registration setting to pjsua app.
  • Updated pjsip_regc_send() to retrieve the transport earlier (was only in tsx_callback()).
  • Fixed TCP and TLS transport to prevent transport deletion in transport disconnection callback.
  • Fixed wrong keep-alive settings used by TLS transport (was using TCP keep-alive settings).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r3119 r3128  
    190190    puts  ("                      May be specified multiple times"); 
    191191    puts  ("  --reg-timeout=SEC   Optional registration interval (default 55)"); 
     192    puts  ("  --rereg-delay=SEC   Optional auto retry registration interval (default 300)"); 
    192193    puts  ("  --realm=string      Set realm"); 
    193194    puts  ("  --username=string   Set authentication username"); 
     
    485486           OPT_BOUND_ADDR, OPT_CONTACT_PARAMS, OPT_CONTACT_URI_PARAMS, 
    486487           OPT_100REL, OPT_USE_IMS, OPT_REALM, OPT_USERNAME, OPT_PASSWORD, 
     488           OPT_REG_RETRY_INTERVAL, 
    487489           OPT_MWI, OPT_NAMESERVER, OPT_STUN_SRV, 
    488490           OPT_ADD_BUDDY, OPT_OFFER_X_MS_MSG, OPT_NO_PRESENCE, 
     
    551553        { "username",   1, 0, OPT_USERNAME}, 
    552554        { "password",   1, 0, OPT_PASSWORD}, 
     555        { "rereg-delay",1, 0, OPT_REG_RETRY_INTERVAL}, 
    553556        { "nameserver", 1, 0, OPT_NAMESERVER}, 
    554557        { "stun-srv",   1, 0, OPT_STUN_SRV}, 
     
    960963            break; 
    961964 
     965        case OPT_REG_RETRY_INTERVAL: 
     966            cur_acc->reg_retry_interval = pj_strtoul(pj_cstr(&tmp, pj_optarg)); 
     967            break; 
     968 
    962969        case OPT_NEXT_CRED: /* next credential */ 
    963970            cur_acc->cred_count++; 
Note: See TracChangeset for help on using the changeset viewer.