Con éxito

Notas

Error

Session expiration Your session is going to expireClick here to extend

Presupuesto

Proyecto pequeño <800

Publicado el

8/02/12 14:46

Cliente

ste***

Este proyecto ha expirado

Publica un proyecto similar y recibe ofertas sin compromiso alguno.

¡Publica un proyecto similar ahora!

Descripción

 

Lo que necesitamos es un flah call button , como aplicacion de facebook en donde cada usuario puede realizar una llamada desde esta pagina a otro numero IP del user. Este segundo numero puede tener el user en un softphone de nosotros o en un telefono IP con una linea de nosotros para poder realizar llamadas gratuitas.
 
Esta segunda parte del servicio ( con el numero IP ) controlamos, alli no hay que hacer ningun trabajo extra.La programcion sera solamente de la primera parte.
 
Fijarte en el sistema " doddlephone " ( http://www.doddlephone.com/" target="_blank">www.doddlephone.com ), y alli en la pestaña :tutorials , widget code generator. Esto es exactamente que neceitamos finalmente.
 
Logicamente  nuestro call button necesita nuestro logo , y la conexion a nuestro servidor ( para permitir las llamadas ) y tambien un " code generator ".
 
Los del doddelphone ya nos han enviado los paso de re-configuracion , que hay que realizar para este cambio :
 
Aqui son :
 
Evaluation version: Download http://www.doddlephone.com/trial/evaluation.zip" target="_blank">http://www.doddlephone.com/trial/evaluation.zip  WebPhone Deployment Instructions: 1)  Extract ZIP File  You need to host these files as follows:  http://DOMAIN/webphone/web2phone_windows.jar  http://DOMAIN/webphone/web2phone_linux.jar  http://DOMAIN/webphone/web2phone_macosx.jar Where DOMAIN is you web domain defined in webphone_domain (SEE APPLET DEFINITION IN THE HTML FILES)  <param name="webphone_subdir" value="/webphone" />  <param name="webphone_domain" value="http://www.yourdomain.com/" target="_blank">http://www.yourdomain.com" />  webphone_subdir="/webphone"  webphone_domain="http://www.yourdomain.com/" target="_blank">http://www.yourdomain.com" webphone_subdir  value is as follows: You can set a subdir parameter within your domain where web2phone_windows.jar, web2phone_linux.jar and web2phone_macosx.jar will be hosted In the applet definition (template HTML file): <param name="webphone_subdir" value="/mydir/phone"> --> starts with "/" and webphone_subdir="/mydir/phone"  --> starts with "/" Your jars (win/linux/mac) should be at: http://WEB-SERVER-DOMAIN/mydir/phone api.html  and customdoddlephone-core.jar can be put anywhere on your web server. api.html is your entry point , you can modify it as you want. You just need to set codebase and archive applet parameters as follows: codebase="http://yourdomain.com/path_to_jar/" target="_blank">http://yourdomain.com/path_to_jar/" archive="http://yourdomain/path_to_jar/customdoddlephone-core.jar" The phone is fully skinnable and can be easily modified to match the look and feel of existing web applications. You can change User Interface as you wish (HTML / Javascript / Images / CSS ) - it is all about web design. If you face any problem in deploying the webphone, I can assist you (just provide FTP access) WebPhone Functions you need to call //Registering with a SIP server control.Login(username, auth_user, password, sipserver, proxy, realm, stun, false); control.Logout(); //Unregister control.Accept(); // Accept incoming Call //Making a Call control.Call(phone_Number); //argument is a String phone Number control.Hangup(); // Disconnect Call control.SendDTMF(dtmf_digit); // sends DTMF digit You will receive telephone message events from eventHandler (callback Function) and from contactIDHandler function (incoming caller ID) These functions will be called by the backend control and you can react updating your GUI //webphone messages var LS_REGISTERED = 21000; var LS_REGISTER_FAILED = 24000; var LS_REGISTER_FAILED_NOT_CONNECT = LS_REGISTER_FAILED + 1; var LS_REGISTER_FAILED_NOT_AUTHORIZED = LS_REGISTER_FAILED + 2; var LS_REGISTER_FAILED_TIMEOUT = LS_REGISTER_FAILED + 3; var CS_REMOTE_ALERTING = 3000; var CS_CONNECTED = 4000; var CS_DISCONNECTED = 8000; var CS_ALERTING = 10000; var CS_CAUSE_NORMAL = 1; var CS_CAUSE_BUSY = 8; var CS_CAUSE_CODEC_FAILURE = 21; var APP_LOADED = 1010;  // FIRST MESSAGE YOU WILL RECEIVE where var control = (document.webphone.length) ? document.webphone[1] : document.webphone; and "webphone" is defined here: <object name="webphone" ...  ... </embed> </comment> </object> Notice that Call and Hangup methods should be synchronized, driven by the eventhandler: After the first call (control.Call(phone_Number)) , you should wait for a disconnection message (CS_CAUSE_NORMAL,CS_CAUSE_BUSY,CS_DISCONNECTED) to allow a next Call() again (you can use a control variable, for instance: gadget_can_call=false  ) //CLICK2TALK
This is a ready to use click2call: Download and extract: http://www.doddlephone.com/jsapi/click2callSample.rar" target="_blank">http://www.doddlephone.com/jsapi/click2callSample.rar You just need to configure its applet object definition (doddle_domain, doddle_subdir) (line 362) and at line 122:  // EDIT HERE!!  //// user, auth-userName, passWord, sipServer,outBoundProxy, realm, Stun
 control.Login("your_user", "your_user", "your_poassword", "your_sip", null, null, "your_stun", false);
 
------------------------------------
 
En este trabajo se puede coordinar con el programador de nuestra empresa, que ya ha realizado los primeros paso, como la activacion de un servidor nuestro para este funcionamiento