Skip Headers
Oracle® Communications Service Broker SVC Implementation Guide
Release 6.0

Part Number E24885-02
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
View PDF

8 Social Voice Communicator API Reference

This chapter describes the Oracle Communications Service Broker SVC subscriber management RESTful API, an application programming interface that creates, modifies, and deletes subscriber accounts and data for SVC services.

About the SVC API

This chapter lists RESTful operations for this API, including the parameters accepted and returned by each operation and examples of HTTP requests and responses.

All JSON body parameters for POST (create) operations are required unless indicated as optional. For PUT (modify) operations, the request only needs to contain the attributes to be changed.

See "About the SVC API Operations" for information on using individual operations in this API.

Note:

In the request and response message examples in this chapter, line breaks and spaces have been added to the JSON data in the body of the message to improve readability.

SVC Subscriber Account Management Operations

These operations create, update, or delete SVC subscriber accounts.


Create Subscriber Accounts

Creates SVC subscriber accounts for a set of users given their user names and their initial passwords.

An HTTP response 200 message is returned on success. If one member of the list cannot be created, no accounts are created and the 400 (HTTP_BAD_REQUEST) error message is returned.

Authorization

Administrators

HTTP Method

POST

URI

/svc/subscribers

Request Body

The request body parameters accepted by the operation are arrays of:

Examples

Example 8-1 Request

POST /svc/subscribers HTTP/1.1 Accept: application/json Authentication: user admin:D@3K4L@F$5S5OIKLS Content-Length: ??Content-Type: application/jsonHost: ocsb host 

[{"username":"bob345","password":"password", true}  
{"username":"ming_yu","password":"password"}  
{"username":"George_Michaels","password":"password"}  
{"username":"555_813_8910","password":"password"}] 

Get Subscriber Accounts

Returns a list of all subscriber user names and URIs.

Authorization

Administrators

HTTP Method

GET

URI

/svc/subscribers

Request Body

Empty

Response Body

This operation returns a comma-separated list of user names and their access URIs.

Examples

Example 8-2 Request

GET http://10.182.98.78:9001/svc/subscribers HTTP/1.1Accept-Encoding: gzip,deflateUser-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001

Example 8-3 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 105
Server: Lab1(8.0.1.0)
[{"tom":"http://10.182.98.78:9001/svc/subscriber/tom"}, {"alice":"http://10.182.98.78:9001/svc/subscriber/alice"}]

Get Subscriber Account Details

Retrieves subscriber account information given the subscriber username.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name

Request Body

Empty

Response Body

This operation returns these subscriber account details:

Examples

Example 8-4 Request

GET http://10.182.98.78:9001/svc/subscriber/bob HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-5 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 105Server: Lab1(8.0.1.0){ "username":"bob","groups":"http://localhost:9001/svc/subscriber/bob/groups""one_numbers":"http://localhost:9001/svc/subscriber/bob/onenumber","contacts":"http://localhost:9001/svc/subscriber/bob/contacts","isPONPresented":true}

Modify a Subscriber Password or Social Circle One-number Preference

Changes a subscribers's password, SVC Social Circle One-number preference, or both.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name

Request Body

This operation submits the following parameters:

Examples

Example 8-6 Request

PUT http://10.182.98.78:9001/svc/subscriber/bob HTTP/1.1Accept-Encoding: gzip,deflateUser-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001{"password":"password", "isPONPresented":"true"}

Delete a Subscriber Account

Deletes a subscriber's SVC account.

Authorization

Administrator or subscriber.

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name

Request Body

Empty

Examples

Example 8-7 Request

DELETE http://10.182.98.78:9001/svc/subscriber/bob HTTP/1.1Accept-Encoding: gzip,deflateUser-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001

SVC Social Circle Personal Contact Management Operations

These operations add, change, delete, or obtain information for SVC Social Circle personal contacts.


Create Personal Contacts in a Subscriber Account

Populates a subscriber's list of contacts from an array that you submit with this operation. Exactly one of the contacts must be given the default value of true making it the default contact.

Authorization

Administrator or subscriber.

HTTP Method

POST

URI

/svc/subscribers/Subscriber_Name/contacts

Request Body

This operation submits the following parameters:

Examples

Example 8-8 Request

