[Asterisk-Dev] Re: click-to-call cleint

2006-01-17 Thread Paul Davidson
Matt-I have implemented such a thing- but you need to first define your scope a little better (or perhaps you have, and simply haven't articulated it fully here). From your posting, I could read your requirements one of two ways- either you're looking for a VoIP capable Web based softphone that you want to use, or you're simply looking to have a call initiate from a web page. Incidentally, both are off-topic for the asterisk-dev list, as neither have to do with the development of the Asterisk project itself- you may have more luck on the asterisk-users list.
If what you're looking for is a web based VoIP client, you may be out of luck. There's been rumors of such things, but most have been tied up with licensing issues, or simply don't work. Java is one way to go on this- you'd be looking at cracking the books on it, and I'd hope you'd contribute it back to the community- but I'd expect to hear back from you in a few years.
If you're looking for the ability to click on a link and have a call initiate- then this is well within the realm of possibility- I've implemented this before. The secret is defining your two devices- the clickee's device (softphone that's already running, or hardphone you can identify in advance), and the clicked party's device (most likely a number on the PSTN or at least external to you). The latter is handled through dialplan- no magic there. The former is really up to you- the softphone client has no restrictions, find one you like. You can potentially feed a dialstring to the softphone from the Web client- DIAX allows for that, amoung others- and that's by far the simplest manner. My app uses dialback- you click, a .call file is sent to asterisk, which then calls you, detects pickup, and then calls the remote party. Clients love it- no more calling cards, their home Asterisk server can call them at cheap LD rates (or better), and the call is set up to their cell phone- in the US, there's a lot of 'incoming minutes are free' plans, so the costs are very attractive. But.. no _javascript_ is required- I wrote my app in PHP, but you could write one in any client-side scripting language.
-Paul DavidsonPlanCommunications, LLCDate: Tue, 17 Jan 2006 02:22:15 -0800
From: Matt [EMAIL PROTECTED]Subject: [Asterisk-Dev] click-to-call cleintTo: Asterisk Developers Mailing List 
asterisk-dev@lists.digium.comMessage-ID: [EMAIL PROTECTED]Content-Type: text/plain; charset=iso-8859-1hi guys:i need to write a click-to-call client so that user visit website and click on a link, will initial a call to a * exten or a zap phone, but the user needn't to install any client software to be able to start the click to call.
This seams that it has to be written as a java applet? any pointers, suggestions?Thanks in Advance!Best RegardsMatt-- next part --An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060117/a663fdb8/attachment-0001.htm

___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


RE: [Asterisk-Dev] Re: click-to-call cleint

2006-01-17 Thread Phil Menico
Title: Message



Paul,

Can 
you give us the details on this:

"a .call file is sent to asterisk, 
which then calls you, detects pickup, and then calls the remote 
party."

I am 
interested in making this work.

Thank you.
Phil Menico 

XTEND Communications
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Paul 
DavidsonSent: Tuesday, January 17, 2006 7:45 AMTo: 
asterisk-dev@lists.digium.comSubject: [Asterisk-Dev] Re: 
click-to-call cleint

  
  Matt-I have implemented such a thing- but you need to first 
  define your scope a little better (or perhaps you have, and simply haven't 
  articulated it fully here). From your posting, I could read your 
  requirements one of two ways- either you're looking for a VoIP capable Web 
  based softphone that you want to use, or you're simply looking to have a call 
  initiate from a web page. Incidentally, both are off-topic for the 
  asterisk-dev list, as neither have to do with the development of the Asterisk 
  project itself- you may have more luck on the asterisk-users list. If 
  what you're looking for is a web based VoIP client, you may be out of 
  luck. There's been rumors of such things, but most have been tied up 
  with licensing issues, or simply don't work. Java is one way to go on 
  this- you'd be looking at cracking the books on it, and I'd hope you'd 
  contribute it back to the community- but I'd expect to hear back from you in a 
  few years. If you're looking for the ability to click on a link and 
  have a call initiate- then this is well within the realm of possibility- I've 
  implemented this before. The secret is defining your two devices- the 
  clickee's device (softphone that's already running, or hardphone you can 
  identify in advance), and the clicked party's device (most likely a number on 
  the PSTN or at least external to you). The latter is handled through 
  dialplan- no magic there. The former is really up to you- the softphone 
  client has no restrictions, find one you like. You can potentially feed 
  a dialstring to the softphone from the Web client- DIAX allows for that, 
  amoung others- and that's by far the simplest manner. My app uses 
  dialback- you click, a .call file is sent to asterisk, which then calls you, 
  detects pickup, and then calls the remote party. Clients love it- no 
  more calling cards, their home Asterisk server can call them at cheap LD rates 
  (or better), and the call is set up to their cell phone- in the US, there's a 
  lot of 'incoming minutes are free' plans, so the costs are very 
  attractive. But.. no _javascript_ is required- I wrote my app in PHP, but 
  you could write one in any client-side scripting language. -Paul 
  DavidsonPlanCommunications, LLC
  Date: 
