R
Ricardo Vazquez
Hi!
I have a new problem with this SCENARIO I already described in a previous
post:
- PBX (a private telephone exchange or switch)
- A Telephony Server Application running on computer "A" (it communicates
with the PBX via IP)
- An ASP.NET application (running on computer "A") for web clients of that
telephony server (running on computer "B", "C", etc.)
PROBLEM: When the web client closes the page (or the browser) ASP.NET should
invoke a method of the Telephony Server (DisconnectClient). This is very
important. If not, ghost clients would be living forever in the memory of
the Telephony server.
It doesn't mind if the method is invoked several minutes after closing the
browser (15 or 20 minutes as a maximum); but it has to be invoked.
I ALREADY HAVE TRIED...
to invoke it at "Session_End" in Global.asax. But at this point of the code
the Telephony-server proxy object is already "null".
Then I thought: If the object is null, code has to step through the
destructor and/or the Dispose method of it: but it doesn't.
Then I thought: I could try the "OnDispose" event of an important graphic
asp.net component of the page: Never called, either.
The "OnUnload" event: This one is called too frequently, maybe because of an
ajax timer I use in the page...
Client-side "onunload": but it has no access to server-side objects...
And, well, I have run out of ideas!
Could you please tell me where should I place this code?
Thank you very much!
Ricardo.
I have a new problem with this SCENARIO I already described in a previous
post:
- PBX (a private telephone exchange or switch)
- A Telephony Server Application running on computer "A" (it communicates
with the PBX via IP)
- An ASP.NET application (running on computer "A") for web clients of that
telephony server (running on computer "B", "C", etc.)
PROBLEM: When the web client closes the page (or the browser) ASP.NET should
invoke a method of the Telephony Server (DisconnectClient). This is very
important. If not, ghost clients would be living forever in the memory of
the Telephony server.
It doesn't mind if the method is invoked several minutes after closing the
browser (15 or 20 minutes as a maximum); but it has to be invoked.
I ALREADY HAVE TRIED...
to invoke it at "Session_End" in Global.asax. But at this point of the code
the Telephony-server proxy object is already "null".
Then I thought: If the object is null, code has to step through the
destructor and/or the Dispose method of it: but it doesn't.
Then I thought: I could try the "OnDispose" event of an important graphic
asp.net component of the page: Never called, either.
The "OnUnload" event: This one is called too frequently, maybe because of an
ajax timer I use in the page...
Client-side "onunload": but it has no access to server-side objects...
And, well, I have run out of ideas!
Could you please tell me where should I place this code?
Thank you very much!
Ricardo.