// How To Dial Out Using an ATA and SkypeOut // // By Kurced // // http://www.oldskoolphreak.com Updated August 28, 2006 to include configuration for Asterisk! (Disclaimer: For educational purposes only, I'm not responsible for use/abuse) As most of you know SkypeOut is free until the end of 2006, and using headsets is all nice and fun, but I know I'd rather use a real phone. Cordless or otherwise, here's a way to use your ATA to dial out for the time being. >>List of things you'll need: 1. ATA 2. Axon PBX (free @ http://www.nch.com.au/pbx/index.html ) [comes with a lot of extra stuff, but you don't have to install them so just uncheck the boxes.] 3. Uplink's Skype to SIP Adapter software (free @ http://www.nch.com.au/skypetosip/index.html ) 4. Computer running Windows 5. Skype >>Few things to note: The adapter software is buggy, so when it stops working occasionally you'll just have to restart it as needed. >>Asterisk Conf from mo0 In /etc/asterisk/sip.conf [uplink] type=friend username=uplink secret=fykfhqrc host=dynamic context=skype-in And in extensions.conf exten => _7.,1,Dial(SIP/${EXTEN:1}@uplink) **Kurced (thanks to sev) Note: you need to have a "+" to dialout using the free skypeout as below** exten => _7.,1,Dial(SIP/+${EXTEN:1}@uplink) To dial out, and a new context for incoming calls: [skype-in] exten = s,1,Dial(SIP/sipura1) >>Steps: <<1. Set up your ATA to connect to an extension on Axon PBX using the web interface. You can find pre-made extensions in the admin web interface of Axon as well as the ability make your own. <<2. Configure Uplink to connect to the PBX (Axon) From the company's knowledge base: http://www.nch.com.au/kb/10034.html How do I configure Uplink with Axon? Make sure you install Axon first, and then install Uplink on the same computer. Instructions: 1. In Axon: Create a new External Line using these details: Line Name: uplink Server: [blank] (blank = itself I assume) ID / User Name: uplink Password: fykfhqrc (default line for Uplink Ext. 196) Incoming calls ring on: [nominate an extension or group you would like to ring when a call comes through from Skype] Save these details. Now go to the properties for your "Default" dialing plan. You need to decide here what prefix needs to be dialed in order to ring out through Skype from SIP. Our suggestion is to use the existing "9" prefix. So where it says "if number starts with" and "9" in the second dial rule, click the edit button for that dial rule (see on the right side) and change the "dial on line" to "uplink". 2. In Uplink: Uplink will detect for the presence of Axon and automatically setup the SIP line for you. If you go to Settings -> SIP tab you can verify that the following details are present: Display name: Uplink SIP2Skype Converter SIP number: uplink Server: localhost Password: fykfhqrc In Settings -> General tab, look at the "Dial Options" box and ensure the option "When SIP calls" is set to "Use the dialled number" and the field "When Skype calls SIP" says "uplink". Save these changes, and then restart Uplink. After Uplink is restarted, observe the Axon logs and you will see a log message appearing saying something like "External Line Skype is at: sip:skype@127.0.0.1:5070". That's it, you can now test out your system. Things you need to check now: 1. Uplink, Skype and Axon should all be on the same computer. 2. Axon should be running on local port 5060. You can see this when you start Axon and look at the second line in the logs, it will say "SIP Private IP is ..." and it will list your private IP and local port. When someone dials your Skype number, it will go through Uplink and then Axon will contact whatever extensions you told it to ring. And to dial out, simply type prefix 9, then type the Skype username that you want to contact. This can be any regular Skype username or even a real number if you are subscribed to the SkypeOut service. <<3. Modify the Dial Plan on Axon. (This is mentioned before by the KB instructions, I elaborated for use with SkypeOut.) Go to the Dial Plan page in the admin interface webpage. Click the little pencil and paper edit button on the side of the default diaplan. Click Add Dial Rule. Enter your desired prefix for outgoing on the Uplink line in the "If number starts with" box (the single digits 6,7,or 8 work nicely) In the remove digits box, enter the numbers of digits in the prefix, if it was 678, then 3, if it was just 6, then the remove numbers is 1. In the prepend put +1 (for dialing in the US, if you plan to use SkypeOut to Canada, then just put +), this is needed by SkypeOut. If you've done everything correctly, then you should be able to dial out by using 6-xxx-xxx-xxxx. >>Troubleshooting: If you can't dial out using your ATA (you hit a couple numbers and then it gives you an off-hook sound like mine did), take a look at the ATA's dial plan/digit map. I tried a lot of these and found that the simple, x. , worked as long as I pressed the termination digit for my ATA. (I use a Linksys RTP300) Network issues: Such as port forwarding and such, you'll have to figure out yourself if it's needed. >>Extra fun stuff: Using Axon you can set up other external lines and ways to dial out on those lines. As an example you can set up an FWD line with an IPKALL DID. So you've got PSTN termination incoming and outgoing. Just add the external line, set it up to ring on your ATA's extension, and add another dial rule for outgoing FWD calls. Shoutouts: Doug, Pegasus, Athnex, Accident, Nub225, Natas, Av1d, and Royal If I forgot to mention anyone else, sorry.