CallFire has a new API!
We are proud to announce the launch of our API 2.0! Learn more about our streamlined, transactional and broadcast APIs. This version of the API documentation will remain available for reference only. There will be no new development, only bug fixes. We highly recommend upgrading to our newer and more sophisticated documentation.
Update number configuration, such as ENABLE / DISABLE or turn call recording on, using 11 diget E.164 format to select number. No response is returned.
Request Parameters
Parameter | Demo Value | Description | Data 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 |
* indicates choice value, bolded parameters are required
<?php
/**
* You'll need your login/password pair when you create the SOAP client.
* Don't use the fake login/password provided here; it's just for show and won't work.
*/
$wsdl = "http://callfire.com/api/1.1/wsdl/callfire-service-http-soap12.wsdl";
$client = new SoapClient($wsdl, array(
'soap_version' => SOAP_1_2,
'login' => 'YourLoginId',
'password' => 'YourPassword'));
/**
* ConfigureNumber
*/
$request = new stdclass();
$request->Number = '19206596476'; // required
$request->NumberConfiguration = new stdclass(); // required
$request->NumberConfiguration->CallFeature = 'ENABLED'; // [UNSUPPORTED, PENDING, DISABLED, ENABLED]
$request->NumberConfiguration->InboundCallConfiguration->CallTrackingConfig = new stdclass(); // required choice
$request->NumberConfiguration->InboundCallConfiguration->CallTrackingConfig->Record = true; // boolean
$client->ConfigureNumber($request);
// Sample $response: empty
?>