2010-03-24 4 views
1

J'ai eu un problème en faisant un projet basé sur une application TAPI en C#. J'utilise ITAPI3.dllcode pour identifier le numéro

Mon problème est .. je ne reçois pas d'informations d'appel entrant. Pour obtenir les informations sur les appels entrants, j'utilise la fonction get_callinfo, mais elle affiche un message vide.

Répondre

0

Je suis juste éprouver le même problème. Quand je débogue, un openfiledialog s'ouvre me demandant d'ouvrir un fichier. Je ne suis pas sûr de ce qu'il est en ce moment, je reviendrai quand je trouverai quelque chose. Donc, je saute la ligne de code, ce qui la rend vide.

J'ai trouvé ce qui était à l'origine du problème pour moi:

get_callInfo dispose de 3 constructeurs: un objet retour, un retour int et une chaîne de retour. Pour une raison quelconque, l'objet retournant échoue. J'ai donc essayé le constructeur de la chaîne. Cela m'a donné toutes les informations dont j'avais besoin. Je vais donner un aperçu de tous les attributs que vous pouvez choisir:

e.Call.get_CallInfo (CALLINFO_STRING.CIS_CALLEDIDNUMBER); e.Call.get_CallInfo (CALLINFO_STRING.CIS_CALLEDIDNAME); e.Call.get_CallInfo (CALLINFO_STRING.CIS_CALLEDPARTYFRIENDLYNAME); e.Call.get_CallInfo (CALLINFO_STRING.CIS_CALLERIDNAME); e.Call.get_CallInfo (CALLINFO_STRING.CIS_CALLERIDNUMBER); e.Call.get_CallInfo (CALLINFO_STRING.CIS_CALLINGPARTYID); e.Call.get_CallInfo (CALLINFO_STRING.CIS_COMMENT); e.Call.get_CallInfo (CALLINFO_STRING.CIS_CONNECTEDIDNAME); e.Call.get_CallInfo (CALLINFO_STRING.CIS_CONNECTEDIDNUMBER); e.Call.get_CallInfo (CALLINFO_STRING.CIS_DISPLAYABLEADDRESS); e.Call.get_CallInfo (CALLINFO_STRING.CIS_REDIRECTINGIDNAME); e.Call.get_CallInfo (CALLINFO_STRING.CIS_REDIRECTINGIDNUMBER); e.Call.get_CallInfo (CALLINFO_STRING.CIS_REDIRECTIONIDNAME); e.Call.get_CallInfo (CALLINFO_STRING.CIS_REDIRECTIONIDNUMBER);

espérons que cela aide encore

Questions connexes