Skype phonebook agi

rxcomm

Guru
Joined
Sep 13, 2010
Messages
77
Reaction score
2
Here's a bit of php that implements a (very) rudimentary Skype phonebook. I'm sure this can be improved significantly, but its a start. Grab the code here and save it as /var/lib/asterisk/agi-bin/skype.php. You also need to make it executable.

Next you need to create your phonebook. Edit the file /var/lib/asterisk/agi-bin/skype.xml and put entries similar to the following in it:

Code:
<user1>dave</user1>
<user2>bob</user2>
<user3>jim</user3>
where dave, bob, and jim are skype userids.

Sample dialplan code is in the comments at the top of skype.php. Add this at the appropriate place in extensions_custom.conf, reload your dialplan and you should have a Skype phonebook that you can dial from.

Usage - call the extension you put this at (717 in the example dialplan code), and at the voice prompt enter the user number you want to call with the DTMF pad on your phone. For example, if you wanted to call jim, you would key in the number 3. The system should then dial skype user jim. If you dial a number that does not have a corresponding skype user associated with it, the system let you know.

This (of course) requires that you have set up a skype trunk per NV. Works for me with asterisk 1.4 and 1.8. This code is public-domain.

Dave
 
Now calls all sip uri's

Skype's been down :wink5: so I modified the phonebook script to include dialing all sip uri's.

Modified script is here.

In view of the additional functionality, I renamed the script pb.php and the phonebook user.xml. Otherwise, installation is the same as above.

Dave
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top