CallFire Solutions

Configure Number

Follow

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

ParameterDemo ValueDescriptionData Type
ConfigureNumber     object
Number   PhoneNumber
NumberConfiguration   Configure Call and Text features object
CallFeature [UNSUPPORTED, PENDING, DISABLED, ENABLED] NumberFeature
TextFeature [UNSUPPORTED, PENDING, DISABLED, ENABLED] NumberFeature
InboundCallConfigurationType [TRACKING, IVR] InboundType
InboundCallConfiguration     object
CallTrackingConfig *     object
Id Unique ID of InboundConfig long
TransferNumber   List[PhoneNumber]
Screen   boolean
Record   boolean
IntroSoundId   long
WhisperSoundId   long
IvrInboundConfig *     object
Id Unique ID of InboundConfig long
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.

Have more questions? Submit a request

Comments