Hello,
I'm writing an application via OAI that will monitor all devices connected to a PBX and I need to receive the digits dialed from a station. Right now I'm waiting for events via:
How can I get the dialed digit(s) (after a dial event is received) using OMessage, OTerminal, and OStatusNotify?
There are a lot of functions in the API that seem close but have some sort of caveat.
Any help would be much appreciated.
Thanks
I'm writing an application via OAI that will monitor all devices connected to a PBX and I need to receive the digits dialed from a station. Right now I'm waiting for events via:
Code:
OStatusMonitor smfr(OAIASSOC);
smfr.Start(5000, *terminal, MON_DIAL); //begin monitoring for dialing events
OMessage message;
OAIAssoc->GetMessage(&message, INFINITE);
if (message.GetFacilityID() == F_STATUS_MONITOR_NOTIFY)
{
[indent]if (smfn.GetEventType(GENERAL_NOTIFY_EVENTS)== DIAL_GENERAL)[/indent]
[indent][indent]DoSomething()[/indent][/indent]
}
How can I get the dialed digit(s) (after a dial event is received) using OMessage, OTerminal, and OStatusNotify?
There are a lot of functions in the API that seem close but have some sort of caveat.
Any help would be much appreciated.
Thanks