|
|
|
|
@ -169,12 +169,22 @@ public void actionPerformed(ActionEvent evt)
|
|
|
|
|
&& selectedPanel instanceof CallPanel
|
|
|
|
|
&& ((CallPanel)selectedPanel).getCall().getCallState()
|
|
|
|
|
== CallState.CALL_INITIALIZATION) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SoundLoader.getSound(SoundLoader.BUSY).stop();
|
|
|
|
|
SoundLoader.stop(Constants.getDefaultIncomingCallAudio());
|
|
|
|
|
|
|
|
|
|
CallPanel callPanel = (CallPanel) selectedPanel;
|
|
|
|
|
|
|
|
|
|
Iterator participantPanels = callPanel.getParticipantsPanels();
|
|
|
|
|
|
|
|
|
|
while (participantPanels.hasNext())
|
|
|
|
|
{
|
|
|
|
|
CallParticipantPanel panel
|
|
|
|
|
= (CallParticipantPanel) participantPanels.next();
|
|
|
|
|
|
|
|
|
|
panel.setState("Connecting");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Call call = callPanel.getCall();
|
|
|
|
|
|
|
|
|
|
answerCall(call);
|
|
|
|
|
@ -183,7 +193,7 @@ public void actionPerformed(ActionEvent evt)
|
|
|
|
|
else if(selectedPanel != null
|
|
|
|
|
&& selectedPanel instanceof CallListPanel
|
|
|
|
|
&& ((CallListPanel) selectedPanel)
|
|
|
|
|
.getCallList().getSelectedIndex() != -1) {
|
|
|
|
|
.getCallList().getSelectedIndex() != -1) {
|
|
|
|
|
|
|
|
|
|
CallListPanel callListPanel = (CallListPanel) selectedPanel;
|
|
|
|
|
|
|
|
|
|
@ -198,7 +208,7 @@ else if(selectedPanel != null
|
|
|
|
|
//call button is pressed over the contact list
|
|
|
|
|
else if(selectedPanel != null
|
|
|
|
|
&& selectedPanel instanceof ContactListPanel){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//call button is pressed when a meta contact is selected
|
|
|
|
|
if(isCallMetaContact) {
|
|
|
|
|
|
|
|
|
|
@ -450,7 +460,7 @@ public void incomingCallReceived(CallEvent event)
|
|
|
|
|
* button.
|
|
|
|
|
*/
|
|
|
|
|
public void callEnded(CallEvent event)
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
Call sourceCall = event.getSourceCall();
|
|
|
|
|
|
|
|
|
|
SoundLoader.getSound(SoundLoader.BUSY).stop();
|
|
|
|
|
|