Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Sep 29, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 20 Feb 2012 at 5:18

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 22 Feb 2012 at 9:52

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 22 Feb 2012 at 5:54

Attachments:

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 22 Feb 2012 at 6:02

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 1 Nov 2012 at 9:04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant