[Asterisk-Users] New script: /usr/bin/asteriskdial + Kontact

Josiah Bryan jbryan at productiveconcepts.com
Mon May 9 09:04:50 MST 2005


Hey all -

Attached is quick perl script i whipped together this morning to dial from 
Kontact (well, KAddressBook). You'll need Net::Telnet (perl -MCPAN -e 
'install Net::Telnet') for it to work. You'll also need to make sure you've 
got a valid user/secret in /etc/asterisk/manager.conf on your * server for 
this to work. 

Usage:

/usr/bin/asteriskdial --from <valid_asterisk_channel>  --to "%N"

...assuming you've set the defaults correctly for your system in the script.

To use, in Kontact, goto your contacts, click Settings, click Configure 
KAddressBook, goto the General Tab, and in the 'Script-Hooks' section in the 
'Phone' box, put '/usr/bin/asteriskdial --from <my_channel>  --to "%N"'

KDE (well, kaddressbook) will then allow you to click on numbers in your 
contacts and substitute the %N for the number clicked.

Assuming you've chmod'ed +x the script and set the server, user, and secret 
correctly, when you click on a contact's number, your phone will ring.

Any questions, let me know!

Cheers!
-josiah

-- 
Josiah Bryan
IT Coordinator
Productive Concepts, Inc.
jbryan at productiveconcepts.com
(765) 964-6009, ext. 224
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asteriskdial
Type: application/x-perl
Size: 2148 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050509/80a4e164/asteriskdial.bin


More information about the asterisk-users mailing list