POST http://10.182.98.78:9001/svc/subscribers/bob/contacts HTTP/1.1Accept-Encoding: gzip,deflateUser-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001 [{"mobile":"13811110000","default":true},{"home":"01082311212"},{"office":"alice@oracle.com"}]

Get a Personal Contact List

Returns all personal contact names and access URIs for a subscriber.

Authorization

Administrator or subscriber.

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/contacts

Request Body

Empty

Response Body

This operation returns an array contact names and their access URIs.

Examples

Example 8-9 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/contacts HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-10 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 137Server: Jetty(8.0.1.0)[{"office":"http://10.182.98.78:9001/svc/subscriber/alice/contact/office"}, {"home":"http://10.182.98.78:9001/svc/subscriber/alice/contact/home"}]

Delete All Personal Contacts

Deletes all members of a subscriber's SVC Social Circle personal contact list.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/contacts

Request Body

Empty

Examples

Example 8-11 Request

DELETE http://10.182.98.78:9001/svc/subscriber/bob/contacts HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Get a Personal Contact and its Default Status

Retrieves a subscriber's SVC Social Circle personal contact information and whether the contact number is the default.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/contacts/Contact_name

Request Body

Empty

Response Body

This operation returns the following parameters:

Examples

Example 8-12 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/contact/home HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-13 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0)[{"default":false,"number":"bob@oracle.com"}]

Modify a Personal Contact Details and/or Default Status

Modifies an SVC Social Circle personal contact default status or contact information.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/contact/Contact_name

Request Body

This operation submits the following parameters:

Examples

Example 8-14 Request

PUT http://10.182.98.78:9001/svc/subscriber/bob/contact/home HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 URI: http://10.182.100.43:9001/svc/subscriber/bob/contact/home[{"default":true,"number":"222@129.148.75.22"}]

Delete a Personal Contact

Deletes an SVC Social Circle personal contact.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/contact/Contact_name

Request Body

This operation submits the Contact_Name parameter of the contact to delete.

Examples

Example 8-15 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/contact/home HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-16 Response

HTTP/1.1 200 OK[Edit] 2.2URI: http://10.182.100.43:9001/svc/subscriber/alice/contact

SVC Social Circle Number and Contact Management Operations

These operations manage SVC Social Circle one-numbers and contacts.


Create a Social Circle One-number

Adds an SVC Social Circle contact to a subscriber account. A subscriber can only have one personal number, but any number of group numbers.

Authorization

Administrator

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/onenumber

Request Body

This operation submits the following parameters:

Examples

Example 8-17 Request

POST http://10.182.98.78:9001/svc/subscriber/bob/onenumber HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001 [{"onenumber":"+123", "type":"personal"}, 
{"onenumber":"+456", "type":"group"}]

Get All Social Circle One-number Contacts for a Subscriber

Returns details for all SVC Social Circle contacts for a subscriber account.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/onenumbers

Request Body

Empty

Response Body

This operation returns an array of the following parameters for each contact:

Examples

Example 8-18 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/onenumbers HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-19 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 0Server: Jetty(8.0.1.0)
[{"onenumber":"+123","onenumber_url":"http://localhost:9001/svc/subscriber/alice/onenumber/+123",
"onenumber_policy":[],"type":"personal"},{"onenumber":"+456",
"onenumber_url":"http://localhost:9001/svc/subscriber/alice/onenumber/+456",
"onenumber_policy":[],"type":"group"}] 

Delete All Social Circle Contacts

Deletes all SVC Social Circle contacts for a subscriber account.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/onenumbers

Request Body

Empty

Examples

Example 8-20 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/onenumbers HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Get Details for a Social Circle Contact

Returns details for an SVC Social Circle contact.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number

Request Body

Empty

Response Body

This operation returns the following parameters:

Examples

