Call phone number, Answer call, Transfer and Hangup call, Play a pre-recorded message in web application

Should you need to transform the number before dialing (for example, remove plus or somehow else) please read the article about the dialing rules.

Outgoing call

1. To make a new call use the following link in your web application:

<a href="SoftphonePro.Call:+19001234567">+1.900.123.45.67</a>

2. You can also pass additional parameter extid to identify call in your CRM:

<a href="tel:+19001234567;extid=123456">+1 (900) 123-45-67</a>
Softphone.Pro automatically replaces %ExtID% placeholder with a extid value for all call related event handlers:

extid parameter to identify call

3. Parameter sip_id allows for making calls from a particular SIP account:

<a href="callto:+19001234567;sip_id=001">+1 (900) 123-45-67</a>

See more information on extid and sip_id parameters in this article.

Call transfer

To transfer an active call to specific extension use the following link in your web application:

<a href="SoftphonePro.Transfer:100">Transfer to 100 extension</a>

Please note that your cloud or on-site PBX should support call transfers. You also need to correctly set it up in in Softphone.Pro.

Answer the incoming call

To answer the incoming call use the following link in your web application:

<a href="SoftphonePro.Answer:anything">Answer</a>

Use any string in href attribute value after SoftphonePro.Answer: protocol prefix.

Hangup an active call

To hangup an active call use the following link in your web application:

<a href="SoftphonePro.Hangup:anything">Hangup</a>

Use any string in href attribute value after SoftphonePro.Hangup: protocol prefix.

Play a prerecorded message

To play a pre-recorded message during the conversation use the following link in your web application:

<a href="SoftphonePro.PlayPrerecordedAudio:1">Play message 1</a>

Use the ordinal number of a pre-recorded message in href attribute value after SoftphonePro.PlayPrerecordedAudio: protocol prefix.

Setting app status

Supported in Softphone.Pro 5.6 and newer.

To set the status of the softphone app to one of the four standard ones (Online, Away, NA, Offline) use the following link in your web application:

<a href="SoftphonePro.SetStatus:Online">Set Online status</a>

Use on of the four statuses in href attribute value after SoftphonePro.SetStatus: protocol prefix:

  • SoftphonePro.SetStatus:Online - enables Online status;
  • SoftphonePro.SetStatus:Away - enables Away status;
  • SoftphonePro.SetStatus:NA - enables NA status;
  • SoftphonePro.SetStatus:Offline - enables Offline status.

If Away and/or Busy statuses are disabled in the app they can't be enabled via link.

Closing the application

Supported in Softphone.Pro 5.6 and newer.

To close Softphone.Pro use the following link in your web application:

<a href="SoftphonePro.Close:anything">Close Softphone.Pro</a>

Use any string in href attribute value after SoftphonePro.Close: protocol prefix.

Send DTMF command

Supported in Softphone.Pro 5.7 and newer.

SoftphonePro.SendDTMF link allows you to send a DTMF command (tone signals) into active call. Use this to:

  • transfer the call;
  • select IVR destination;
  • dial an extension number;
  • etc.

Set the command code compatible with your PBX in href attribute value after SoftphonePro.SendDTMF: protocol prefix. For example, if your PBX transfers call with *number# command, set the following link to transfer the call to extension 100:

<a href="SoftphonePro.SendDTMF:*100#">Send *100# DTMF command to Softphone.Pro</a>