Hi
First I've downloaded this example script: https://developer.skype.com/Docs/Skype4COMLib/Call_vbs
Now, I want to implement the new feature off "Voice Streams" to play a wav-soundfile when Skype is calling:
https://developer.skype.com/Docs/DevNotes?a...otes2.6beta.pdf (page 3)
https://developer.skype.com/Docs/ApiDoc/Voice_Streams
https://developer.skype.com/Docs/ApiDoc/CALL_object (--> Input)
To implement this feature, I've used https://developer.skype.com/Docs/Skype4COMLib/Command_vbs as example for the programming part.
But I can't get it working.
Here is a snippt of my code:
'// Place a call:
Set oCall = oSkype.PlaceCall(oUser.Handle)
'// Wait until the call is in progress and return the relevant error if any other status occurs:
Do While oCall.Status <> cCallStatus_Inprogress
If oCall.Status = cCallStatus_Failed Or _
oCall.Status = cCallStatus_Refused Or _
oCall.Status = cCallStatus_Cancelled Or _
oCall.Status = cCallStatus_Finished Or _
oCall.Status = cCallStatus_Busy Then
Err.Raise vbObjectError + 1, "", "Call status: " & oSkype.Convert.CallStatusToText(oCall.Status)
End If
WScript.Sleep(500)
Loop
WScript.Sleep(10000)
oSkype.SendCommand(oSkype.Command(2201, "GET CALL INPUT SOUNDCARD=""default"", PORT=""12345"", FILE=""C:\temp\test.wav""", "INPUT"))
WScript.Echo "Sendcommand sent"
WScript.Sleep(500)
He is executing the command, but no sound is playing. I also don't know that the command is 100% correct, but no errors are thrown...
Any advice is helpfull.
Thanks in advance
Kind regards
Mathias