Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

I see by another thread that my T720 does not support IRINGERMGR. It has been over a week and a half and I have yet to hear back from BREW support on the question of where and how do I find out which phones support the IRINGERMGR API. Does anyone have answer for this?

Nearly 100% of BREW 1.1 + phones support IRINGERMGR. I say "nearly" though I have never found one that doesn't. If it has ringtone support it will use IRINGER. This is certainly the case with the T720 as well - not sure what thread said otherwise but it was wrong.
Curt

Nearly 100% of BREW 1.1 + phones support IRINGERMGR. I say "nearly" though I have never found one that doesn't. If it has ringtone support it will use IRINGER. This is certainly the case with the T720 as well - not sure what thread said otherwise but it was wrong.
Curt

IRINGERMGR is supported on the t720, but the function IRINGERMGR_SetRinger() is not supported. maybe you mis-read the thread... check the Device Data Sheets for the devices you are interested in to see what is supported... though quite a few dont seem to support the SetRinger() function
-Tyndal

IRINGERMGR is supported on the t720, but the function IRINGERMGR_SetRinger() is not supported. maybe you mis-read the thread... check the Device Data Sheets for the devices you are interested in to see what is supported... though quite a few dont seem to support the SetRinger() function
-Tyndal

Ya, setringer is a whole 'nother animal. The API docs do a pretty good job, essentially if there is no specific mention of not supporting setringer, and it has ringtone categories, it should work fine. You just need to notice things like what value you pass for category may be different on different phones (like the VX6000)... Definately one of those things where it is best to try it on the handset!
Curt

Ya, setringer is a whole 'nother animal. The API docs do a pretty good job, essentially if there is no specific mention of not supporting setringer, and it has ringtone categories, it should work fine. You just need to notice things like what value you pass for category may be different on different phones (like the VX6000)... Definately one of those things where it is best to try it on the handset!
Curt

Yes SetRinger is supported but you need the ID and when I use the following code I get no categories on the T720. Is there anything wrong with this code?
I did not remeber if I tried to call IRINGERMGR_EnumNextRinger by itself.
I can no longer talk to my T720 on the serial cable, so I cannot check this. The replacement may be in on Thursday. I can try it again then.
{
IRingerMgr * pIRingerMgr;
AEERingerCat ci;
AEERingerInfo pi;
ISHELL_CreateInstance(pApp->a.m_pIShell, AEECLSID_RINGERMGR, (void *)&pIRingerMgr);
IRINGERMGR_EnumCategoryInit(pIRingerMgr);
IRINGERMGR_EnumRingerInit(pIRingerMgr);
DBGPRINTF("Number of Ring formats: %d", IRINGERMGR_GetNumberFormats(pIRingerMgr));
while (IRINGERMGR_EnumNextCategory(pIRingerMgr, &ci))
{
DBGPRINTF("CATEGORY ID: %u", ci.id);
// DBGPRINTF("RINGER ID: %u", ci.idRinger);
DBGPRINTF("NAME: %S", ci.szName);
while (IRINGERMGR_EnumNextRinger(pIRingerMgr, &pi))
{
DBGPRINTF("RINGER ID: %u", pi.id);
DBGPRINTF("FORMAT: %u", pi.format);
DBGPRINTF("NAME: %S", pi.szName);
if (pi.szFile) // can be NULL if read only
DBGPRINTF("FILE: %s", pi.szFile);
};
};
IRINGERMGR_Release(pIRingerMgr);
}

Yes SetRinger is supported but you need the ID and when I use the following code I get no categories on the T720. Is there anything wrong with this code?
I did not remeber if I tried to call IRINGERMGR_EnumNextRinger by itself.
I can no longer talk to my T720 on the serial cable, so I cannot check this. The replacement may be in on Thursday. I can try it again then.
{
IRingerMgr * pIRingerMgr;
AEERingerCat ci;
AEERingerInfo pi;
ISHELL_CreateInstance(pApp->a.m_pIShell, AEECLSID_RINGERMGR, (void *)&pIRingerMgr);
IRINGERMGR_EnumCategoryInit(pIRingerMgr);
IRINGERMGR_EnumRingerInit(pIRingerMgr);
DBGPRINTF("Number of Ring formats: %d", IRINGERMGR_GetNumberFormats(pIRingerMgr));
while (IRINGERMGR_EnumNextCategory(pIRingerMgr, &ci))
{
DBGPRINTF("CATEGORY ID: %u", ci.id);
// DBGPRINTF("RINGER ID: %u", ci.idRinger);
DBGPRINTF("NAME: %S", ci.szName);
while (IRINGERMGR_EnumNextRinger(pIRingerMgr, &pi))
{
DBGPRINTF("RINGER ID: %u", pi.id);
DBGPRINTF("FORMAT: %u", pi.format);
DBGPRINTF("NAME: %S", pi.szName);
if (pi.szFile) // can be NULL if read only
DBGPRINTF("FILE: %s", pi.szFile);
};
};
IRINGERMGR_Release(pIRingerMgr);
}

under "BREW APIs Not Supported" in the Device Data Sheet for the t720 it says:
ICipher
IHash
IRSA
IAddrBook
IPosDet
ISHELL_GetPosition
ITAPI_MakeVoiceCall
Ringer categories
IRINGERMGR_SetRinger()
the "Ringer categories" might be your problem. since no categories are supported, SetRinger is not supported.
-Tyndal

under "BREW APIs Not Supported" in the Device Data Sheet for the t720 it says:
ICipher
IHash
IRSA
IAddrBook
IPosDet
ISHELL_GetPosition
ITAPI_MakeVoiceCall
Ringer categories
IRINGERMGR_SetRinger()
the "Ringer categories" might be your problem. since no categories are supported, SetRinger is not supported.
-Tyndal

I misread the docs. You are right.
So the T720 does not support ringers (unless you know the name of the ringer).

I misread the docs. You are right.
So the T720 does not support ringers (unless you know the name of the ringer).