From: Babar S. <bab...@ya...> - 2003-07-25 16:44:14
|
Hello All, Active X version with some more work Now supported :- API :- initIAX (init IAXclient) Register (Register to the * box) Shutdown (IAXclient Shutdown and clean up) Dial (Start processing and Dial the number) HangUp (HangUP Current call and dumpcall) ToglePTT (Push to Talk, 1 and 0) Status_Events :- IaxClient_Messages (TextMessage String) same as status_callback IaxClient_State (StateEvent String) same as state_callback Properties :- Phonenumber (String number to dial) Userid (String userid) Password (String Password) Host Name (String host name or server IP) SilenceThreshold (Number SilenceThreshold by default -99) *Need some work on and support of multi lines and still have some problem in Incoming call may be the messages are not sync properly, but i will fix it soon. http://www.geocities.com/babarnazmi/IaxClientOcx.zip Example how to do in VB Private Sub Command1_Click() IaxClientOcx1.silencethreshold = -99 IaxClientOcx1.UserID = txt_phoneno IaxClientOcx1.Password = txt_userid IaxClientOcx1.PhoneNumber = txt_password IaxClientOcx1.HostName = txt_hostname IaxClientOcx1.Dial End Sub Private Sub Command3_Click() IaxClientOcx1.HangUp End Sub Private Sub Command4_Click() IaxClientOcx1.Password = txt_userid IaxClientOcx1.PhoneNumber = txt_password IaxClientOcx1.HostName = txt_hostname IaxClientOcx1.Register End Sub Private Sub Form_Load() a = IaxClientOcx1.InitIAX End Sub Private Sub Form_Unload(Cancel As Integer) a = IaxClientOcx1.Shutdown End Sub Private Sub IaxClientOcx1_Messages(ByVal Message As String) lbl_messages.Caption = Message End Sub Private Sub IaxClientOcx1_State(ByVal StateEvent As String) lbl_state.Caption = StateEvent End Sub Private Sub Check1_Click() If Check1.Value = vbChecked Then IaxClientOcx1.TogglePTT 1 Else IaxClientOcx1.TogglePTT 0 End If End Sub http://www.geocities.com/babarnazmi/vbClient.zip Example how to do from a web page <OBJECT name=iax id=DTestocx1 style="LEFT: 0px; TOP: 0px" classid="clsid:B6ADD008-9C12-4FFB-8944-E187541DDCF0" VIEWASTEXT> <PARAM NAME="_Version" VALUE="65536"> <PARAM NAME="_ExtentX" VALUE="2646"> <PARAM NAME="_ExtentY" VALUE="1323"> <PARAM NAME="_StockProps" VALUE="0"></OBJECT> <script language=vbscript> DTestocx1.HostName="192.168.4.29" DTestocx1.UserID="babarshafiq" DTestocx1.Password="nazmi" DTestocx1.PhoneNumber="7787323" DTestocx1.Dial </script> I also did a ActiveX control for SoundCard manipulation. (but i think here it is out of topic ). Babar Shafiq Nazmi God is a great Programmer --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |