Changeset 3372 for pjproject


Ignore:
Timestamp:
Nov 18, 2010 5:15:04 AM (14 years ago)
Author:
bennylp
Message:

Re #1020 (Support for SIP outbound and Path extension (RFC 5626)): added pjsua --outb-rid option to set outbound reg-id parameter for the account

File:
1 edited

Legend:

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

    r3370 r3372  
    228228            PJSIP_SESS_TIMER_DEF_SE); 
    229229    puts  ("  --timer-min-se=N    Session timers minimum expiration period, in secs (def:90)"); 
     230    puts  ("  --outb-rid=string   Set SIP outbound reg-id (default:1)"); 
    230231    puts  ("  --auto-update-nat=N Where N is 0 or 1 to enable/disable SIP traversal behind"); 
    231232    puts  ("                      symmetric NAT (default 1)"); 
     
    389390    int argc = 0; 
    390391    char **argv; 
    391     enum { MAX_ARGS = 64 }; 
     392    enum { MAX_ARGS = 128 }; 
    392393 
    393394    /* Allocate MAX_ARGS+1 (argv needs to be terminated with NULL argument) */ 
     
    515516           OPT_100REL, OPT_USE_IMS, OPT_REALM, OPT_USERNAME, OPT_PASSWORD, 
    516517           OPT_REG_RETRY_INTERVAL, OPT_REG_USE_PROXY, 
    517            OPT_MWI, OPT_NAMESERVER, OPT_STUN_SRV, 
     518           OPT_MWI, OPT_NAMESERVER, OPT_STUN_SRV, OPT_OUTB_RID, 
    518519           OPT_ADD_BUDDY, OPT_OFFER_X_MS_MSG, OPT_NO_PRESENCE, 
    519520           OPT_AUTO_ANSWER, OPT_AUTO_PLAY, OPT_AUTO_PLAY_HANGUP, OPT_AUTO_LOOP, 
     
    658659        { "timer-se",   1, 0, OPT_TIMER_SE}, 
    659660        { "timer-min-se", 1, 0, OPT_TIMER_MIN_SE}, 
     661        { "outb-rid",   1, 0, OPT_OUTB_RID}, 
    660662        { NULL, 0, 0, 0} 
    661663    }; 
     
    913915            } 
    914916            cfg->cfg.timer_setting.min_se = cur_acc->timer_setting.min_se; 
     917            break; 
     918 
     919        case OPT_OUTB_RID: /* Outbound reg-id */ 
     920            cur_acc->rfc5626_reg_id = pj_str(pj_optarg); 
    915921            break; 
    916922 
Note: See TracChangeset for help on using the changeset viewer.