Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Web client receiving "events" from server side.

Reply
Thread Tools

Web client receiving "events" from server side.

 
 
Ricardo Vazquez
Guest
Posts: n/a
 
      11-02-2006

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 Vzquez.
Spain.


 
Reply With Quote
 
 
 
 
bruce barker \(sqlwork.com\)
Guest
Posts: n/a
 
      11-02-2006
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" <(E-Mail Removed)> wrote in message
news:%239$nv4q$(E-Mail Removed)...
>
> 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 Vzquez.
> Spain.
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      11-03-2006
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.
>
>
>

 
Reply With Quote
 
Ricardo Vazquez
Guest
Posts: n/a
 
      11-03-2006
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.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C Server receiving EPIPE from java client, but not from a Python one Saptarshi Java 4 02-12-2009 08:23 PM
Client Program not Receiving Message from Server deadpickle Perl Misc 1 01-19-2008 12:42 AM
Client-side TCP socket receiving "Address already in use" upon connect Tor Erik Python 12 09-05-2006 01:34 AM
ASP.NET Web app not receiving expected cookie from Web service. Wh =?Utf-8?B?YWNob28=?= ASP .Net 2 02-02-2006 10:56 PM
Server to server = Server client to server? - Java 2 07-29-2005 10:46 PM



Advertisments