p***@gmail.com
2014-02-20 08:59:50 UTC
Hello,
I got an ATAPI-problem with redirected calls.
Imagine employee Dick gets an extern call from the outside und redirects that call to employee George.
In the CallInfoChanged-event of the TapiLine i can detect the phone number of the extern caller by the ConnectedId.
There are two scenarios now:
Case 1:
A new call comes to Dick's phone and Dick redirects it to George without picking up his telephone receiver.
When George picks up his receiver, the CallInfoChanged-event is raised with CallState=Connected and in the ConnectedId we can see the phone number of the extern caller.
That's what i want!
But there is still...
Case 2:
A new call comes to Dick's phone, Dick picks up his receiver and redirects the call to George.
George picks up his receiver.
Then the CallInfoChanged-event is raised for the first time.
In the CalledId as long in the ConnectId we see the phone number of Dick and no hint, that there is an extern caller on the line.
When Dick hang up his receiver and George gets the extern caller, the CallInfoChanged-event is raised once again.
This time we see the phone number of Dick in the CallerId and the phone number of the extern caller in the ConnectedId.
My problem is, that i have programmed an application which opens a form with information about caller when i get connected call over ATAPI.
As You can see in case 2, the CallInfoChanged-event is raised twice and it makes no sense to open the form with the different ConnectedIds twice.
Do i have any possibility to detect in the first raising of the event with CallState=Connected, that i'm getting a call which is redirected?
Thanks in advance and have a nice day!
Patrick
I got an ATAPI-problem with redirected calls.
Imagine employee Dick gets an extern call from the outside und redirects that call to employee George.
In the CallInfoChanged-event of the TapiLine i can detect the phone number of the extern caller by the ConnectedId.
There are two scenarios now:
Case 1:
A new call comes to Dick's phone and Dick redirects it to George without picking up his telephone receiver.
When George picks up his receiver, the CallInfoChanged-event is raised with CallState=Connected and in the ConnectedId we can see the phone number of the extern caller.
That's what i want!
But there is still...
Case 2:
A new call comes to Dick's phone, Dick picks up his receiver and redirects the call to George.
George picks up his receiver.
Then the CallInfoChanged-event is raised for the first time.
In the CalledId as long in the ConnectId we see the phone number of Dick and no hint, that there is an extern caller on the line.
When Dick hang up his receiver and George gets the extern caller, the CallInfoChanged-event is raised once again.
This time we see the phone number of Dick in the CallerId and the phone number of the extern caller in the ConnectedId.
My problem is, that i have programmed an application which opens a form with information about caller when i get connected call over ATAPI.
As You can see in case 2, the CallInfoChanged-event is raised twice and it makes no sense to open the form with the different ConnectedIds twice.
Do i have any possibility to detect in the first raising of the event with CallState=Connected, that i'm getting a call which is redirected?
Thanks in advance and have a nice day!
Patrick