Auto login with external script (php, javascript, sql) and dial with external script (javascript) - webphone
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
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
Google Code Exporter commented
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
Google Code Exporter commented
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:
Google Code Exporter commented
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
Google Code Exporter commented
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