Skip to main content
Participant
February 23, 2011
Answered

Call Accept dialog pop up in Chat application

  • February 23, 2011
  • 1 reply
  • 774 views

Hello,

I have made an Audio Video chat application in AS3 and using FMS as my server.I want to make the functionality of a call accept dialog box which pops up when one client wants to call another .Giving 2nd client the control to accept call or not like is done in Skype and all.Can anyone explain how will thisbe done using AS3.

Thanx in advance..

    This topic has been closed for replies.
    Correct answer Graeme Bull

    That would make for a quite a long tutorial, but to give you an idea of some sorts:

    1. Keep track of each user that connects so that you can contact them directly

    2. Notify the server side from the sending client side that they want to contact somebody, passing in the receiver's unique ID (that you create)

    3. Server side figures out which user that is and send them a notification

    4. Keep the state of the request on the server and client sides so that you can control how many requests they get etc

    5. Respond by the receiver to the server passing back their user ID. The server side code should then go over a hash table of sorts to find out who was trying to contact them (you also have the option of course of just passing around users' IDs so you just pass back the sender's ID too)

    6. Get the server to find the sender and respond appropriately.

    Check out some tutorials here that cover a lot of server side coding best practices:

    http://www.fmsguru.com/tutorials.cfm?tab=fms

    That kind of functionality is covered in our chat application product too, but it's not free unfortunately.

    Anyways, hope that helps with your question. It's a big deal building that kind of functionality in but can definitely be done with a bit of coding.

    1 reply

    Graeme Bull
    Community Expert
    Graeme BullCommunity ExpertCorrect answer
    Community Expert
    February 23, 2011

    That would make for a quite a long tutorial, but to give you an idea of some sorts:

    1. Keep track of each user that connects so that you can contact them directly

    2. Notify the server side from the sending client side that they want to contact somebody, passing in the receiver's unique ID (that you create)

    3. Server side figures out which user that is and send them a notification

    4. Keep the state of the request on the server and client sides so that you can control how many requests they get etc

    5. Respond by the receiver to the server passing back their user ID. The server side code should then go over a hash table of sorts to find out who was trying to contact them (you also have the option of course of just passing around users' IDs so you just pass back the sender's ID too)

    6. Get the server to find the sender and respond appropriately.

    Check out some tutorials here that cover a lot of server side coding best practices:

    http://www.fmsguru.com/tutorials.cfm?tab=fms

    That kind of functionality is covered in our chat application product too, but it's not free unfortunately.

    Anyways, hope that helps with your question. It's a big deal building that kind of functionality in but can definitely be done with a bit of coding.

    ankit74Author
    Participant
    February 24, 2011

    Thanx Sir for sharing your priceless knowledge,yesterday only  I was googling I found some material on your site and read some of your contributions.I had thought of the same logic but because of less experience in FMS server side scripting I am facing difficulty.I will go through your tutorials and if I face any problems,please help me out in guiding me.

    Thanks & Regards

    Ankit Verma