Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#930 closed enhancement (fixed)

New PJSUA-LIB account option to add user defined parameters to the Contact header

Reported by: bennylp Owned by: nanang
Priority: normal Milestone: release-1.4
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

The pjsua_acc_config.contact_params setting was used to add user defined parameters to the Contact URI. Some applications may need to add user defined parameters to the Contact header, and this will be supported by this ticket.

For consistency with RFC 3261, this will modify the semantic of the existing pjsua_acc_config.contact_params field as follows:

  • pjsua_acc_config.contact_params is now used to specify additional Contact header parameters
  • a new field, pjsua_acc_config.contact_uri_params, will be added, and this will be used to specify additional Contact URI parameters (the previous semantic of pjsua_acc_config.contact_params)

Change History (4)

comment:1 Changed 15 years ago by nanang

  • Resolution set to fixed
  • Status changed from new to closed

In r2852:

  • Changed semantic of pjsua_acc_config.contact_params, it is now used for specifying Contact header parameters (it was used for specifying Contact URI parameters).
  • Added a new field pjsua_acc_config.contact_uri_params, for specifying Contact URI parameters.
  • Added fields pjsua_acc_config.contact_params and pjsua_acc_config.contact_uri_params into python pjsua.
  • Updated/added option in pjsua app to specify Contact header parameters and Contact URI parameters.

comment:2 Changed 15 years ago by nanang

In r2855:

  • Updated semantic of contact param in functions pjsip_dlg_create_uac(), pjsip_dlg_create_uas(), pjsip_endpt_create_request() and also variable pjsua_acc.contact to be Contact header value (was Contact URI).
  • Updated docs related to above modifications.
  • Fixed pjsua_im_send() in generating contact header, it should use pjsua_acc.contact instead, if it is set.

comment:3 Changed 15 years ago by nanang

In r2860:

  • Fixed compile error for C++ (missing explicit casting from void*).

comment:4 Changed 15 years ago by bennylp

In r2883:

  • Fixed test failure in pjsip_test, due to Contact URI is now interpreted as Contact header
Note: See TracTickets for help on using tickets.