sksushilkumar / red5phone

Automatically exported from code.google.com/p/red5phone
0 stars 0 forks source link

Auto-dial (initially show just the one button to user) in red5phone #166

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Good Afternoon,

Could you please add auto-dialing functionality tor red5phone?

Basically I want on my website a "Click to Call" button. After clicking, it's 
fine to have the usual information showing.

If you won't implement this feature, can you tell me how I would go about 
implementing it?

Thanks,

Alec Taylor

Original issue reported on code.google.com by Alec.Tay...@gmail.com on 28 Aug 2011 at 9:25

GoogleCodeExporter commented 9 years ago
Hi Alec,

I believe you are talking about implementing a click to call button that makes 
outgoing calls to your softphone from your website. If that is what you want, 
then you would not require some of the functionality implemented in red5phone 
like Call Accepting, Transfer, History etc. All you need is a click to call 
button and status display.

This should not be a problem if you are familiar with flex development and as3. 
You need to modify the flash application under the /sip/flex directory. 
Basically you would just need to show one mxml, with the Click to Call button 
and status display. 

In the click event of the button you need to do the following:
1. Connect to red5 server
2. If successful (Red5Message handler function will receive connection success 
message), you need to call login to sip server.
3. If login successful (handler again will receive sip register success), call 
the preset number. You can load this number from the XML if you wish (see 
onComplete even for the XML file loader, under the init() function I think).

This way with one click of a button the application will connect, login and 
call without the user having to worry about any other details. Make sure you 
disconnect from red5 after the call is closed or fails.

Our team did do such an implementation for a client recently. There are certain 
user management issues to be addressed when using such a setup. 

Regards,
Hari

Original comment by harikuma...@gmail.com on 31 Aug 2011 at 2:37