Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OAI: Receiving digits dialed from any phone

Status
Not open for further replies.

rkorn7

Programmer
Jan 30, 2014
1
US
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:

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top