ITAPI3 Problems (transfer and dtmf)

Feb 11, 2015 at 1:20 PM
Hello.
First thank julmar to provide this tapi3 for managed code.
I am making a call control application with julmar itapi3 and a simple usb dial up modem (lsi usb2 soft modem). My application will receive calls and a voice menu will be played for user.According to user pressed digit, application will receive dtmf signals and will do asked operation.
For example if user press key 1, application will transfer(forward, redirect) call to a specified phone number. and if key 2 pressed it will be connected to operator on same line.
problems:
1-
I can receive and dial successfully. but problem is when i try to forward, or blindtransfer the call it raise error as below:
JulMar.Tapi3.TapiException was caught
  HResult=-2147221501
  Message=This method is not supported.
 
  Source=ITapi3
  ErrorCode=-2147221501
  StackTrace:
       at JulMar.Tapi3.TapiException.ThrowExceptionForHR(Int32 hr) in c:\users\mark\documents\work\julmar entertainment\projects\itapi3\itapi3\tapiexception.h:line 97
       at JulMar.Tapi3.TCall.BlindTransfer(String destAddress) in c:\users\mark\documents\work\julmar entertainment\projects\itapi3\itapi3\tcall.h:line 301
       at ITAPI3SAMPLE.Form1.btnForward_Click(Object sender, EventArgs e) in d:\DSource\DSource\Programming\Projects\TelephonySample\ITAPI3SAMPLE\ITAPI3SAMPLE\Form1.cs:line 270
  InnerException: 
why it is trying to access a file in path c:\users\mark\documents\work\julmar entertainment\projects\itapi3\itapi3\tapiexception.h
i dnt have any user named mark in my computer.

2-
It doesn't raise any event related to dtmf .none of events like gatherdigit, digitevent or toneevent.

3-
when i try to get calleridnumber with this line of code
lblCallerID.Text = e.Call.get_CallInfo(JulMar.Tapi3.CALLINFO_STRING.CIS_CALLERIDNUMBER);
it returns empty string.

i think it is because of my Modem, modem driver or tsp on my machine. The goal of my application is avoiding to use expensive PBX or VOIP machines, its going to use a simple cheap external usb modem.
what problem exactly.
Feb 24, 2015 at 10:43 PM
Hello.
I found a solution for my problems and all the problems solved. It was modem driver problem, my windows 7 install the driver automatically and so it might be not a driver which support, dtmf,media,callerID. Well lets to see what i did:
1- in driver folder (in operating system drive usually) exists a .INF file. ( this file has different name for any modem driver, in my case it is lsimu64v.inf )
2- Copy xxx.INF file somewhere else ( just to have main file, if you failed the file)
3- Now open the xxx.INF file in the main driver folder and add below codes to last of the file.

[CID]
HKR,EnableCallerID,1,,"at+vcid=1<cr>"
HKR,,CallerIDPrivate,,P
HKR,,CallerIDOutSide,,O
HKR,Responses,"<cr><lf>DATE = ",1,93,00,00,00,00,00,00,00,00,00
HKR,Responses,"TIME = ",1,94,00,00,00,00,00,00,00,00,00
HKR,Responses,"NMBR = ",1,95,00,00,00,00,00,00,00,00,00
HKR,Responses,"<cr><lf>NMBR = ",1,95,00,00,00,00,00,00,00,00,00
HKR,Responses,"NAME = ",1,96,00,00,00,00,00,00,00,00,00
HKR,Responses,"MESG = ",1,97,00,00,00,00,00,00,00,00,00


HKR,Country\0000,CALLERID,1,\
01

HKR,Country\0000,CALLERID2,1,\
01,\
4C,04,00,00,\
04,00,00,00,\
52,08,BE,0A,\
C8,00,00,00,\
05,00,00,00,\
00,00,00,00,\
64,00,00,00,\
01,00,00,00,\
0F,00,00,00,\
00,00,00,00,\
00,00,00,00,\
00,00,00,00,\
00,00,00,00
4- save the file and install the driver .(Maybe you need to restart system.)

And everything should work nicely ( for me had good result).

But i have another problem to play a sound file in terminal. everything goes good, event raise, and no error, but in tapi_TE_CALLMEDIA event, this code always return false:
if (e.Event ==JulMar.Tapi3.CALL_MEDIA_EVENT.CME_STREAM_ACTIVE)
It means playing file failed. So what is problem?


Thank you
A.H
Marked as answer by aliheidari on 2/24/2015 at 2:44 PM