Tue, 17 Jan 2006 02:22:15 -0800 From: "Matt" [EMAIL PROTECTED]Subject: 
[Asterisk-Dev] click-to-call cleintTo: "Asterisk Developers Mailing 
List"  
asterisk-dev@lists.digium.comMessage-ID: 
[EMAIL PROTECTED]Content-Type: 
text/plain; charset="iso-8859-1"hi guys:i need to write a 
click-to-call client so that user visit website and click on a link, will 
initial a call to a * exten or a zap phone, but the user needn't to install 
any client software to be able to start the click to call. This 
seams that it has to be written as a java applet? any pointers, 
suggestions?Thanks in Advance!Best 
RegardsMatt-- next part --An HTML 
attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20060117/a663fdb8/attachment-0001.htm
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


Re: [Asterisk-Dev] Re: click-to-call cleint

2006-01-17 Thread BJ Weschke
On 1/17/06, Phil Menico [EMAIL PROTECTED] wrote:
 Paul,

 Can you give us the details on this:

 a .call file is sent to asterisk, which then calls you, detects pickup, and
 then calls the remote party. 

 I am interested in making this work.


http://www.voip-info.org/wiki-Asterisk+auto-dial+out

--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


RE: [Asterisk-Dev] Re: click-to-call cleint

2006-01-17 Thread Colin Anderson



I have 
implemented this in Active Server Pages, since we are a Windows shop, but it's 
not hard to do this in your favorite scripting language. What you need 
is:

1. 
Polling script that examines a directory on your Asterisk server looking for new 
files in a specific directory (NOT /var/spool/asterisk/outgoing) when it finds 
one, it moves the .call file from that directory to 
/var/spool/asterisk/outgoing

2. A 
web page where you POST the number to call and other options, such as the callee 
(extension)and / or the context. On POST, the web page / script assembles 
the .call file and copies it over to the directory on the Asterisk server. How 
you implement the copying mechanismis up to you, I used Samba. 


You 
can see this in action at http://www.landmarkhomes.ca . We had a guy call us (in 
Calgary) from Toronto the other day and he was so impressed that we are at the 
top of his A-list for consideration (we sell new houses in Calgary and Edmonton; 
this guy was transferring to Calgary for a tech job, so nerdy things like this 
impress him)

If you 
wish, email me offline and I can send you the script, it's quite simple. PS your 
post belongs on the -users list. 


i need to write a click-to-call client so 
that user visit website and click on a link, willinitial a call to a * exten or a zap phone, 
but the user needn't to install any clientsoftware to be able to start the click to 
call. 
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev


RE: [Asterisk-Dev] Re: click-to-call cleint

2006-01-17 Thread Colin Anderson
Although I personally never have experienced the problem it's my
understanding that the manager interface does not do well under load -
perhaps this is fixed in 1.2. As well, the spec of the manager interface is
subject to change - there is a camp that would like to see an XML interface
(including me) and introducing an interface change would break a lot of
stuff. 

However, for me, using .call files is a simple solution to a simple problem
that works 100% of the time. It allows my script to do what it needs to do
in about twenty lines, as opposed to doing it with the manager interface
which would involve me opening a socket, writing watchdog code for the
socket, a parser for data from the Manager and so on. I'm a KISS proponent
(not Gene Simmons, Keep It Simple) and .call files are simple. It Just
Works. 

-Original Message-
From: Shidan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 17, 2006 9:03 AM
To: Asterisk Developers Mailing List
Subject: Re: [Asterisk-Dev] Re: click-to-call cleint


Just curious why you would implement it like this and not use the
manager interface. What are the benefits of using call files. Is it
just blocking issues people have problems witht or something else.
I've noticed alot of projects use call files and I  just don't
understand how reading and writing  files and your own polling is
better than just using the manger interface with simple edge triggers.

--
Shidan Gouran

On 1/17/06, Colin Anderson [EMAIL PROTECTED] wrote:

 I have implemented this in Active Server Pages, since we are a Windows
shop,
 but it's not hard to do this in your favorite scripting language. What you
 need is:

 1. Polling script that examines a directory on your Asterisk server
looking
 for new files in a specific directory (NOT /var/spool/asterisk/outgoing)
 when it finds one, it moves the .call file from that directory to
 /var/spool/asterisk/outgoing

 2. A web page where you POST the number to call and other options, such as
 the callee (extension) and / or the context. On POST, the web page /
script
 assembles the .call file and copies it over to the directory on the
Asterisk
 server. How you implement the copying mechanism is up to you, I used
Samba.

 You can see this in action at http://www.landmarkhomes.ca . We had a guy
 call us (in Calgary) from Toronto the other day and he was so impressed
that
 we are at the top of his A-list for consideration (we sell new houses in
 Calgary and Edmonton; this guy was transferring to Calgary for a tech job,
 so nerdy things like this impress him)

 If you wish, email me offline and I can send you the script, it's quite
 simple. PS your post belongs on the -users list.



   i need to write a click-to-call client so that user visit website and
 click on a link, will   initial a call to a * exten or a zap phone, but
the
 user needn't to install any client   software to be able to start the
click
 to call.

 ___
 --Bandwidth and Colocation provided by Easynews.com --

 Asterisk-Dev mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev



___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev