Repository navigation
Release Notes
This public release contains the definition and documentation of
- webrtc-call-handling 0.4.0
- webrtc-events-subscriptions 0.3.0
- webrtc-registration 0.4.0
The API definition(s) are based on
- Commonalities r4.4 (0.9.0)
- Identity and Consent Management r4.2 (0.5.0)
Changes below are consolidated since the previous public release r2.2, covering release candidates r3.1 and r3.2. Changes introduced and reverted within the cycle are not listed.
Highlights:
- Emergency calling and caller location in webrtc-call-handling.
webrtc-eventsreplaced bywebrtc-events-subscriptions, with subscriptions decoupled from individual media sessions and registrations.- Registration retrieval (
GET /sessions) and explicitphoneNumbersupport for two-legged access tokens in webrtc-registration. - All APIs aligned with Commonalities r4.4: common errors, schemas, subscription model and mandatory
info.descriptionsections.
webrtc-call-handling 0.4.0
webrtc-call-handling 0.4.0 is an initial public version of this API.
Changes documented below are compared to version 0.3.0.
- API definition with inline documentation:
Breaking changes
- Request and response bodies split by operation (
MediaSessionCreate,MediaSessionStatusChange,MediaSessionResponse):originatorAddress,receiverAddressandofferare required inPOST /sessions;statusis required inPUT /sessions/{mediaSessionId}/status, which accepts onlystatus,offer,answerandlocationDetails;status,answerandmediaSessionIdare no longer accepted inPOST /sessions;reason,sequenceNumber,clientCorrelator,serverCorrelator,callObjectRefandofferRequiredremoved at PRs #119, #124, #164, #244 PUT /sessions/{mediaSessionId}/statusalways returns200with the current session;204removed at PR #241- New API-specific error code
422 WEBRTC_CALL_HANDLING.CALLTYPE_EMERGENCY_NOT_SUPPORTEDonPOST /sessionsat PRs #120, #241 - Potentially breaking: request body strictness as defined in the CAMARA API Design Guide is applied, requests with properties not declared in the API definition are rejected with
400 INVALID_ARGUMENT; clients which adhered to the previous API definition are not impacted at PR #202
Added
- Emergency calling: optional
callType(REGULAR,EMERGENCY) and emergency service URNs (urn:service:sos) as address; unsupported emergency calls return422 WEBRTC_CALL_HANDLING.CALLTYPE_EMERGENCY_NOT_SUPPORTEDat PRs #120, #241 - Located calls: optional
locationDetails(PIDF-LO based, commonArea, RFC 3339timestamp) for the originator inPOST /sessionsand for the updating party inPUT /sessions/{mediaSessionId}/statusat PRs #120, #142, #227, #252 Addresssupports anonymous origination (sip:anonymous@anonymous.invalid) and home local numbers at PR #178
Changed
- Media session schemas split into
MediaSessionCreate,MediaSessionResponseandMediaSessionStatusChangeat PRs #164, #244 PUT /sessions/{mediaSessionId}/statusalways returns200with the current session at PR #241- Aligned with Commonalities r4.4 (0.9.0): common error responses and headers referenced from
CAMARA_common.yaml, mandatoryinfo.descriptionsections (authorization and authentication, additional error responses, request body strictness),patternon all string fields at PRs #172, #174, #193, #202, #241, #245 - Editorial: tag renamed to
Call Handling, standardapiRootdescription at PRs #225, #226
Fixed
- Missing
x-correlatorresponse header onPUT /sessions/{mediaSessionId}/statusat PR #222 - Inline documentation and examples aligned with the API definition (pick-up with
Connectedandanswer) at PRs #237, #244
Removed
- Media session fields
reason,sequenceNumber,clientCorrelator,serverCorrelator,callObjectRefandofferRequiredat PRs #119, #124 204response onPUT /sessions/{mediaSessionId}/statusat PR #241- Unused error codes
INVALID_TOKEN_CONTEXT,IDENTIFIER_NOT_FOUNDandOUT_OF_RANGEat PR #241
webrtc-events-subscriptions 0.3.0
webrtc-events-subscriptions 0.3.0 is an initial public version of this API. It replaces webrtc-events 0.2.0 released in r2.2; changes documented below are compared to webrtc-events 0.2.0.
- API definition with inline documentation:
Breaking changes
- API renamed from
webrtc-eventstowebrtc-events-subscriptions(new base path and scopes) at PRs #183, #185 - Subscriptions are bound to a device instead of a registration or media session:
config.subscriptionDetailrequiresdeviceId;registrationIdandsessionIdremoved; one subscription covers up to 3 event types at PRs #126, #156, #244 - Event types follow CloudEvents naming
org.camaraproject.webrtc-events-subscriptions.v0.*(session invitation, session status,registration-ended);subscriptionIdrequired in event data at PRs #183, #244, #252 GET /subscriptionsreturns aSubscriptionListobject (subscriptionsandpagination) withpageandperPageparameters at PR #252- Session event data fields
clientCorrelator,serverCorrelator,callObjectRefandofferRequiredremoved at PR #124 initialEventremoved fromconfig; requests that include it are rejected at PR #244- Potentially breaking: request body strictness as defined in the CAMARA API Design Guide is applied, requests with properties not declared in the API definition are rejected with
400 INVALID_ARGUMENT; clients which adhered to the previous API definition are not impacted at PR #202
Added
- Multiple event types per subscription at PR #156
- Subscription model aligned with
CAMARA_event_common.yaml:PRIVATE_KEY_JWTsink credentials (422 PRIVATE_KEY_JWT_NOT_CONFIGURED) andsubscription-started/subscription-updatedlifecycle events at PR #252 - Optional
locationDetails(PIDF-LO based, commonArea) of the party that generated the event in session event data at PRs #142, #252
Changed
- API renamed to
webrtc-events-subscriptionsat PRs #183, #185 - Subscriptions decoupled from specific media sessions and registrations; a
registration-endedevent does not end the subscription at PRs #126, #237 - Event types renamed to CloudEvents naming;
subscriptionIdrequired in event data at PRs #183, #244, #252 GET /subscriptionsreturns a paginatedSubscriptionListat PR #252- Aligned with Commonalities r4.4 (0.9.0): common error responses,
sinkandterminationDescriptionlengths, mandatoryinfo.descriptionsections (authorization and authentication, additional error responses, request body strictness),patternon all string fields at PRs #172, #174, #193, #202, #241, #245, #252 - Editorial: tag
Webrtc Events Subscription, standardapiRootdescription, callback operationIdpostNotification(no change on the wire) at PRs #225, #226, #244
Fixed
- Access token sink credential fields are
writeOnlyat PR #223 - Examples and developer guidance aligned with the API definition at PRs #151, #237
Removed
- Session- and registration-bound subscriptions at PR #126
initialEventinConfigat PR #244- Session event data fields
clientCorrelator,serverCorrelator,callObjectRefandofferRequiredat PR #124 - Error code
429 QUOTA_EXCEEDEDat PR #241
webrtc-registration 0.4.0
webrtc-registration 0.4.0 is an initial public version of this API.
Changes documented below are compared to version 0.3.0.
- API definition with inline documentation:
Breaking changes
POST /sessionsreturns201(was200) at PR #169POST /sessionsfor adeviceIdand phone number that already have an active registration is rejected with409 ALREADY_EXISTSinstead of replacing the existing registration; the samedeviceIdcan hold registrations for different phone numbers at PR #180PUT /sessions/{registrationId}returns200withexpiresAt;204removed at PR #241phoneNumberhandling depends on the token type: MUST be sent with a two-legged token, MUST NOT be sent with a three-legged token (422 MISSING_IDENTIFIER/422 UNNECESSARY_IDENTIFIER) at PRs #187, #205registrationExpireTimebelow the operator's minimum is rejected with400 OUT_OF_RANGEon create and refresh; on refresh, 0.3.0 fell back to the operator's policy at PRs #165, #237- API-specific error codes renamed:
MAX_DEVICES_PER_USER,MAX_REGISTRATION_PER_MSISDNandMAX_REGISTRATION_PER_USERare nowWEBRTC_REGISTRATION.MAX_DEVICES_PER_USER,WEBRTC_REGISTRATION.MAX_REGISTRATIONS_PER_MSISDNandWEBRTC_REGISTRATION.MAX_REGISTRATIONS_PER_USERat PRs #241, #252 - Potentially breaking: request body strictness as defined in the CAMARA API Design Guide is applied, requests with properties not declared in the API definition are rejected with
400 INVALID_ARGUMENT; clients which adhered to the previous API definition are not impacted at PR #202
Added
GET /sessions(bydeviceIdquery parameter) andGET /sessions/{registrationId}, with scopewebrtc-registration:sessions:read, limited to the phone number(s) authorized by the access token at PRs #169, #204, #212- Optional
phoneNumberinPOST /sessions: required with a two-legged access token (422 MISSING_IDENTIFIER), not allowed with a three-legged access token (422 UNNECESSARY_IDENTIFIER) at PRs #187, #205
Changed
POST /sessionsfor adeviceIdand phone number that already have an active registration is rejected with409 ALREADY_EXISTSinstead of replacing the existing registration; the samedeviceIdcan hold registrations for different phone numbers at PR #180PUT /sessions/{registrationId}returns200withexpiresAtat PR #241- Registration lifetime: a
registrationExpireTimewithin the operator's range is applied as requested, a value above the maximum is capped, a value below the minimum is rejected with400 OUT_OF_RANGE; ongoing media sessions MAY be terminated when the registration expires at PRs #165, #166, #180, #237 - API-specific error codes use the
WEBRTC_REGISTRATION.prefix at PRs #241, #252 - Aligned with Commonalities r4.4 (0.9.0): common error responses, mandatory
info.descriptionsections (authorization and authentication, additional error responses, request body strictness, identifying the phone number from the access token),patternon all string fields at PRs #172, #174, #193, #202, #241, #245, #260 - Editorial: standard
apiRootdescription at PR #225
Fixed
POST /sessionsreturns201;deviceIdformat corrected at PR #169
Removed
204response onPUT /sessions/{registrationId}at PR #241- Unused error codes
EMERGENCY_ADDRESS_MISSING,INVALID_TOKEN_CONTEXTandIDENTIFIER_NOT_FOUNDat PR #241
Full Changelog: r2.2...r3.3