Help - Search - Members - Calendar
Full Version: SendVoicemail hangup problem
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
Oswaldo Romano Jr.
I'm using Skype4COM to send a voicemail to a partner - how do I hungup it?

If a make

set oVM = oSkype.SendVoicemail(partner.handle)
.....
oVM.Finish

Don't hungup...

Tks, Romano
TheUberOverlord
QUOTE(Oswaldo Romano Jr. @ Thu Mar 15 2007, 11:17) [snapback]372387[/snapback]

I'm using Skype4COM to send a voicemail to a partner - how do I hungup it?

If a make

set oVM = oSkype.SendVoicemail(partner.handle)
.....
oVM.Finish

Don't hungup...

Tks, Romano


Are you using the "VoicemailStatus" Event Handler?

https://developer.skype.com/Docs/Skype4COMLib/ISkypeEvents

There is a status event that show when your voicemail is uploaded:

https://developer.skype.com/Docs/Skype4COML...VoicemailStatus

I have never done this before, so just guessing.

Oswaldo Romano Jr.
QUOTE(TheUberOverlord @ Fri Mar 16 2007, 19:20) [snapback]372841[/snapback]

Are you using the "VoicemailStatus" Event Handler?

https://developer.skype.com/Docs/Skype4COMLib/ISkypeEvents

There is a status event that show when your voicemail is uploaded:

https://developer.skype.com/Docs/Skype4COML...VoicemailStatus

I have never done this before, so just guessing.



Yes, I'm using - but the problem is: if I send a voicemail to a person, I can't hungup the call - the call.finish don't work. I need to go to Skype client, find that person on contact panel, and there click on hungup...
Oswaldo Romano Jr.
Yes, I'm sending a voicemail using for example:

set oVM = oSkype.SendVoicemail(oVoicemail.PartnerHandle)

.... the answer machine repond, I record the message, then I want to hungup, so I did another button to do this:

oVM.Finish

But this don't work - the intersting is that on client panel the hungup button work...
TheUberOverlord
QUOTE(Oswaldo Romano Jr. @ Fri Mar 16 2007, 15:08) [snapback]372876[/snapback]

Yes, I'm sending a voicemail using for example:

set oVM = oSkype.SendVoicemail(oVoicemail.PartnerHandle)

.... the answer machine repond, I record the message, then I want to hungup, so I did another button to do this:

oVM.Finish

But this don't work - the intersting is that on client panel the hungup button work...


I think you need to monitor the Call ID. and make sure it is the same, in other words, when you get the 'voicemail sent status, is that call ID the same as it was when it was sent?
Oswaldo Romano Jr.
QUOTE(TheUberOverlord @ Fri Mar 16 2007, 21:15) [snapback]372879[/snapback]

I think you need to monitor the Call ID. and make sure it is the same, in other words, when you get the 'voicemail sent status, is that call ID the same as it was when it was sent?


Yes, it is - I receive the correct status, but when I stop to talk I need to end, right? So, what do I need to call to close the comunication? Thanks for your time, Romano
TheUberOverlord
QUOTE(Oswaldo Romano Jr. @ Fri Mar 16 2007, 15:34) [snapback]372886[/snapback]

Yes, it is - I receive the correct status, but when I stop to talk I need to end, right? So, what do I need to call to close the comunication? Thanks for your time, Romano


try this:

CODE


skype.Client.Focus();
skype.Client.ButtonPressed('NO');
skype.Client.ButtonReleased('NO')



Not sure what the syntax is in VB, but this should end the voicemail. The downside of doing this is that it will bring the Skype client window in focus, so for example, if it was minimized, it will not longer be minimized, not sure how important that is in your case or not?

The reason you want to bring the window in focus first is that if you do not, you can cause yourself problems and there may be unexpected results from time to time, depending what else is going on with the users desktop and other programs in focus.

This method is basically ending the recording using the button that the Skype user would use.

In still think you should be able to do this by doing StopRecording() as listed here:

https://developer.skype.com/Docs/Skype4COMLib/IVoicemail
Oswaldo Romano Jr.
QUOTE(TheUberOverlord @ Fri Mar 16 2007, 21:38) [snapback]372887[/snapback]

try this:

CODE


skype.Client.Focus();
skype.Client.ButtonPressed('NO');
skype.Client.ButtonReleased('NO')



Not sure what the syntax is in VB, but this should end the voicemail. The downside of doing this is that it will bring the Skype client window in focus, so for example, if it was minimized, it will not longer be minimized, not sure how important that is in your case or not?

The reason you want to bring the window in focus first is that if you do not, you can cause yourself problems and there may be unexpected results from time to time, depending what else is going on with the users desktop and other programs in focus.

This method is basically ending the recording using the button that the Skype user would use.

In still think you should be able to do this by doing StopRecording() as listed here:

https://developer.skype.com/Docs/Skype4COMLib/IVoicemail


Great! Work with Button 'NO'! (StopRecording didn't). Best Regards, Romano

www.safestmail.com.br/english
Mirje
To hang up Voicemail you can use two options:

ALTER VOICEMAIL <id> STOPRECORDING (https://developer.skype.com/Docs/ApiDoc/ALTER_VOICEMAIL)

or

ALTER CALL <id> HANGUP (https://developer.skype.com/Docs/ApiDoc/ALTER_CALL)

Also this should be working:

SET CALL <id> STATUS FINISHED (https://developer.skype.com/Docs/ApiDoc/SET_CALL_FINISHED)

Most of the commands should work with Skype4Com also, but if you find some problems, please report it in Jira (https://developer.skype.com/jira/secure/CreateIssue!default.jspa)

Regards,
Mirje
Mirje
Also it's possible to end Voicemail by using StopRecording command in Skype4Com (refer to https://developer.skype.com/Docs/Skype4COMLib/IVoicemail)

For example this test was working just fine:

Set oSkype = WScript.CreateObject("Skype4COM.Skype", "Skype_")
Dim oVm
Set oVm = oSkype.SendVoicemail("username")
WScript.Sleep(10000)
oVm.StopRecording()

You most probably can not use this as long as the greeting message is being displayed, but this needs to be verified.

Regards,
Mirje
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.