PhoneGnome API >> phonegnome.setConfig
phonegnome.setConfig
Sets a specified PhoneGnome parameters to a specified value.
The accepted parameters are:
- c2d
- The ring-to destination for click-to-dial calls
and Voice messages (effects
phonegnome.Dial and
phonegnome.Vmsg as well as
actions initiated at the My PhoneGnome website).
- Pass an empty string for the destination number parameter to restore the default behavior of ringing the attached PhoneGnome phone.
- c2ddelay
- A delay in seconds before initating the out bound click-to-dial call (to allow time to prepare to accept the call, in the case of some phones that cannot accept an inbound call while the data connectiion is active).
- intlitsp
- The ITSP to activate for International calls (1-9 or 0 to disable).
- lditsp
- The ITSP to activate for Long-distance (national) calls (1-9 or 0 to disable).
- fwlditsp
- The ITSP to activate for Forwarding calls (1-9).
- fm
- Activate or deactivate Find-me (value 1 to activate, 0 to deactivate)
URI
All XML-RPC requests should go to the following URI: http://my.phonegnome.com/RPC2
Parameters
- country_code (string): Country code of the PhoneGnome
- phone_number (string): Telephone number of the PhoneGnome placing the call
- md5_pin (string): MD5 hash of the PIN of the PhoneGnome account (PIN is same as that of the my.phonegnome.com dashboard)
- parameter_name (string): the parameter to modify (per above)
- parameter_value (string): the value to assign to the parameter
Examples
Example XML-RPC request
<?xml version="1.0"?>
<methodCall>
<methodName>phonegnome.setConfig</methodName>
<params>
<param>
<value><string>1</string></value>
</param>
<param>
<value><string>3605551212</string></value>
</param>
<param>
<value><string>844dda78e8a09008813020f47215e2a3</string></value>
</param>
<param>
<value><string>c2d</string></value>
</param>
<param>
<value><string>18005551212</string></value>
</param>
</params>
</methodCall>
Successful Response
<?xml version="1.0"?> <methodResponse> <params> <param> <value><string>ok</string></value> </param> </params> </methodResponse>
Error Response
<?xml version="1.0"?>
<methodResponse>
<fault>
<value>
<struct>
<member>
<name>faultString</name>
<value><string>operation failed</string></value>
</member>
<member>
<name>faultCode</name>
<value><int>600</int></value>
</member>
</struct>
</value>
</fault>
</methodResponse>
