CONFIGURE NUMBER

Configure a number owned by your account

This operation allows updating/editing the configuration of a number, including ENABLE or DISABLE, and/or turn call recording on. It requires using the 11 digit E.164 format to select a number. No response is returned.

REQUEST PARAMETERS

Parameter Data Type Demo Value Description
ConfigureNumber object
Number PhoneNumber
NumberConfiguration object Configure Call and Text features
CallFeature NumberFeature [UNSUPPORTED, PENDING, DISABLED, ENABLED]
TextFeature NumberFeature [UNSUPPORTED, PENDING, DISABLED, ENABLED]
InboundCallConfigurationType InboundType [TRACKING, IVR]
InboundCallConfiguration object
CallTrackingConfig * object
Id long 1 Unique ID of InboundConfig
TransferNumber List[PhoneNumber]
Screen boolean
Record boolean
IntroSoundId long
WhisperSoundId long
IvrInboundConfig * object
Id long 1 Unique ID of InboundConfig
DialplanXml string

EXAMPLE

using RestSharp;

namespace [your-namespace]
{
    public class [your-class]
    {
        public string QueryKeyWords()
        {
            long number = 12132042444; //Your number

            var client = new RestClient("https://www.callfire.com/api/1.1/rest/");
            client.Authenticator = new HttpBasicAuthenticator("YourLoginId", "password");

            var request = new RestRequest(string.Format("number/{0}", number), Method.PUT);
            request.AddParameter("CallFeature", "ENABLED");
            request.AddParameter("InboundCallConfigurationType", "TRACKING");
            request.AddParameter("TransferNumber", "12132042446");
            request.AddParameter("Screen", "false");
            request.AddParameter("Record", "true");

            var response = client.Execute(request);
            string content = response.Content;
            return content;
        }
    }
}

The response code returned is:

204

Which means that the number has been configured successfully.