473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Web client receiving "events" from server side.


THIS IS MY SCENARIO:
- PBX (a private telephone exchange or switch)
- A Telephony server 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.)

THIS IS ALREADY WORKING:
On the client web browser we enter the originating and the destination
extension numbers, we click on button "makecall" and the destination
extension rings, called by the originating one.

THIS IS NOT WORKING YET: THIS IS WHAT I ASK:
If I hook off my telephone, the PBX says to the Telephony server "extension
52 is off hook"; then the Telephony server says to ASP.NET "extension 52 is
off hook". BUT How can I get the ASPNET on the server side notify its web
client this event?
I mean: I need the web page modified, maybe a label, to change from
"disconnected" to "off hook", but it is not a request from the client: there
is no postback. The change is on the server's initivative.
Polling (refresh="2", for instance) is not a good answer, because you need a
more accurate information.

IN OTHER WORDS:
I need not only methods to be invoked from the web client (v.gr. makeCall);
but also events to be received in the web client (v.gr. inboundCall).

Is there any way to do this, or work around it?
Could you please give me some urls to investigate, or some simple code to
get this?

Thank you very much!

Ricardo Vázquez.
Spain.
Nov 2 '06 #1
3 1946
there are only three options.

1) the bowser can poll (refresh, ajax).
2) the browser hosts a active/x contrl or java applet that maintains a
connection.
3) server push, which is really client pull. the server does not close the
connection and keeps sending data. this is tricky in .net, you need to turn
off buffering and disable timeouts, reconfigure thread pools. also does not
scale well.

if you use 2 or three youu need to reconfigure iis and asp.net or you will
be limited t about 30 users. the max you can get is about 200-250 per
server.

-- bruce (sqlwork.com)
"Ricardo Vazquez" <rv******@dummy.comwrote in message
news:%2***************@TK2MSFTNGP02.phx.gbl...
>
THIS IS MY SCENARIO:
- PBX (a private telephone exchange or switch)
- A Telephony server 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.)

THIS IS ALREADY WORKING:
On the client web browser we enter the originating and the destination
extension numbers, we click on button "makecall" and the destination
extension rings, called by the originating one.

THIS IS NOT WORKING YET: THIS IS WHAT I ASK:
If I hook off my telephone, the PBX says to the Telephony server
"extension 52 is off hook"; then the Telephony server says to ASP.NET
"extension 52 is off hook". BUT How can I get the ASPNET on the server
side notify its web client this event?
I mean: I need the web page modified, maybe a label, to change from
"disconnected" to "off hook", but it is not a request from the client:
there is no postback. The change is on the server's initivative.
Polling (refresh="2", for instance) is not a good answer, because you need
a more accurate information.

IN OTHER WORDS:
I need not only methods to be invoked from the web client (v.gr.
makeCall); but also events to be received in the web client (v.gr.
inboundCall).

Is there any way to do this, or work around it?
Could you please give me some urls to investigate, or some simple code to
get this?

Thank you very much!

Ricardo Vázquez.
Spain.

Nov 2 '06 #2
Ricardo,
I do a lot of this kind of stuff, and Bruce is correct. I've found the
easiest way is to use an Anthem.net timer control to "poll" a method in the
page on the server that gets updates and refreshes the UI of the page without
any reloads or postbacks.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ricardo Vazquez" wrote:
>
THIS IS MY SCENARIO:
- PBX (a private telephone exchange or switch)
- A Telephony server 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.)

THIS IS ALREADY WORKING:
On the client web browser we enter the originating and the destination
extension numbers, we click on button "makecall" and the destination
extension rings, called by the originating one.

THIS IS NOT WORKING YET: THIS IS WHAT I ASK:
If I hook off my telephone, the PBX says to the Telephony server "extension
52 is off hook"; then the Telephony server says to ASP.NET "extension 52 is
off hook". BUT How can I get the ASPNET on the server side notify its web
client this event?
I mean: I need the web page modified, maybe a label, to change from
"disconnected" to "off hook", but it is not a request from the client: there
is no postback. The change is on the server's initivative.
Polling (refresh="2", for instance) is not a good answer, because you need a
more accurate information.

IN OTHER WORDS:
I need not only methods to be invoked from the web client (v.gr. makeCall);
but also events to be received in the web client (v.gr. inboundCall).

Is there any way to do this, or work around it?
Could you please give me some urls to investigate, or some simple code to
get this?

Thank you very much!

Ricardo Vázquez.
Spain.
Nov 3 '06 #3
Peter! Bruce!

Thank you so much.
Your answers were so complete (a detailed and complete list of possibilities
for me to consider) and also so useful (sharing your experience about these
possibilities to suggest me one of them)!
Now I feel sure to be waking in the right direction.
Thank you very much.

I will try polling to a method via an ajax timer control as you said; the
page reloading was what worried me about polling; but the ajax timer
polling a method will provide a smooth browsing experience: so that's what
I needed!

Greetings from Madrid,

Ricardo.
Nov 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lauren Wilson | last post by:
Hello group, Somehow, I have not yet fully understood the meaning and purpose of "DoEvents". Can someone post or point me to a clear, concise explanation of it -- one that includes situational...
0
by: Robin Tucker | last post by:
Hi people, Is it possible for me to handle events raised by an object which is embeded in a web browser control, from my VB.NET code? I am able to gain access to the object itself through the...
3
by: Arne | last post by:
How do I create client events for a radio button? Do I have to switch to HTML controls? The code below doesn't work. <body MS_POSITIONING="FlowLayout"> <script runat="server"> Private Sub...
2
by: Jonathan | last post by:
Hi I need implement loosely coupled events to raise events in a Classibrary project from one Windows Application project, and hanlde these from other Windows Application project. I found this...
2
by: Lukas Kurka | last post by:
Hi, I would like to create user control which will provide OnClick and other events. Something like index.aspx ..... <uc1:MyControl id="MyControl1" runat="server"...
3
by: Anil Gupte | last post by:
I want to embed using an embed tag or object tag (like YouTube or others do) to embed a video file in a web page. I want to know if there is an event related to the video being done playing. Also...
9
Basharat
by: Basharat | last post by:
Hi all I have problem on firing "onmouseleave" event of <div> html element. Here is the code im using: <div ID="BSHelpPanel" class="PageMenuMain" onclick="javascript:this.style.display='none';"...
6
by: Smithers | last post by:
Just looking to compile a list of "all the ways to implement events". I'm NOT looking to get into the merits or mechanics of each in this thread... just want to identify them all - good, bad, and...
5
by: raylopez99 | last post by:
I understand delegates (static and non-static) and I agree they are very useful, and that the "Forms" used in the Windows .NET API could not work without them. That said, I'm curious as to how...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.