3 posts / 0 new
Last post
AntonFrolov
Calisto P240

AntonFrolov
<p>Hi!<br /> How I can get right dialedKey?<br /> I use Calisto p240 and Plantronics SDK v3.6 API Specification &nbsp;:<br /> &nbsp;<br /> class CMDeviceListenerCallback : public IDeviceListenerCallback<br /> {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; void onBaseButtonPressed(DeviceListenerEventArgs const&amp; args)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cout &lt;&lt; &quot;onBaseButtonPressed: &quot; &lt;&lt; (args.dialedKey) &lt;&lt; endl;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &hellip;&hellip;..<br /> &nbsp;<br /> , but dialedKey &nbsp;return incorrect value.<br /> &nbsp;<br /> If You have more examples for Native SDK &nbsp;C++ , please, give it.<br /> &nbsp;<br /> I dial 159357, return 153577 or<br /> 124578 -&gt; 245588;</p>

lcollins
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 /> &gt;&gt; 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&#39;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 &ldquo;onCallStateChanged&rdquo; with the CallState of &ldquo;CallInProgress&rdquo;. 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 /> &gt;&gt; Approach Number 2: You can also receive a complete dialed number from Calisto via the Session event called &ldquo;OnCallRequest&rdquo;, rather than having to assembly the digits yourself.<br /> &nbsp;

Add new comment