Example 8-21 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/onenumber/123 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-22 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 0Server: Jetty(8.0.1.0)
[{"onenumber":"123","type":"personal",
"onenumber_policy":[{"policy1": "http://localhost:9001/svc/subscriber/bob/onenumber/123/policy/policy1}]

Delete a Social Circle Contact

Deletes a SVC Social Circle contact for a subscriber account.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number

Request Body

Empty

Examples

Example 8-23 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/onenumber/789 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Create a Policy Rule for a Social Circle Contact

Creates a behavior policy for an SVC Social Circle contact.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_name

Request Body

This operation accepts a policy rule array of these values:

Examples

Example 8-24 Request

POST http://10.182.98.78:9001/svc/subscriber/alice/onenumber/123/policy/policy21 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001 [{
 "froms": [],
 "sequencialCall": true,
 "sequentialRingInterval": 30,
 "toAddresses": [
  "tom@oracle.com",
  "0118613611046326"
 ],
 "schedule": {
   "startDate":{
     "year":2009,
     "month":10,
     "day":24
   },
   "startTime":{
     "hour":1,
     "minute":00,
     "second":0
   },
   "endTime":{
     "hour":13,
     "minute":0,
     "second":0
   },
   "recurrentPeriod":1,
   "timezone":+8,
   "until":{
     "year":2010,
     "month":12,
     "day":24
   }
 },
 "priority":10
}]

Get a Social Circle Policy Rule Details

Retrieves the details of an SVC Social Circle policy rule.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_name

Request Body

Empty

Response Body

The response includes a policy rule array. For more information on the array syntax, see the "Create a Social Circle One-number" operation.

Examples

Example 8-25 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/onenumber/789/policy/policy21 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-26 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 0Server: Jetty(8.0.1.0)
[{"froms":    [{"address":     "sip:1234@asfddd.com"}],    "sequencialCall": false,    "sequentialRingInterval": 30,    "toAddresses": [     "tom@oracle.com",      "0118613611046326" ] ,    "schedule":{    "startDate":{    "year":2009,    "month":11,    "day":24}, "startTime":{    "hour":9,    "minute":30,    "second":0},    "endTime":{    "hour":18,    "minute":0,    "second":0},    "recurrentPeriod":2,    "timezone":-8,    "until":{    "year":2010,    "month":12,    "day":24}},    "priority":10}]

Modify a Social Circle Policy Rule

Makes changes to an SVC Social Circle policy rule object.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_Name

Request Body

This operation submits a policy rule array that replaces a policy rule object. For more information on the policy object, see the "Create a Social Circle One-number" operation.

Examples

Example 8-27 Request

PUT http://10.182.98.78:9001/svc/subscriber/alice/onenumber/123/policy/policy21 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001 [{ "froms": [], "sequencialCall": true, "sequentialRingInterval": 30, "toAddresses": [  "tom@oracle.com",  "0118613611046326" ], "schedule": {   "startDate":{     "year":2009,     "month":10,     "day":24   },   "startTime":{     "hour":1,     "minute":00,     "second":0   },   "endTime":{     "hour":13,     "minute":0,     "second":0   },   "recurrentPeriod":1,   "timezone":+8,   "until":{     "year":2010,     "month":12,     "day":24   } }, "priority":10}]

Delete a Social Circle Policy Rule

Removes a policy from a subscriber's SVC Social Circle contact.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/onenumber/One_Number/policy/Policy_Name

Request Body

Empty

Examples

Example 8-28 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/onenumber/789/policy/policy21 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

SVC Social Voice Account Management Operations

These operations administer SVC Social Voice accounts.


Create a Social Voice Group

Adds a SVC Social Voice group contact to a subscriber's account.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/group/Group_Name

Request Body

This operation submits the following parameters:

Examples

Example 8-29 Request

POST http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001
[{"grp_onenumber":"555-6700"}]

Set Personal Group Contact Details

Sets the name, SVC Social Voice Group-number, and URI of a subscriber's SVC Social Voice contact group.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/group/Group_name

Request Body

Empty

Response Body

This operation returns the follows group parameters:

Examples

Example 8-30 Request

POST http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-31 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 104
Server: Jetty(8.0.1.0)
[{"grp_onenumber":"123456", "grp_name":"friends","grp_contacts":"http://10.182.98.78:9001/svc/subscriber/cindy/group/friends/contacts"}]

Get Group Contact Names

Returns a list of the contact names in a subscriber's SVC Social Voice contact group.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/groups

Request Body

Empty

Response Body

The response message includes an array of group URIs.

Examples

Example 8-32 Request

GET http://10.182.98.78:9001/svc/subscriber/bob/groups HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-33 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 104
Server: Jetty(8.0.1.0)
[{"groups":["http://10.182.98.78:9001/svc/subscriber/cindy/group/default_group","http://10.182.98.78:9001/svc/subscriber/cindy/group/friends"]

Modify Personal Contact Group Name

Changes a subscriber's SVC Social Voice personal contact group name.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/group/Group_name

Request Body

This operation submits any of the follows parameters:

Examples

Example 8-34 Request

PUT http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001 [{"grp_onenumber":"family"]

Example 8-35 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Server: Jetty(8.0.1.0)

Delete a Personal Contact Group

Deletes a subscriber's SVC Social Voice group and all of its members.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/group/Group_name

Request Body

Empty

Examples

Example 8-36 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/group/family HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-37 Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 0
Server: Jetty(8.0.1.0)

Add a Personal Group Contact

Adds a SVC Social Voice personal contact group name, number, and status.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/subscriber/Subscriber_Name/group/Group_name/contact/Contact_Name

Request Body

This operation submits the following parameters:

Example 8-38 shows a sample grp_contact array.

Examples

Example 8-38 Request

POST hhttp://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/bob HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001
[{"grp_contact":["bob", "3869", "false"]}]

Get Personal Contact Group Contact Details

Returns an array with the SVC Social Voice personal group contact name, number, and active/inactive status.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/group/Group_name/contact/Contact_name

Request Body

Empty

Response Body

This operation returns the following parameters:

Example 8-40 shows a sample grp_contact array.

Examples

Example 8-39 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/henry HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-40 Response

HTTP/1.1 200 OK
Content-Length: 0
Server: Jetty(8.0.1.0)
[{"grp_contact":["henry", "3869", "false"]}]

Get All Personal Contacts Group Contacts

Returns an array of a subscriber's SVC Social Voice personal contact group URIs.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/group/Group_name/contacts

Request Body

Empty

Response Body

This operation returns an array of the Group Contact URIs.

Examples

Example 8-41 Request

GET http://10.182.98.78:9001/svc/subscriber/alice/group/family/contacts HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-42 Response

HTTP/1.1 200 OK
Content-Length: 0
Server: Jetty(8.0.1.0)
[{"contacts":["http://10.182.98.78:9001/svc/subscriber/cindy/group/friends/contact/contact1","http://10.182.98.78:9001/svc/subscriber/cindy/group/friends/contact/contact2"]

Modify a Personal Group Contact

Replaces a SVC Social Voice personal contact group URI with a new one. All changes in the URI are accepted.

Authorization

Administrator or subscriber

HTTP Method

PUT

URI

/svc/subscriber/Subscriber_Name/group/Group_name/contact/Contact_name

Request Body

This operation returns the following parameters:

Example 8-43 shows a sample grp_contactarray.

Examples

Example 8-43 Request

PUT http://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/fred HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001
[{"grp_contact":["fred", "3869", "false"]}]

Delete a Personal Group Contact

Removes a contact from a subscriber's SVC Social Voice personal group.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/subscriber/Subscriber_Name/group/Group_name/contact/Contact_name

Request Body

Empty

Examples

Example 8-44 Request

DELETE http://10.182.98.78:9001/svc/subscriber/alice/group/family/contact/cindy HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

SVC Click-to-Dial Make Call Operation

This operation makes a Click-to-Dial call.


Make a Click-to-dial Call

Connects the subscriber's SVC Social Circle default contact number on a web site or email server to a callee on a SIP or SS7 telecom network.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/subscriber/Subscriber_Name/makecall?to=callee

Request Body

Empty

Examples

Example 8-45 Request

GET http://10.182.98.78:9001/svc/subscriber/george/makecall?to=5551234567 HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001E

SVC Social Voicemail Access Management Operations

These operations manage SVC Social Voicemail access.


Activate Social Voicemail for Subscribers

Activates SVC Social Voicemail features for existing subscribers.You submit an array of subscriber user names and passwords with the request to activate accounts for those subscribers. If any invalid or pre-existing subscribers are submitted, the entire operation fails and none of the subscribers are granted access to SVC Social Voicemail.

Authorization

Administrator

HTTP Method

POST

URI

/svc/admin/vmboxes

Request Body

This submits an array of user name/password combinations. Voice-mail is activated for all of the users in the array.

Examples - check these

Example 8-46 Request

POST http://10.182.98.78:9001/svc/admin/vmboxes HTTP/1.1Accept-Encoding: gzip,deflateUser-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001{"username":"bob345","onenumber":"123456"}  
[{"username":"ming_yu","onenumber":"5555551234"}  
{"username":"George_Michaels","onenumber":"4155550999"}  
{"username":"555_813_8910","onenumber":"2135550444"}]

Modify Social Voicemail Access

Changes SVC Social Voicemail access for a subscriber. You submit the subscriber's user name and SVC Social Circle One-number and an isActive setting of true or false to activate or deactivate the subscriber's account. No resources or data are removed when the account is deactivated.

Use this operation to deactivate a subscriber's SVC Social Voicemail account temporarily.

To delete a subscriber's account resources and data permanently, see "Delete Social Voicemail Access and Data for a Social Circle".

Authorization

Administrator

HTTP Method

PUT

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/admin

Request Body

This operation submits the following parameters:

Examples

Example 8-47 Request

PUT https://10.182.98.78:9001/svc/vmsubscriber/bob345/onenumber/123456/vmbox/admin HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001
[{ "isAcitve":true }]

Delete Social Voicemail Access and Data for a Social Circle

Deactivates a subscribers's SVC Social Voicemail access, and deletes all SVC Social Voicemail data and recordings associated with that subscriber. Use this operation when you do not expect the subscriber to ever need the SVC Social Voicemail account or data ever again.

To deactivate a subscriber's account without removing and data (temporary deactivation), see "Modify Social Voicemail Access".

Authorization

Administrator

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/admin

Request Body

Empty

Examples

Example 8-48 Request

DELETE https://10.182.98.78:9001/svc/vmsubscriber/bob345/onenumber/123456/vmbox/admin HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Get All Social Voicemail Subscriber Accounts

Returns a list of all SVC Social VoiceMail accounts, and indicates whether those accounts are active or inactive. The response includes each user's user name, SVC Social Circle One-number, the URI of their SVC Social Voicemail box, and whether the voice permission is active or inactive.

Authorization

Administrator

HTTP Method

GET

URI

/svc/admin/vmboxes

Request Body

Empty

Response Body

The response includes the following parameters for each subscriber:

Examples

Example 8-49 Request

GET http://10.182.98.78:9001/svc/admin/vmboxes HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-50 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 137Server: Jetty(8.0.1.0)
[{"subscriber":"bob345","onenumber":"123456","address":"/svc/vmsubscriber/bob345/onehumber/123456/vmbox","isActive": true}  
{"subscriber":"ming","onenumber":"5555551234","address":"/svc/vmsubscriber/ming/onenumber/5555551234/vmbox","isActive": true}  
{"subscriber":"George_Michaels","onenumber":"4155550999","address":"/svc/vmsubscriber/George_Michaels/onenumber/4155550999/vmbox","isActive": true}  
{"subscriber":"555_813_8910","onenumber":"2135550444","address":"/svc/vmsubscriber/555_813_8910/onenumber/2135550444/vmbox","isActive": true}]

Modify Social Voicemail Settings

Change any of these SVC Social Voicemail settings for a subscriber:

Authorization

Administrator or subscriber.

HTTP Method

PUT

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox

Request Body

Empty

Response Body

The request body parameters accepted by the operation include:

Examples

Example 8-51 Request

PUT https://10.182.98.78:9001/vmsubscriber/bob345/onenumber/1234567/vmbox HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-52 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0
[{"enableVoiceMail":true, "voiceMessageExpireDays":60, "maximumInboundMessagesInMailbox":20, "maximumOutboundMessagesInMailbox":20, "maximumPhoneMessageDuration":300, "notifyEmailAddress":"bob@bob.com","greeting" : "/svc/vmsubscriber/alice/onenumber/123321/vmbox/greeting" , "voiceName":"/svc/vmsubscriber/bob/onenumber/123321/vmbox/name", "isPasswordEnable":true} ]

SVC Social Voicemail Message Management Operations

These operations manage SVC Social Voicemail messages.


Cancel a Social Voicemail Personal Greeting Message

Cancels a subscriber's personal greeting message by deleting their personalGreeting.wav file. The default greeting file is used instead.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/greeting

Request Body

Empty

Examples

Example 8-53 Request

DELETE https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/greeting HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Modify Social Voicemail Message Public/Private Setting

Sets a SVC Social Voicemail messages as either publicly or privately accessible.

Authorization

Administrators or subscribers

HTTP Method

PUT

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name

Request Body

This operation submits the following parameter:

Response Body

Empty

Examples

Example 8-54 Request

PUT https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc.wav HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001[{"ispublic":"true"}]

Deactivate a Social Voicemail Name Message

Deactivates a subscriber's SVC Social Voicemail name message.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/name

Request Body

Empty

Examples

Example 8-55 Request

DELETE https://10.182.98.78:9001/vmsubscriber/bob345/onenumber/123456/vmbox/name HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Delete a Social Voicemail Message

Deletes a SVC Social Voicemail message.

Authorization

Administrator or subscriber

HTTP Method

DELETE

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name

Request Body

Empty

Examples

Example 8-56 Request

DELETE https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc.wav HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Get a List of Social Voicemail Messages

Returns a list of all the SVC Social Voicemail message names and types for a subscriber.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/messages

Request Body

Empty

Response Body

On success the response includes an HTTP 200 OK message and an array of entries with the syntax: messageName : type. Where type is one of receivedMessage or sentMessage.

Examples

Example 8-57 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/messages HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-58 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0[{"messageName":""sample_123124","type":"ReceivedMessage"}, {"messageName":"fridaymessage_123124","type":"SentMessage"},{"messageName":""20100102063002_123124","type":"ReceivedMessage"}, {"messageName":""sample_greeting","type":"SentMessage"}] 

Get a Social Voicemail Message File

Gets a SVC Social Voicemail message WAV file.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name

Request Body

Empty

Response Body

On success the response includes an HTTP 200 OK message and the bit stream of the WAV file requested.

Examples

Example 8-59 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc.wav HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-60 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0Host: 10.182.98.78:9001Content-Length: 231837Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"MIME-Version: 1.0User-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001Content-Length: 231837------=_Part_0_20761102.1296024147640Content-Type: audio/x-wav; name=test.wavContent-Transfer-Encoding: binaryContent-Disposition: form-data; name="message1.wav"; filename="name.wav"(binary data)

Get Details for a Social Voicemail Message

Returns details about a SVC Social Voicemail message, including:

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name

Request Body

Empty

Response Body

The response includes the following parameters:

Examples

Example 8-61 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message/abc.wav HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-62 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0[{"type":"SentMessage","time":"201101201333","callerName":"john","callerNum":"3231","fileName":"abc.wav", "fileLocation":"/21/32/3231/abc.wav","isPublic":"true"} ]

Get Personal Greeting Message Settings

Retrieves the location and status (active/inactive) of a subscriber's voice greeting message.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/greeting

Request Body

Empty

Response Body

This operations returns the following parameters:

Examples

Example 8-63 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/greeting HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-64 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0[{"isPersonalActive":"true","fileLocation":"123456/vmbox/greeting" }]

Get Social Voicemail Settings

Returns these SVC Social Voicemail settings for a subscriber:

Authorization

Administrator or subscriber.

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox

Request Body

The request body parameters accepted by the operation include:

Response Body

The response includes the same parameters as the request, with a success or failure value in each parameter field to indicate whether the field was successfully changed.

Examples

Example 8-65 Request

GET https://10.182.98.78:9001/vmsubscriber/bob345/onenumber/123456/vmbox HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001
[{"enableVoiceMail":true, "password":"password", "voiceMessageExpireDays":60, "maximumInboundMessagesInMailbox":20, "maximumOutboundMessagesInMailbox":20, "maximumPhoneMessageDuration":300, "notifyEmailAddress":"bob345@bob.com", } ]

Example 8-66 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0[ {"enableVoiceMail":"success","maximumInboundMessagesInMailbox":"success", "maximumInboundMessagesInMailbox":"success",maximumPhoneMessageDuration":"success","notifyEmailAddress": "success","voiceMessageExpireDays":"success","password":"failure: password should be six digit numeric type. "} ] 

Get Social Voicemail Name Message Settings

Retrieves the location and status (active/inactive) of a subscriber's SVC Social Voicemail name message.

Authorization

Administrator or subscriber

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/name

Request Body

Empty

Response Body

This operations returns the following parameters:

Examples

Example 8-67 Request

GET https://ocsb_hostport/vmsubscriber/bob345/onenumber/123456/vmbox/name HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-68 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0[{"isPersonalActive":"true","fileLocation":"123456/vmbox/name" }]

Send a Social Voicemail Message to Other Subscribers

Sends a message from one SVC Social Voicemail subscriber to another.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message/Message_Name/sendmessage

Request Body

This operation submits the following parameters:

Response Body

This operation returns the following parameters:

Examples

Example 8-69 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/test.wav/sendmessage HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001
{"receiverOneNumbers": ["122345", "3211"]}

Example 8-70 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0)[ {"receiverOneNumbers": ["122345", "3211"]} ]

Create Social Voicemail Greeting Message

Sets the subscriber's SVC Social Voicemail service greeting as personalgreeting.wav in the subscriber's greeting folder.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/greeting

Request Body

This operation does not submit any parameters, but it does require the voice-mail greeting message WAV file as an attachment.

Examples

Example 8-71 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/greeting HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"MIME-Version: 1.0User-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001Content-Length: 231837------=_Part_0_20761102.1296024147640Content-Type: audio/x-wav; name=greeting.wavContent-Transfer-Encoding: binaryContent-Disposition: form-data; name="greeting.wav"; filename="greeting.wav"(binary data)

Create Social Voicemail Box Name Message

Sets a WAV file as the subscriber's SVC Social Voicemail service greeting message. The WAV file is renamed to name.wav and placed in the subscriber's /onenumber/One_Number/vmbox/name directory.

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/name

Request Body

This operation does not submit any parameters, but the HTTP request must include the WAV file to use as a voice name message as an attachment.

Examples

Example 8-72 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/name HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"MIME-Version: 1.0User-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001Content-Length: 231837------=_Part_0_20761102.1296024147640Content-Type: audio/x-wav; name=name.wavContent-Transfer-Encoding: binaryContent-Disposition: form-data; name="name.wav"; filename="name.wav"(binary data)

Create sentMessage Voice Message

Uploads a WAV message file. This operation appends the SVC Social Circle One-number prefix to the filename root to create a unique name. For example, if the subscriber with an SVC Social Circle One-number prefix of 123 uploads a files called vm34.wav the uploaded file is named vm34_123.wav.

After uploading, use:

Authorization

Administrator or subscriber

HTTP Method

POST

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/message

Request Body

This operation does not submit any parameters, but the HTTP request must include the WAV file to use as a voice-mail message as an attachment.

Response Body

This operation returns the following parameters:

Examples

Example 8-73 Request

POST https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/message HTTP/1.1 Accept-Encoding: gzip,deflate Content-Type: multipart/form-data; boundary="----=_Part_0_20761102.1296024147640"MIME-Version: 1.0User-Agent: Jakarta Commons-HttpClient/3.1Host: 10.182.98.78:9001Content-Length: 231837------=_Part_0_20761102.1296024147640Content-Type: audio/x-wav; name=test.wavContent-Transfer-Encoding: binaryContent-Disposition: form-data; name="message1.wav"; filename="name.wav"(binary data)

Example 8-74 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0)
[{"messageName":"test_321"}]

Get a List of the Public Social Voicemail Messages in a Mailbox

Retrieves a list of the publicly-accessible SVC Social Voicemail messages in a subscriber's mailbox.

Authorization

This operation does not perform authorization checking.

HTTP Method

GET

URI

/svc/vmsubscriber/Subscriber_Name/onenumber/One_Number/vmbox/messages/public

Request Body

Empty

Response Body

On success the response includes an HTTP 200 OK message, and an array of message names and file locations of each voice-mail message file with an isPublic parameter value of true.

Examples

Example 8-75 Request

GET https://10.182.98.78:9001/vmsubscriber/alice/onenumber/5556789/vmbox/messages/public HTTP/1.1 Accept-Encoding: gzip,deflate User-Agent: Jakarta Commons-HttpClient/3.1 Host: 10.182.98.78:9001

Example 8-76 Response

HTTP/1.1 200 OKContent-Type: application/jsonContent-Length: 43Server: Jetty(8.0.1.0 [{"messageName":"fridaymessage","fileLocation":"/21/32/3231/friday.wav"},{"messageName":"0100102063000_123124","fileLocation":"/21/32/3231/20100102063000_123124.wav"}]