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.
[EMAIL PROTECTED]
(765) 964-6009, ext. 224

Attachment: asteriskdial
Description: Perl program

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to