I have a custom browser-based C#.NET application used by our internal representative (This is not an INTERNET application; It's a custom, internal application used to manage our customers). I would like to two scripts to allow our Trixbox 2.6.1 to "Click to Dial" and "Click to Record".
** "Click to Dial"
The Windows XP PC and extension share the same name (Example: The PC name is 1001; The phone on the desk is extension 1001).
With the click of the phone number link on the page, I would like for the Trixbox to dial the number and allowing us to set the outbound Caller ID on each call. (We are using a VOIP provider that allows us to outpulse a number).
Because this will be used by many representatives, the script should have the abilty to scale to handle many calls. I tried using the c2c script, but I was unable to do it properly.
I have a test PC set up so you can demonstrate when it's complete.
There are two examples of how people have done the click to dial, but reading the PC name is something neither one does. Reading the PC name is important as I don't want the user setting this feature.
-- This solution looks like it can do some of what I've requested:
[url removed, login to view]
-- This solution works, but it appears to be limited where if more than one person uses the script at the same time, it stops working:
[url removed, login to view];task=view&id=26&Itemid=2
** "Click to Record"
I'd like for our representatives to have the ability to click a button on the page to start and stop recording a call. The file name and date will be the the name on the recorded file. The file should save on the Trixbox server where we will FTP and move to an alternate location on a nightly basis.
Here is the vision:
- The Windows XP PC and extension share the same name (Example: The PC name is 1001; The phone on the desk is extension 1001).
- A customer calls in and wants to make a payment. The representative could push a button in our custom app to start recording. The Trixbox will know the name of the extension (1001) because the "start recording" button on the screen will pass the value. It should also pass the account name so we can match it up in the future, as indicated previously.
- When the representative is finished taking the payment, the representative can press a "stop recording" button. The recording will be saved in the typical directory on the Trixbox.
NOTE: As indicated before, there may be several people using the Trixbox; The solution should allow for multiple simultanious recordings at the same time.
-- Under the Asterisk manager API there is a command monitor. This would be the the initiator for the recording in your web application. You will need to know the active channel prior to initiation but that should not be a big hurdle. Take a look:
[url removed, login to view]+manager+API
for API commands. There are also plenty of examples of other Asterisk Manager API applications to get you started.
** Additional Info
BOTH scripts should be executable from the C#.NET application and work with IE7 AND Firefox 3. No custom/3rd party software installations on the PC; No softphones; No greasmonkey.
The solution should be reliable and stable; I don't want to reboot my Trixbox on a daily basis. As indicated, I have a PC setup with Trixbox so you can use to perform your testing.