[pjsip] Code in Symbian to send DTMF
varun pratapsingh
varunps2003 at gmail.com
Thu Nov 5 06:53:07 CST 2009
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>
More information about the pjsip
mailing list