From: Babar S. <bab...@ya...> - 2003-07-29 16:19:09
|
Thanks Dan, The confirmation is just for checking values from user cause i used in ocx test:test@10.0.1.2/9999 as default I m just doing debug version thats y i used. DTMF is added with switch lines function I will update it tommorow. Register command just send the (userid,password,hostname) to the * box for Registration don't know we need re-register or not, Steve can tell us about correctly. Babar Shafiq Nazmi. --- Dan Fernandez <dan...@ho...> wrote: > Babar, > > This is great work also. It´s working really nicely. > I have a couple of questions: > > 1)Would it be possible to take out (or make it configurable) the confirmation you´ve added on > the OCX right before dialing? > > 2) What about DTMF? Are you planning to add it anytime soon? > > 3) Does the register command do any subsequent registers? or shall we put a timer to > re-register? > > Rgds > Dan > > ----- Original Message ----- > From: Babar Shafiq > To: iax...@li... > Sent: Friday, July 25, 2003 1:44 PM > Subject: [Iaxclient-devel] IAX Client COM ActiveX version > > > Hello All, > > Active X version with some more work > > Now supported :- > > API :- > a.. initIAX (init IAXclient) > b.. Register (Register to the * box) > c.. Shutdown (IAXclient Shutdown and clean up) > d.. Dial (Start processing and Dial the number) > e.. HangUp (HangUP Current call and dumpcall) > f.. ToglePTT (Push to Talk, 1 and 0) > Status_Events :- > > a.. IaxClient_Messages (TextMessage String) same as status_callback > b.. IaxClient_State (StateEvent String) same as state_callback > Properties :- > > a.. Phonenumber (String number to dial) > b.. Userid (String userid) > c.. Password (String Password) > d.. Host Name (String host name or server IP) > e.. 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 > ===== God is a great Programmer __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |