Question on Click2Call setup

abibob

New Member
Hi. I placed your software on my VPS. Now I have difficulties configuring it. How can I setup Click2Call?
 
Last edited:

Max

Administrator
Staff member
1. Add your SIP account to /usr/local/FlashphonerWebCallServer/conf/account.xml – this is the account calls will go through.
2. Add the phone number to /usr/local/FlashphonerWebCallServer/conf/callee.xml – this is the phone number the call will go to.
3. Run the server using “service webcallserver start” and see the logs: “tail -f /usr/local/FlashphonerWebCallServer/logs/server_logs/flashphoner.log”
4. Copy the web client folder to your web server and open this page in your browser client/Click2callJS.html.
After you allow the browser use the microphone, the call goes to the specified number.
 

abibob

New Member
Thanks for your reply, but I need something more complex than a simple test call. Here is what I’m looking for:
I have two SIP accounts and we want to redirect calls from the website using both of them. I mean when someone clicks button 1, the call goes to say number 45 678 901 via the first SIP, and if he click button 2, the call goes to another number 123 456 789 through the second SIP. Actually, I wasn’t sure if flashphoner can do this, so when the boss asked by me about this I didn’t know what to say.
Your rates are ok for us, but if you can help me to configure flashphoner to work this way, this would save me a lot of hours of trial and error.
P.S. I didn’t find an answer in the manual
Thanks you in advance.
 

Max

Administrator
Staff member
That’s right. Now the app works with one account and one destination.
1. The WCS server takes a token specified in the config (flashphoner.xml) and makes a request to the auto_login_url specified in flashphoner.properties.
You should return an XML with the SIP data you want in respond to this request.

For example:
token=12345
auto_login_url=http://mywebsite.com/myphp.php
The WCS makes a query to the server: http://mywebsite.com/myphp.php?token=12345
So your server should answer with a corresponding XML.
2. The same is true for the destination of the call. The WCS server takes a token you specified in flashphoner.xml and makes a query to the auto_login_url, that is listed in flashphoner.properties
You should return an XML containing the destination number of a callee.

Example:
token=12345
auto_login_url=http://mywebsite.com/myphp_callee.php
The WCS makes a query: http://mywebsite.com/myphp_callee.php?token=12345
Now your server should return a given XML.

By default the following configs are used:
conf/account.xml
conf/callee.xml
If you need multiple buttons and/or SIP accounts, you should make them dynamic – like account.php and callee.php and put them into flashphoner.properties.
 

abibob

New Member
Thanks, sounds good.
And what if I can’t hear anything (from my cell), but they do here me at the PC? I checked several computers, and when I speak the voice is ok, but when a client speak from his computer, there’ no voice in my cell.
Also when the ios version is planned? Some estimation? Thanks
 

Max

Administrator
Staff member
And what if I can’t hear anything (from my cell), but they do here me at the PC?
What browser do you use for testing?

when the ios version is planned? Some estimation?
The default iOS Safari doesn’t support the technologies required to transmit the sound: Flash, WebRTC.
This means, a user needs to install a special plugin to the browser, or a third-party app to make a call. Actually we didn’t review such plugins yet, but this is planned. Full-featured iOS functioning will be available when iOS team embeds WebRTC to mobile Safari or at least allows embedding to Chrome on iOS. We can’t say for sure when this is going to happen. O r is it.
 

abibob

New Member
What browser do you use for testing?
Google Chrome

Tested on laptop.
I did see the confirmation dialog, accepted it, but still there were no sound. Tested on 3 different laptops.
 
Top