have tested the coding.it works. thank you for your help

Regards, 
Zamielia

> ----- Original Message Follows -----
> From: "Joseph Serafin Aguilar" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: Re: [sipxtapi-dev] sipXtapi's sipxCallStartTone
> Date: Fri, 8 Dec 2006 16:23:13 +0800
> 
> > Hi,
> > 
> > I have a wav file for each dtmf tone and I play the
> > respective wav file everytime I press a button.  To play
> > the wave file, I place the function PlaySound()
> > inside the event handler for the button press. PlaySound
> > is part of Windows API and is used to play wav files.
> > 
> > example:
> > 
> >         void DialPadButton::OnMouseDown(wxMouseEvent&
> > event)
> >         {
> >                 if(mToneId == 1)
> >                 {
> >                         PlaySound("dtmf1.wav",
> > SND_FILENAME | SND_ASYNC);
> >                 }
> >                 else if(mToneId == 2)
> >                 {
> >                         PlaySound("dtmf2.wav",
> > SND_FILENAME | SND_ASYNC);
> >                 }
> >                 //and so on...
> >         }
> > 
> > You also have to include the following to use
> > PlaySound() 
> >         #include <windows.h>
> >         #include <Mmsystem.h>
> > 
> >         #pragma comment(lib,"Winmm.lib")
> > 
> > You can generate dtmf tones into wav files here:
> > http://www.dialabc.com/sound/generate/
> > 
> > Regards,
> > Joseph
> > 
> > On 12/8/06, zamielia <[EMAIL PROTECTED]> wrote:
> > >
> > > Is it possible for you to explain further on how u
> > > used wav file to produce the dtmf tones.  A bit blur
> > here. >
> > > Regards,
> > > Zamielia
> > > ________________________________________________
> > >
> > > Hi,
> > >
> > > I also faced the same problem.  I didn't really solve
> > > it but I did have a quick workaround.
> > >
> > > For every key pressed, I used wav files to play the
> > > respective dtmf tones.  The wav files
> > > are played only when the phone is not connected.  When
> > > the phone is connected, that's
> > > when I use sipXcallStartTone.
> > >
> > > Not the best solution but it works. :)
> > >
> > > Regards,
> > > Joseph
> > >
> > >
> > >
> > > On 12/7/06, zamielia < [EMAIL PROTECTED]>
> > > wrote: i'm facing the same problem as albert...
> > >
> > > I'm able to hear the button tone only if when I press
> > > the button when there is a phone connection between
> > > caller and recipient. What if the g_hCall value is 0?.
> > > How can I deploy the code line below when g_hCall is 0
> > > , and make the button being pressed produces its tone.
> > >
> > >
> > > sipxCallStartTone(g_hCall,ID_DTMF_3, true, false) ;
> > >
> > > Please advise.thanks
> > >
> > > regards,
> > > zamielia
> > >
> >
> >
> __________________________________________________________
> > > _ > albert  2006-06-08 11:27:26
> > > to all,
> > >
> > > is it possible for the sipXcallStartTone to play a
> > > tone while theres no
> > > call in progress? Because What I wanna do is if the
> > > user presses the
> > > number it plays a tone like the standard hardphone.
> > > if yes, how will i implement it?
> > >
> > > thanks
> > > albert
> > > _______________________________________________
> > > sipx-dev mailing list
> > > sipx-devlist.sipfoundry.org
> > > List Archive:
> > > http://list.sipfoundry.org/archive/sipx-dev [1]
> > > _______________________________________________
> > > sipxtapi-dev mailing list
> > > [email protected]
> > > List Archive:
> > > http://list.sipfoundry.org/archive/sipxtapi-dev/
> > >
> > >
> > > _______________________________________________
> > > sipxtapi-dev mailing list
> > > [email protected]
> > > List Archive:
> > http://list.sipfoundry.org/archive/sipxtapi-dev/ >
> > 
> _______________________________________________
> sipxtapi-dev mailing list
> [email protected]
> List Archive:
> http://list.sipfoundry.org/archive/sipxtapi-dev/
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.409 / Virus Database: 268.15.15/579 - Release
> Date: 12/7/2006
> 
> 
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to