<p>Hi!<br />
How I can get right dialedKey?<br />
I use Calisto p240 and Plantronics SDK v3.6 API Specification :<br />
<br />
class CMDeviceListenerCallback : public IDeviceListenerCallback<br />
{<br />
void onBaseButtonPressed(DeviceListenerEventArgs const& args)<br />
{<br />
cout << "onBaseButtonPressed: " << (args.dialedKey) << endl;<br />
}<br />
……..<br />
<br />
, but dialedKey return incorrect value.<br />
<br />
If You have more examples for Native SDK C++ , please, give it.<br />
<br />
I dial 159357, return 153577 or<br />
124578 -> 245588;</p>
Sorry for the delay in replying.<br />
Firstly are you using Native API? If so, please ensure you are not running Plantronics Hub at the same time, as that could cause an issue with P240 dialpad.<br />
<br />
I will paste below guidance on the 2 approaches to using P240 dialpad with the Plantronics API.<br />
<br />
Hope it helps, let me know if more questions.<br />
<br />
--<br />
>> Approach Number 1:<br />
<br />
You can use IDeviceListenerEvents interface to receive the digit events,<br />
for example (these are from COM sample code):<br />
<br />
ICOMDeviceListenerEvents::onBaseButtonPressed: BaseButton_DialPad digit 1<br />
ICOMDeviceListenerEvents::onBaseButtonPressed: BaseButton_DialPad digit 2<br />
ICOMDeviceListenerEvents::onBaseButtonPressed: BaseButton_DialPad digit 3<br />
ICOMDeviceEvents::onTalkButtonPressed: HeadsetButton_Talk<br />
ICOMDeviceListenerEvents::onHeadsetButtonPressed: HeadsetButton_Talk<br />
ICOMDeviceEvents::onButtonPressed: HeadsetButton_Talk<br />
<br />
If you are not on a call and you receive a series of dialpad digits followed by talk, you can interpret that to mean the user wishes to dial to that number.<br />
(your code can assembly the dialed digits into the full number)<br />
Your softphone should connect the call.<br />
However it should also use our CallCommand OutgoingCall method to notify the Calisto 240 that it is now in a call.<br />
You can pass to OutgoingCall a contact name - either use the dialed number or if you have that number in a phonebook you could pass the person's name.<br />
You also pass a called id, which is an integer used to refer to the call while it is in the Plantronics SDK.<br />
<br />
At the point you call OutgoingCall the Calisto P240 display will change to reflect the fact it is now on a call.<br />
You will receive a Session event called “onCallStateChanged” with the CallState of “CallInProgress”. This confirms the Plantronics device knows it has a call in progress.<br />
<br />
You can test this manually using the Spokes3GCOMSample (from C:\Program Files (x86)\Plantronics\Spokes3G SDK\Samples) by typing ICallCommand then incomingcall.<br />
<br />
--<br />
>> Approach Number 2: You can also receive a complete dialed number from Calisto via the Session event called “OnCallRequest”, rather than having to assembly the digits yourself.<br />
Add new comment