Ascendis Caller ID API
Ascendis Caller ID can interface with other applications through a push
mechanism, where Ascendis Caller ID calls your executable or URL with call
information, or by saving call data in a text file that your application
can check periodically. These techniques are discussed below.
Ascendis Caller ID Runs Your Executable When a Call is Detected
"Actions" in Ascendis Caller ID can run an executable program when a call
is detected.
To make Ascendis Caller ID start a program named "ShowArgs.exe" (included
with Ascendis Caller ID), create a new action to run it:
- Open Ascendis Caller ID
- Click the "Actions" tab in the main window
-
Click "New Action" on the toolbar, or right-click in the list of
actions and select "New Action"
- Change the "Action Name" to something meaningful, like "Test API Exe"
- Make sure "Action Type" is set to "Easy"
- Click the "Run Program" tab
- Place a checkmark in the "Enable" box
- Click the "..." button next to the "Program" box
-
Navigate to the Ascendis Caller ID Program Files folder.
This is normally
C:\Program Files (x86)\Ascendis Software\Ascendis Caller ID 4
- Select the file named "ShowArgs.exe"
-
Click the "Open" button.
This will select the file and close the file selection window.
- Click the "{}" button next to the "Arguments" box
-
Select "Phone number".
"{Number}" should appear in the "Arguments" box
- Add double quotes around "{Number}" since it may contain spaces
- Click the "OK" button in the "Edit Action" window
-
Click the "Test Action" button or
right-click on the new action in the action list and select "Test Action".
ShowArgs should launch and show the path to the program, and the test
phone number ("(800) 555-1212").
Ascendis Caller ID Calls Your URL (in a web browser) When a Call is Detected
"Actions" in Ascendis Caller ID can pass call information to your URL
when a call is detected.
This is actually just a special case of running an executable program,
like above.
In this example, we use your system's web browser to access and show the
page that gets downloaded. This is useful for testing.
To do this, create a new action to run it:
- Open Ascendis Caller ID
- Click the "Actions" tab in the main window
-
Click "New Action" on the toolbar, or right-click in the list of
actions and select "New Action"
- Change the "Action Name" to something meaningful, like "Test API URL"
- Make sure "Action Type" is set to "Easy"
- Click the "Run Program" tab
- Place a checkmark in the "Enable" box
-
Type your URL in to the "Program" box, including "{Number}" where the
phone number argument should go. For example, to look up the phone
number using Google, use
https://www.google.com/search?q=%22{Number}%22
- Click the "OK" button in the "Edit Action" window
-
Click the "Test Action" button or
right-click on the new action in the action list and select "Test Action".
Your web browser should launch and show the specified web page.
Ascendis Caller ID Calls Your URL (via wget) When a Call is Detected
"Actions" in Ascendis Caller ID can pass call information to your URL
when a call is detected.
This is actually just a special case of running an executable program,
like above.
To do this, create a new action to run it:
- Open Ascendis Caller ID
- Click the "Actions" tab in the main window
-
Click "New Action" on the toolbar, or right-click in the list of
actions and select "New Action"
- Change the "Action Name" to something meaningful, like "Test API URL"
- Make sure "Action Type" is set to "Easy"
- Click the "Run Program" tab
- Place a checkmark in the "Enable" box
- Click the "..." button next to the "Program" box
-
Navigate to the Ascendis Caller ID Program Files folder.
This is normally
C:\Program Files (x86)\Ascendis Software\Ascendis Caller ID 4
- Select the file named "wget.exe"
-
Click the "Open" button.
This will select the file and close the file selection window.
-
Type your URL in to the "arguments" box, including "{Number}" where the
phone number argument should go. Your URL might look like this:
"https://mydomain.com/call.php?phone={Number}"
You probably need the double quotes around the URL because {Number} may
be replaced with a phone number containing spaces.
- Click the "OK" button in the "Edit Action" window
-
Click the "Test Action" button or
right-click on the new action in the action list and select "Test Action".
wget.exe should open in a console window, output some text, and then
the window will disappear.
To retain a copy of the output, add the "-o {filename}" argument.
Run
wget.exe --help
in a console window for more options.
SDK (Software Development Kit)
We don't offer an SDK for Ascendis Caller ID, since all you need is the
normal Ascendis Caller ID program,
and perhaps this web page.