標題: Web based click to call [打印本頁] 作者: ckleea 時間: 2011-6-16 07:56 標題: Web based click to call
After some investigation, I found a script to do click to call. It is not difficult but works.
However, I notice that there are few errors and problem
1. The callfile generated has some extra carriage return. In CLI it shows as warnings
2. I cannot dynamically assign channel to use . Therefore, either your handset is connected your asterisk as an extension or connected based on your location. The latter is really important because you may not have wifi for your VoIP during connection but you are using some local phone at somewhere in the world
3. Need definitely upgrade the existing IVR for more robust setup
4. You need a server to run the php script and local read write to pass the callfile to asterisk server. In IP01, it means you need to add lighttpd during compilation.作者: ckleea 時間: 2011-6-16 08:35
Some supplementary information for point 2. What I mean is
the web based program should allow me to select which type of channel to be use to call back i.e. when you are roaming to somewhere, you are either connected to your server as soft phone ( in that case, you do not really need web call back), or you just a lcoal phone number of that country with internet access to the web. In the latter case, web call back will be of great importance to save you cost.
The web program should ask for the cheapest plan to call from your asterisk server to your local phone number and allow you in the system to use your asterisk dialplan to dial out.
In my mind is that HK uses HKBN2b, US uses Google voice, other countries e.g. UK use your local endpoint if you have.... etc
For point 3, the IVR should be changed to some more intuitive voice to guide you through.作者: alang 時間: 2011-6-16 14:00
I have tried your scripts but not able to make it work. So I look around and try to develop my own version. The description above is based on the problems I encountered.作者: Qnewbie 時間: 2011-6-16 17:28
I think the second point is more complicated. It should be done by script.作者: ckleea 時間: 2011-6-16 17:55
SO you are looking for a solution like this
ckleea 發表於 2011-6-16 20:58
For this case is so easy:
Connect two phones
How it works
Enter your phone number
Enter your destination number
Click Call.
using Asterisk .NET with Asterisk Manager Interface
1. connect to Asterisk and login
2. make Action
3. create Web Service (Let any Language call it and make the Action)