473,573 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
"disconnect ed" 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 1952
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******** *******@TK2MSFT NGP02.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
"disconnect ed" 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
"disconnect ed" 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
37200
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 examples of how and why it is used? The Access on-line help is not as helpful as I need for my mental density! Sorry to be so dense. Please...
0
1397
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 browser object model and have successfully used IPersistStorage to get/set the object in the browser control from VB.NET. As the object is "in place...
3
10011
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 Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load...
2
2105
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 article in MSDN, but I don't know how to implement....
2
1090
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" OnClick="MyControl1_Clicked" /> .....
3
2563
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 are there other events? Thanx in advance, -- Anil Gupte www.keeninc.net www.icinema.com
9
5557
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';" runat="server" > its working fine in IE while some other events too are not firing in firefox like ondeactivate onfocusout etc.
6
4796
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 ugly. Here's what I have so far 1. Implement via the 'event' keyword (with associated delegate, etc) 2. Expose a private delegate via a public...
5
2388
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 many heavy duty pro programmers in this newsgroup have actually used a delegate in their code, say in the last year of coding. By "use" I mean...
0
7767
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7684
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8006
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8058
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6400
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3729
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2191
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1035
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.