Ignore:
Timestamp:
Aug 11, 2009 12:42:38 PM (15 years ago)
Author:
nanang
Message:

Ticket #833:

  • Initial version of Session Timers (RFC 4028).
  • Added new options in pjsua app to configure Session Timers settings.
  • Added python tests for Session Timers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/_pjsua.h

    r2852 r2858  
    16571657    PyObject        *contact_uri_params; 
    16581658    int              require_100rel; 
     1659    int              require_timer; 
     1660    unsigned         timer_se; 
     1661    unsigned         timer_min_se; 
    16591662    int              allow_contact_rewrite; 
    16601663    int              ka_interval; 
     
    17311734    obj->contact_uri_params = PyString_FromPJ(&cfg->contact_uri_params); 
    17321735    obj->require_100rel = cfg->require_100rel; 
     1736    obj->require_timer = cfg->require_timer; 
     1737    obj->timer_se = cfg->timer_se; 
     1738    obj->timer_min_se = cfg->timer_min_se; 
    17331739    obj->allow_contact_rewrite = cfg->allow_contact_rewrite; 
    17341740    obj->ka_interval = cfg->ka_interval; 
     
    17771783    cfg->contact_uri_params = PyString_ToPJ(obj->contact_uri_params); 
    17781784    cfg->require_100rel = obj->require_100rel; 
     1785    cfg->require_timer = obj->require_timer; 
     1786    cfg->timer_se = obj->timer_se; 
     1787    cfg->timer_min_se = obj->timer_min_se; 
    17791788    cfg->allow_contact_rewrite = obj->allow_contact_rewrite; 
    17801789    cfg->ka_interval = obj->ka_interval; 
     
    19201929        offsetof(PyObj_pjsua_acc_config, require_100rel), 0, 
    19211930        "Require reliable provisional response." 
     1931    }, 
     1932    { 
     1933        "require_timer", T_INT, 
     1934        offsetof(PyObj_pjsua_acc_config, require_timer), 0, 
     1935        "Require session timer." 
     1936    }, 
     1937    { 
     1938        "timer_se", T_INT, 
     1939        offsetof(PyObj_pjsua_acc_config, timer_se), 0, 
     1940        "Session timer expiration period, in seconds." 
     1941    }, 
     1942    { 
     1943        "timer_min_se", T_INT, 
     1944        offsetof(PyObj_pjsua_acc_config, timer_min_se), 0, 
     1945        "Session timer minimum expiration period, in seconds." 
    19221946    }, 
    19231947    { 
Note: See TracChangeset for help on using the changeset viewer.