Ludovic Drolez
2003-Dec-15 13:02 UTC
[Asterisk-Users] Outgoing calls for a fancy address book app
Hi ! I'd like to connect phpgroupware to asterisk: when a user click on a phone number, his phone rings and he gets connected to the number he just clicked. I've tried by putting various files in /var/spool/asterisk/outgoing, without results (we are using SIP phones + CAPI channels). Is there a way to do that ? (If it's impossible (something impossible in *, LOL ?!?) I will create an extension which the phpgroupware user should call, then it would DBGet the number my app has DBPut when the user clicked on the number, and call it.) Cheers, -- Ludovic Drolez. http://www.palmopensource.com - The PalmOS Open Source Portal http://www.drolez.com - Personal site - Linux and PalmOS stuff
Hello, just use the manager conduit: Telnet to asterisk server ip_address to port 5038 (as long as you have a login set up in manager.conf) and send the following(what is between the dash lines): ----------------------------------- Action: Login Username: user Secret: pass Action: Originate Channel: SIP/123testphone Context: default Exten: 7275551212 Priority: 1 Callerid: PHP_groupware_call Action: Logoff ----------------------------------- Works every time and it get's logged in the system too. MATT--- -----Original Message----- From: Ludovic Drolez [mailto:ldrolez@debian.org] Sent: Monday, December 15, 2003 3:02 PM To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] Outgoing calls for a fancy address book app Hi ! I'd like to connect phpgroupware to asterisk: when a user click on a phone number, his phone rings and he gets connected to the number he just clicked. I've tried by putting various files in /var/spool/asterisk/outgoing, without results (we are using SIP phones + CAPI channels). Is there a way to do that ? (If it's impossible (something impossible in *, LOL ?!?) I will create an extension which the phpgroupware user should call, then it would DBGet the number my app has DBPut when the user clicked on the number, and call it.) Cheers, -- Ludovic Drolez. http://www.palmopensource.com - The PalmOS Open Source Portal http://www.drolez.com - Personal site - Linux and PalmOS stuff _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
Steven Critchfield
2003-Dec-15 14:52 UTC
[Asterisk-Users] Outgoing calls for a fancy address book app
On Mon, 2003-12-15 at 14:02, Ludovic Drolez wrote:> Hi ! > > I'd like to connect phpgroupware to asterisk: when a user click on a phone > number, his phone rings and he gets connected to the number he just clicked. > > I've tried by putting various files in /var/spool/asterisk/outgoing, without > results (we are using SIP phones + CAPI channels). > > Is there a way to do that ? > (If it's impossible (something impossible in *, LOL ?!?) I will > create an extension which the phpgroupware user should call, then it would DBGet > the number my app has DBPut when the user clicked on the number, and call it.)It is really simple. Read the sample.call file to figure out the format to drop in /var/spool/asterisk/outgoing. From there there is no need for dbput or dbget unless you want to do something weird. -- Steven Critchfield <critch@basesys.com>
Philipp von Klitzing
2003-Dec-15 16:45 UTC
[Asterisk-Users] Outgoing calls for a fancy address book app
Hi!> I'd like to connect phpgroupware to asterisk: when a user click on a phone > number, his phone rings and he gets connected to the number he just clicked. > > I've tried by putting various files in /var/spool/asterisk/outgoing, without > results (we are using SIP phones + CAPI channels).This might be of help for you - it describes how to use .call files: http://www.voip-info.org/wiki-Asterisk+auto-dial+out Cheers, Philipp