From: Steve K. <st...@st...> - 2003-08-01 14:00:27
|
On Fri, 2003-08-01 at 06:00, Babar Shafiq wrote: > Hi, > > Yes I used iaxc_register. > > Steve, are you doing other codecs support in iaxclient lib ?? > like (u-law,ADPCM,LPC ,LPC-10,OpenLPC 1.8,CELP 4.5,CELP 3.0,CELP 2.3). > > If nobody is doing then please tell me some basics, those two function needs to changes ? > 1) send_encoded_audio > 2) decode_audio > and how to set frame rate and remote codec selection ? I think that Cypromis (Michael) was going to have his guys work on this. There needs to be some infrastructure developed to handle this, though. First, a "modular" system for codecs should be developed, similar to the system I developed for audio drivers. Then, the audio_encode.c file will call the appropriate functions from a "codec" structure, depending on the codec used, etc. Also, we'll have to properly negotiate the codecs with the remote end, as well as begin to properly handle different frame sizes [i.e. right now we're hard-coded to 20ms frame sizes, but Asterisk uses 30ms frames for iLBC, also I think that we'll only need to handle 8khz mono, as that's all that asterisk actually supports]. The new audio driver stuff already has some stuff in place to handle variable frame sizes, so that should make it a bit easier. >From the API perspective, I guess we want to have a way for library users to (a) get a list of supported codecs (b) send a list of codecs, in order of preference, that they'd like to use for calls. > Added in ActiveX > 1) SetSpeakerVolume (left speaker number, right speaker number) (b/w 1-100) Although the code you did here is system-dependent, I think I'd like to implement something like this in the library itself. Would it be OK for me to look at and/or use your code for the Windows case? I'll have to do something similar for Windows and Linux as well. Also, I want to be able to set the "recording level" or "microphone level" mixer settings. > 2) SendDTMF (character for number) > 3) SelectLine (number for line) > 4) Incoming Call (problem fixed) I haven't actually downloaded your code yet, but it does sound like very good stuff! -SteveK > > Thanks and Regards, > Babar Shafiq Nazmi. > > --- Steve Kann <st...@st...> wrote: > > On Tue, 2003-07-29 at 12:19, Babar Shafiq wrote: > > > > > 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. > > > > > > If you use iaxc_register, the registration will be kept valid during the > > lifetime of the session (i.e. as long as you're still running > > iaxclient). > > > > > > > > > > > > Babar Shafiq Nazmi. > > > > > > > > > --- Dan Fernandez <dan...@ho...> wrote: > > > > Babar, > > > > > > > > This is great work also. Its working really nicely. > > > > I have a couple of questions: > > > > > > > > 1)Would it be possible to take out (or make it configurable) the confirmation youve 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 > > > > > > > > <DEFANGED_OBJECT name=iax id=DTestocx1 DEFANGED_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> > > > > <DEFANGED_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 > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > > Data Reports, E-commerce, Portals, and Forums are available now. > > > Download today and enter to win an XBOX or Visual Studio .NET. > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > > _______________________________________________ > > > Iaxclient-devel mailing list > > > Iax...@li... > > > https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > > > -- > > Steve Kann - Chief Engineer - 520 8th Ave #2300 NY 10018 - (212) 533-1775 > > HorizonLive.com - collaborate . interact . learn > > "The box said 'Requires Windows 95, NT, or better,' so I installed Linux." > > > > > ===== > God is a great Programmer > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com -- Steve Kann - Chief Engineer - 520 8th Ave #2300 NY 10018 - (212) 533-1775 HorizonLive.com - collaborate . interact . learn "The box said 'Requires Windows 95, NT, or better,' so I installed Linux." |