I'm working on an application that performs an action based on the caller ID of the caller that's calling a specific station. So I start the app out by starting to monitor the specific station.
smfr.Start(5000, to_monitor, MON_ALL);
As soon as a call comes in, my app gets a message from the SV8500. Now I can use data about what happened:
message.GetTerminal(&terminal);
Then I can look at what is it being connected to:
smfn.Get2ndParty(&callingparty);
But the callingparty only shows what physical resources our monitored station is connected to. For example, if it's an internal call, this will be the station that called it. But if it's an outside line, all I seem to be able to get is what route and what trunk this stations is connected to. However, what I need to get in case of a call coming in from external is the caller ID of the caller.
I did not find a way to get this information in the OAI library manual. Is it possible?
smfr.Start(5000, to_monitor, MON_ALL);
As soon as a call comes in, my app gets a message from the SV8500. Now I can use data about what happened:
message.GetTerminal(&terminal);
Then I can look at what is it being connected to:
smfn.Get2ndParty(&callingparty);
But the callingparty only shows what physical resources our monitored station is connected to. For example, if it's an internal call, this will be the station that called it. But if it's an outside line, all I seem to be able to get is what route and what trunk this stations is connected to. However, what I need to get in case of a call coming in from external is the caller ID of the caller.
I did not find a way to get this information in the OAI library manual. Is it possible?