Code in Symbian to send DTMF

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

 



Hey, your implementation is wrong, so take care with types!

this is the implementation on my code to do that:
void dialing_dtmf(char* temp ){const pj_str_t digit = pj_str (( char* ) temp);pjsua_call_dial_dtmf(0, &digit);}

cheers

Date: Thu, 5 Nov 2009 18:23:07 +0530
From: varunps2003@xxxxxxxxx
To: pjsip at lists.pjsip.org
Subject: Code in Symbian to send DTMF

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
 		 	   		  
_________________________________________________________________
Deja que Sietes te ense?e todo los secretos de Windows
http://www.sietesunpueblodeexpertos.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091107/234d68cc/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