I have written this configuration script which uses OpenSky to make Skype calls directly from Asterisk devices using my companies SIP to Skype gateway. Users can dial skype_anyskypeusername or manually add names or extensions which can get mapped to the correct dialing sequence. The right sequence is <a href="mailto:username@opensky.gizmo5.com" target="_blank">username@opensky.gizmo5.com</a> but that gets mapped to sipphone address so I set that up to map directly to the final address. <br>
<br>I need a couple test sites so if anyone wants to test Skype calling on their Asterisk network please send me email and I'l enable longer calling. Also in the 2 hard coded examples below  (563 and echo) i want to also
reference gizmo5 and not repeatedly have proxy01.sipphone. Can someone
tell me how to construct the tightest syntax for that? Thanks. <br><br>-- MR<br>
<br>------------------------------------------------------------------------------------------------------------------------<br><br>[gizmo5]<br>
type=peer                                             ;COPY THIS CONFIG<br>
host=198.65.166.131                             ;INTO YOUR sip.conf<br>
fromdomain=<a href="http://proxy01.sipphone.com/" target="_blank">proxy01.sipphone.com</a>
   ;THIS WILL <br>
canreinvite=no                                         ;ALLOW ANY<br>
nat=yes                                                     ;DEVICE OR
CLIENT<br>
dtmfmode=rfc2833                                   ;CONNECTED TO YOUR<br>
insecure=very                                          ;ASTERISK SERVER TO CALL<br>
qualify=yes                                                ;SKYPE USERS SEVERAL WAYS.<br>
fromuser=YOURSIP                                    ;BY DIALING SKYPE NAMES OR NUMERIC SHORTCUTS<br>
authuser=YOURSIP                                   ;ENTERED INDIVIDUALLY BELOW<br>
username=YOURSIP                                 ;OR BY DIALING skype_skypeusername<br>
secret=YOURPASS                                    ;OR THE 333 ALIASES<br>
disallow=all                                                ;ENTERED at <a href="http://my.gizmo5.com" target="_blank">my.gizmo5.com</a><br>
allow=ulaw                                               
;<br>
allow=alaw                                                ;SEE <a href="http://gizmo5.com/opensky" target="_blank">gizmo5.com/opensky</a>
<br>
allow=ilbc                                                 ;FOR MORE
INFO<br><div>
<br>
[general]<br>
exten => _1333.,1,Goto(opensky,,1)          ;COPY THIS CONFIG<br></div>
exten => _333.,1,Goto(opensky,,1)            ;INTO YOUR<br>
exten => _skype[_].,1,Goto(opensky,,1)      ;extensions.conf<div bgcolor="#ffffff" text="#000000">exten => 563,1,Dial(<a href="mailto:SIP/skype_joeschmo@proxy01.sipphone.com" target="_blank">SIP/skype_echo123@proxy01.sipphone.com</a>)   ;To
dial a Skype user by dialing 563 in this example echo123<br>
exten => echo,1,Dial(<a href="mailto:SIP/skype_joeschmo@proxy01.sipphone.com" target="_blank">SIP/skype_echo123@proxy01.sipphone.com</a>)  ;To dial a Skype name in this example echo will dial echo123<br><br><div>
[opensky]<br>
exten => _1.,1,NoOp('opensky dial')<br>
exten => _1.,2,Dial(SIP/${EXTEN}@gizmo5|120|j)<br>
exten => _1.,3,Hangup()<br><br>-------------------------------------------------------------------------------------------------------------------------------------------------<br></div></div><br>