Command line parameters
- SoftphonePro will start automatically when you execute SoftphonePro.exe with command line parameters.
- Only one SoftphonePro.exe instance can be running at the same time. If you execute SoftphonePro.exe with command line parameters when another SoftphonePro instance is aready running, then the second instance will not start. Your command line parameters will be passed to the first Softphone.Pro instance.
Should you need to transform the number before dialing (for example, remove plus or somehow else) please read the article about the dialing rules.
-call Action
1. Add -call parameter to place an outgoing call:
SoftphonePro.exe -call +18001234567
2. You can pass ExtId
parameter while making the call. The app will return that ID in all event handlers related to this call. This allows you to track all events related to the same call in your CRM or Helpdesk software.
SoftphonePro.exe -call +79001234567;extid=123456
Softphone.Pro will automatically return that value in event handlers in %EXTID%
parameter:
3. You can make calls via specific SIP account using sip_id
parameter:
SoftphonePro.exe -call +79001234567;sip_id=001
Please read more on how to set up and use SipId parameter.
-transfer Action
Add -transfer parameter to transfer an active call to another extension or phone number:
SoftphonePro.exe -transfer 100
Please note that call transfer feature must be properly configured for a SIP account in Softphone.Pro.
-answer Action
Add -answer parameter to answer an incoming call:
SoftphonePro.exe -answer
-hangup Action
Add -hangup parameter to end an active call:
SoftphonePro.exe -hangup
-playprerecordedaudio Action
Add -playprerecordedaudio parameter to play pre-recorded message:
SoftphonePro.exe -playprerecordedaudio 1
Please note that the command -playprerecordedaudio must have the ordinal number of a pre-recorded message.
-setstatus Action
Supported in Softphone.Pro 5.6 and newer.
Use -setstatus action to set the status of the softphone app to one of the four standard ones (Online, Away, NA, Offline):
- -setstatus Online - enables Online status;
- -setstatus Away - enables Away status;
- -setstatus NA - enables NA status;
- -setstatus Offline - enables Offline status.
For example:
SoftphonePro.exe -setstatus Away
If Away and/or Busy statuses are disabled in the app they can't be enabled via command line parameter.
-close Action
Supported in Softphone.Pro 5.6 and newer.
Add -close parameter to close Softphone.Pro:
SoftphonePro.exe -close
-dtmf action
Supported in Softphone.Pro 5.7 and newer.
Use -dtmf to send a DTMF command (tone signals) into active call. Use this to:
- transfer the call;
- select IVR destination;
- dial an extension number;
- etc.
For example, if your PBX transfers call with *number#
command, set the following command to transfer the call to extension 100:
SoftphonePro.exe -dtmf *100#