Code in Symbian to send DTMF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

I am implementing the DTMFs to be sent in my symbian application after the
call is connected by pressing the Mobile Keys.
I am using the symbian_ua.h and in it I have defined a new function

 int dial_dtmf (const char* digit)
in symbian_ua.cpp I have defined it as

int dial_dtmf(char* digits )
    {
  const   pj_str_t* dst;
 pj_str_t* gh = pj_strcpy2(dst,digits);


    pjsua_call_dial_dtmf(0,dst);

    }

Now I am using it as


TKeyResponse CSymbianDialerAppUi::HandleKeyEventL(
        const TKeyEvent& aKeyEvent,
        TEventCode aType )
    {
    // The inherited HandleKeyEventL is private and cannot be called
    // [[[ begin generated region: do not modify [Generated Contents]
    // ]]] end generated region [Generated Contents]
    switch(aKeyEvent.iCode)
            {

            case '0':
                {
                dial_dtmf("0");
                return EKeyWasConsumed;
                }
                break;
            case '1':
                {
                dial_dtmf("1");
                return EKeyWasConsumed;
                }
                break;
         .......
     .......



return EKeywasnotconsumed;

}


Is it a righ tway ....


Please any body help me inthis ...

Regards:
Ravi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091105/87de2f73/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux