Ignore:
Timestamp:
Aug 15, 2006 8:26:34 PM (18 years ago)
Author:
bennylp
Message:

Support for PUBLISH (RFC 3903):

  • API BREAK: pjsua_pres_create_uac() API CHANGED!! Added options in the function, to allow creating SUBSCRIBE without ";id=" parameter in the Event header.
  • the generic event publication in pjsip-simple/publish.[hc]
  • split PIDF and X-PIDF body generation and parsing into pjsip-simple/presence_body.c.
  • allow NULL in module parameter in pjsip_endpt_add_capability()
  • added "--publish" option in PJSUA.
  • by default, PJSUA-LIB will not add ";id=" parameter in Event header in the SUBSCRIBE request since lots of server and user agents don't support this correctly.
  • Set version to 0.5.7.6.
File:
1 edited

Legend:

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

    r683 r685  
    102102    puts  ("  --username=string   Set authentication username"); 
    103103    puts  ("  --password=string   Set authentication password"); 
     104    puts  ("  --publish           Send presence PUBLISH for this account"); 
    104105    puts  ("  --next-cred         Add another credentials"); 
    105106    puts  (""); 
     
    259260           OPT_HELP, OPT_VERSION, OPT_NULL_AUDIO,  
    260261           OPT_LOCAL_PORT, OPT_PROXY, OPT_OUTBOUND_PROXY, OPT_REGISTRAR, 
    261            OPT_REG_TIMEOUT, OPT_ID, OPT_CONTACT,  
     262           OPT_REG_TIMEOUT, OPT_PUBLISH, OPT_ID, OPT_CONTACT,  
    262263           OPT_REALM, OPT_USERNAME, OPT_PASSWORD, 
    263264           OPT_USE_STUN1, OPT_USE_STUN2,  
     
    287288        { "registrar",  1, 0, OPT_REGISTRAR}, 
    288289        { "reg-timeout",1, 0, OPT_REG_TIMEOUT}, 
     290        { "publish",    0, 0, OPT_PUBLISH}, 
    289291        { "id",         1, 0, OPT_ID}, 
    290292        { "contact",    1, 0, OPT_CONTACT}, 
     
    480482            break; 
    481483 
     484        case OPT_PUBLISH:   /* publish */ 
     485            cur_acc->publish_enabled = PJ_TRUE; 
     486            break; 
     487 
    482488        case OPT_ID:   /* id */ 
    483489            if (pjsua_verify_sip_url(pj_optarg) != 0) { 
Note: See TracChangeset for help on using the changeset viewer.