Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic use COM server [Delphi] (Read 10058 times)
mdm
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 02. Dec 2010
use COM server [Delphi]
02. Dec 2010 at 01:05
Print Post  
Hello,
i downloaded file PhonerCOM_Delphi.zip from site.
Where i can find Class TCPhoner and unit Phoner_TLB ?
i want :
1. TCPhoner.MakeCall from my program.
2. Receive 'CallerId' by TCPhoner.GetCallInfo on event.

But, i really confused... how do this. 
Can you help me?
  
Back to top
 
IP Logged
 
mdm
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 02. Dec 2010
Re: use COM server [Delphi]
Reply #1 - 02. Dec 2010 at 01:57
Print Post  
i used PhonerLite...
When i run full Phoner - everything OK.
Thank you for great softphone with COM server!!!
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11421
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: use COM server [Delphi]
Reply #2 - 02. Dec 2010 at 10:17
Print Post  
PhonerLite has a different COM interface that Phoner!
You have to import the type library in both cases.
But it seems to work now, if I understand your second posting.
  
Back to top
WWW  
IP Logged
 
mdm
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 02. Dec 2010
Re: use COM server [Delphi]
Reply #3 - 02. Dec 2010 at 14:08
Print Post  
i see now that PhonerLite has a different COM interface that Phoner. Phoner interface more friendly than Phonerlite.
i can't even make call in PhonerLite :

CPhonerLite1.SetDestinationNumber(PChar(edit1.Text));   CPhonerLite1.HookOn(CPhonerLite1.ComponentIndex);

I guess that CPhonerLite1.ComponentIndex as Id - is not rigth...
How can i get Id?
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11421
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: use COM server [Delphi]
Reply #4 - 02. Dec 2010 at 14:54
Print Post  
HookOn() and HookOff() expect the call-id. If you don't have any existing call, just use 0 for that id.
If you have more than one call, you have to identify the call by that id.
You will get the id in OnCallState().
  
Back to top
WWW  
IP Logged
 
mdm
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 02. Dec 2010
Re: use COM server [Delphi]
Reply #5 - 02. Dec 2010 at 19:07
Print Post  
Can i help you make russian translation for Phoner?

Is there method receive original CallerID (without any modification by Phoner)?
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11421
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: use COM server [Delphi]
Reply #6 - 03. Dec 2010 at 09:45
Print Post  
Quote:
Can i help you make russian translation for Phoner?

PhonerLite supports Russian! Phoner is more specialized for supporting ISDN. If you want to use SIP, just use PhonerLite.

Quote:
Is there method receive original CallerID (without any modification by Phoner)?
If you are using the COM server, you get the CallerID by the event function.
  
Back to top
WWW  
IP Logged
 
mdm
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 02. Dec 2010
Re: use COM server [Delphi]
Reply #7 - 19. Dec 2010 at 11:12
Print Post  
Hello,
I want use PhonerLite but i can't make call from my application -
SetDestinationNumber() just set numbers in PhonerLite (PhonerLite even not focused) and wait when i press "send call" button - it is not nice for me.
I try SetDestinationNumber(numbers + #10+#13)  - not work Smiley
Is exists way to make call without confirmation like in Phoner TCPhoner.MakeCall ?

  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11421
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: use COM server [Delphi]
Reply #8 - 19. Dec 2010 at 12:00
Print Post  
You have to call OffHook() afterwards.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint