jingyuzhu / red5phone

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

Auto login with external script (php, javascript, sql) and dial with external script (javascript) - webphone #183

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Is it possible to modify redfire web phone to autologin with external script 
(some PHP or Javascript script to post the username, pass, SIP server... to the 
flash webphone)?

And if it is possible to dial with external script - a webpage with flex 
softphone and a company directory - click to dial on a number, and webphone 
would start calling?

Thanks for the info!

Original issue reported on code.google.com by ales.si...@gmail.com on 20 Feb 2012 at 5:18

GoogleCodeExporter commented 8 years ago
possible, i have done it.
search for function of this : red5phone_getConfig

return {
        username: username,
        password: password,
        mailbox:  mailbox,
        phoneno : phoneno,
        phone : phoneno,
        realm : 'asterisk',
        server : server,
        red5url : 'rtmp:/sip',
        autologin: true
    };

Original comment by assegaf....@gmail.com on 22 Feb 2012 at 9:52

GoogleCodeExporter commented 8 years ago
Hmm, it didn't work. This is my index.html - I've put the login button at the 
bottom of the file, and when I try it -> nothing happens, only refresh of the 
re5phone.swf window.

How can I debug this? I tried with firebug - no errors or warnings...

Does anybody have a working example?

Original comment by black...@gmail.com on 22 Feb 2012 at 5:54

Attachments:

GoogleCodeExporter commented 8 years ago
Edit: All other settings I get from config.xml -> sip server, sip proxy server, 
red5 rtmp server... I've just passed the username, password...

Original comment by black...@gmail.com on 22 Feb 2012 at 6:02

GoogleCodeExporter commented 8 years ago
Solved!!! 
Solution: To avoid this problem you should run flex app from web hosting 
directly, not from localhost (in debug mode)!!! because of that external 
interface are blocked due cross-domain security policy. GL guys

Original comment by Anton.le...@gmail.com on 1 Nov 2012 at 9:04