[pjsip] Code in Symbian to send DTMF
linuz Torvalds
w32mydoom at hotmail.com
Fri Nov 6 20:56:42 CST 2009
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 at gmail.com
To: pjsip at lists.pjsip.org
Subject: [pjsip] 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>
More information about the pjsip
mailing list