Click here to Skip to main content
16,012,025 members
Home / Discussions / C#
   

C#

 
AnswerRe: Updating Primary key Pin
jaypatel51225-Mar-09 6:34
jaypatel51225-Mar-09 6:34 
Questionauto-Completion with C# Pin
jbu2024-Mar-09 8:23
jbu2024-Mar-09 8:23 
AnswerRe: auto-Completion with C# Pin
Xmen Real 24-Mar-09 8:37
professional Xmen Real 24-Mar-09 8:37 
QuestionHelp on Dictionaries and the BackgroundWorker class. Pin
nike_arh24-Mar-09 8:09
nike_arh24-Mar-09 8:09 
AnswerRe: Help on Dictionaries and the BackgroundWorker class. Pin
MidwestLimey24-Mar-09 9:32
professionalMidwestLimey24-Mar-09 9:32 
AnswerRe: Help on Dictionaries and the BackgroundWorker class. Pin
Luc Pattyn24-Mar-09 15:36
sitebuilderLuc Pattyn24-Mar-09 15:36 
QuestionPrint Format in c#,winforms Pin
avvaru.murali24-Mar-09 7:28
avvaru.murali24-Mar-09 7:28 
QuestionTapi 3.0 events Pin
daniel kuperberg24-Mar-09 6:50
daniel kuperberg24-Mar-09 6:50 
Hi, I programing tapi 3.0 c#, already downloaded the source example from this site, but I'm not succeed to get events from the call. My purpose is to control devices using a phone and computer,
there for when number is pressed I need any event to occur.
The link of the source code:
http://www.codeproject.com/KB/IP/devangpro.aspx[^]


I think that the problem can be in these lines:

TAPI3Lib.ITTAPIEventNotification_EventEventHandler(cn.Event);
tobj.EventFilter=(int)(TAPI_EVENT.TE_CALLNOTIFICATION|
TAPI_EVENT.TE_DIGITEVENT|
TAPI_EVENT.TE_PHONEEVENT|
TAPI_EVENT.TE_CALLSTATE|
TAPI_EVENT.TE_GENERATEEVENT|
TAPI_EVENT.TE_GATHERDIGITS|
TAPI_EVENT.TE_REQUEST);


or in:



public void Event(TAPI3Lib.TAPI_EVENT te,object eobj)
{
switch(te)
{
case TAPI3Lib.TAPI_EVENT.TE_CALLNOTIFICATION:
addtolist("call notification event has occured");
break;
case TAPI3Lib.TAPI_EVENT.TE_DIGITEVENT:
TAPI3Lib.ITDigitDetectionEvent dd =
(TAPI3Lib.ITDigitDetectionEvent)eobj;
addtolist("Dialed digit"+dd.ToString());
break;
case TAPI3Lib.TAPI_EVENT.TE_GENERATEEVENT:
TAPI3Lib.ITDigitGenerationEvent dg =
(TAPI3Lib.ITDigitGenerationEvent)eobj;
MessageBox.Show("digit dialed!");
addtolist("Dialed digit"+dg.ToString());
break;
case TAPI3Lib.TAPI_EVENT.TE_PHONEEVENT:
addtolist("A phone event!");
break;
case TAPI3Lib.TAPI_EVENT.TE_GATHERDIGITS:
addtolist("Gather digit event!");
break;
case TAPI3Lib.TAPI_EVENT.TE_CALLSTATE:
TAPI3Lib.ITCallStateEvent a=
(TAPI3Lib.ITCallStateEvent)eobj;
TAPI3Lib.ITCallInfo b=a.Call;
switch(b.CallState)
{
case TAPI3Lib.CALL_STATE.CS_INPROGRESS:
addtolist("dialing");
break;
case TAPI3Lib.CALL_STATE.CS_CONNECTED:
addtolist("Connected");
break;
case TAPI3Lib.CALL_STATE.CS_DISCONNECTED:
addtolist("Disconnected");
break;
case TAPI3Lib.CALL_STATE.CS_OFFERING:
addtolist("A party wants to communicate with you!");
break;
case TAPI3Lib.CALL_STATE.CS_IDLE:
addtolist("Call is created!");
break;
}
break;
}
}
}




Thanks for any help or advise.
QuestionGet label text value from ID in C# Pin
asipo24-Mar-09 6:36
asipo24-Mar-09 6:36 
AnswerRe: Get label text value from ID in C# Pin
moon_stick24-Mar-09 7:25
moon_stick24-Mar-09 7:25 
AnswerRe: Get label text value from ID in C# Pin
Xmen Real 24-Mar-09 8:36
professional Xmen Real 24-Mar-09 8:36 
GeneralRe: Get label text value from ID in C# Pin
asipo24-Mar-09 9:22
asipo24-Mar-09 9:22 
QuestionHow to geht the Solution Items VSX Pin
Dromar24-Mar-09 6:32
Dromar24-Mar-09 6:32 
QuestionLooking for a TCP/IP commercial library Pin
dbambirck24-Mar-09 6:31
dbambirck24-Mar-09 6:31 
AnswerRe: Looking for a TCP/IP commercial library Pin
harold aptroot24-Mar-09 6:45
harold aptroot24-Mar-09 6:45 
GeneralRe: Looking for a TCP/IP commercial library Pin
dbambirck25-Mar-09 4:27
dbambirck25-Mar-09 4:27 
GeneralRe: Looking for a TCP/IP commercial library Pin
harold aptroot25-Mar-09 5:15
harold aptroot25-Mar-09 5:15 
GeneralRe: Looking for a TCP/IP commercial library Pin
dbambirck25-Mar-09 6:11
dbambirck25-Mar-09 6:11 
GeneralRe: Looking for a TCP/IP commercial library Pin
harold aptroot25-Mar-09 6:32
harold aptroot25-Mar-09 6:32 
QuestionRe: Looking for a TCP/IP commercial library Pin
CPallini24-Mar-09 7:58
mveCPallini24-Mar-09 7:58 
QuestionDynamic HTML to PDF Pin
ika224-Mar-09 6:19
ika224-Mar-09 6:19 
QuestionQuestion about HTML tag C# Pin
YiXiang_8924-Mar-09 5:26
YiXiang_8924-Mar-09 5:26 
AnswerRe: Question about HTML tag C# Pin
Deresen24-Mar-09 6:00
Deresen24-Mar-09 6:00 
AnswerRe: Question about HTML tag C# Pin
benjymous24-Mar-09 6:03
benjymous24-Mar-09 6:03 
AnswerRe: Question about HTML tag C# Pin
Mbah Dhaim24-Mar-09 6:27
Mbah Dhaim24-Mar-09 6:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.