Ignore:
Timestamp:
Jul 18, 2006 2:39:40 PM (18 years ago)
Author:
bennylp
Message:

Small improvements: (1) pjsua now responds to incoming OPTIONS request, which means that some modules (evsub, invite) need to register their capabilities to the endpoint, (2) added command in pjsua to send arbitrary request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r424 r612  
    421421    } 
    422422     
     423    /* Add to endpoint's Accept header */ 
     424    pjsip_endpt_add_capability(mod_evsub.endpt, &mod_evsub.mod, 
     425                               PJSIP_H_ACCEPT, NULL, 
     426                               pkg->pkg_accept->count, 
     427                               pkg->pkg_accept->values); 
     428 
    423429 
    424430    /* Done */ 
     
    431437} 
    432438 
     439 
     440/* 
     441 * Retrieve Allow-Events header 
     442 */ 
     443PJ_DEF(const pjsip_hdr*) pjsip_evsub_get_allow_events_hdr(pjsip_module *m) 
     444{ 
     445    struct mod_evsub *mod; 
     446 
     447    if (m == NULL) 
     448        m = pjsip_evsub_instance(); 
     449 
     450    mod = (struct mod_evsub*)m; 
     451 
     452    return (pjsip_hdr*) mod->allow_events_hdr; 
     453} 
    433454 
    434455 
Note: See TracChangeset for help on using the changeset viewer.