Skype Attach protocol 8
This is an update to my previous post about getting Skype to attach from the C# API, the problem is, that you should attach asynchronously, and handle the attachement event
((_ISkypeEvents_Event)skype).
AttachmentStatus += OurAttachmentStatus;
skype.Attach(8, false);
void OurAttachmentStatus(TAttachmentStatus status)
{
Attached = false;try
{
Debug.WriteLine(DateTime.Now.ToLocalTime() + ” Attachment Status: ” + skype.Convert.AttachmentStatusToText(status));
}
catch (Exception ex)
{
Debug.WriteLine(DateTime.Now.ToLocalTime() + ” Error: ” + ex.Message + ” Unable to write Skype attach status change”);
}if (status == TAttachmentStatus.apiAttachAvailable)
{
try
{
skype.Attach(8, true);
}
catch (Exception ex)
{
Debug.WriteLine(DateTime.Now.ToLocalTime() + ” Error: ” + ex.Message + ” Unable to send Skype API Attach Request Message”);
}
}
else
if (status == TAttachmentStatus.apiAttachSuccess)
{
Attached = true;
WasAttached = true;
}
}
FullName – fiach
Country – France
City – strasbourg
CountryCode – fr
select city,count(*) as count from skypeUsers group by city order by count(*) + rand()*500 desc
limit 50
Here is an open source example of a “IVR for Skype” More Here
LikeLike
Hi thanks for the above description.
Actually i did this but still i am not able to attach.
Problem:
1) I have created on console Application – Working fine
2) Created on windows service – Not able to attach (wait timeout exception)
Is it like some port communication issue which occurs between the skype client and the windows service.
Not able to figure out the exact behavior.
regards
LikeLike
I have answered your question here: http://devforum.skype.com/t5/Desktop-API/Skype4COM-What-is-it-and-what-can-it-do/m-p/9648#M173
LikeLike
I know it’s been several years since this reply, but can you tell me how to solve this? Because the link doesn’t work
LikeLike
Because the service runs under a different user than the desktop
LikeLike