PIONEERS: Skytopia Returns for PIAF2

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
20,217
Reaction score
5,974
skasterisk.jpg


It's baaaaaaaaaack. Wanna take Skype for a test run on your PIAF2 server?

Code:
update-programs

and then

Code:
install-skype2


Once the install completes, apply this late-breaking patch from the command line and then reboot your server:

sed -i 's|*,play:clips/invalidDest.wav|#*,play:clips/invalidDest.wav|' /opt/siptosis/SkypeToSipAuth.props


Incoming Calls: If you'd prefer that inbound Skype calls not be routed to your default Incredible PBX destination, you can modify the setting in /etc/asterisk/extensions_override_freepbx.conf.
Search for mothership and replace: exten => mothership,1,Goto(app-daynight,1,1)
with something like this: exten => mothership,1,Dial(local/947@from-internal)
Then reload your dialplan: asterisk -rx "dialplan reload"

Outbound Skype Calls: You can test an outbound Skype call to nerdvittles for a Weather Report by Zip Code. It uses the routing code above.
To place outbound Skype calls using a SIP client such as X-Lite 4, use the following syntax: *nerdvittles


Installation Documentation: http://pbxinaflash.org/piaf6/docs/install-skype2.pdf
 
After some odd things today I have done the following:

1. Updated install-skype2 so it should automatically run the sed command mentions in Wards post.
2. Added Rent PBX awareness and made some changes so it will run for the folks that use our fine Premium Support Partners facilities.
3. I have updated the docs extensively and added an Appendix for those running on Rent PBX with lots of screen captures.
4. Ward and I had a small issue with the config of xwindows out of the box running on his test system. The simplest method is to follow the directions for RentPBX and just remember to install vncserver when asked.
5. One known problem is that skype seems to go to sleep thus if you look at the pbx's skype user, in the windows based skype interface, they appear to have a yellow status indicator. If you call it however it seems to wake up.
6. REMEMBER!!!! These are the very latest version of both Skype and SipToSis so some problems are inherent in this. We are working on a different methodology for both skype and google voice which may supplant the current software 8^)


The updates are staged on the development server and can take up to 24 hours to make its way into PIAF space. In the interim you can


1. Download the doc FIRST at the link Ward posted this will always be the most current.

2. Run update-programs -d This will update you from the very latest stuff on the dev server

3. After you have read the docs run install-skype2 -d


4. If you dont read the docs and follow exactly and then post about it not working well you are on your own. READ THE DOCS. If you find a mistake in procedure or something is NOT clear please let us know and we will rectify it. If your complaint starts "I did not read the docs BUT" well any response you get might be not nice.....

(yah I am just waiting for the pundit to yank my chain.....)


Best regards

Tom

(back to the OTHER project)
 
Just a quick update

Make some refinements and they should be available later today or tomorrow.

Tom
 
Strange Behavior

Tom,

This coincides with your comment as well as our other comments.

Skype now works very well with the following exception. After some interval ~ 12 hours or so, it goes to sleep. If I call into the server with Skype, the caller just hears ringing and regardless of how many attempts to call into the server are made, skype inbound just keeps ringing, ringing, ringing, etc. then finally times out.

Now once that has happened, if I then place a Skype call outbound from the server via one of the extensions attached to the server, then Skype wakes up again and is good for inbound calling again for another ~12 hours or so, then the behavior repeats, skype goes to sleep again and won't take inbound calls again...

Per Ward's suggestion, I've setup a number of extensions to place calls to skype user-names, including one to the Echo Test. I just call the echo-test once in the morning and skype inbound is good for most of the day.

Not sure if others are experiencing this same "feature" or not.

Thanks!
Don
 
[FIXED]: error while loading shared libraries: libasound.so.2: cannot open shared obj

Got through phase I no problem. Phase two is giving me a problem when I try to initially run skype

Code:
cd /opt/skype
./skype
./skype: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory

Seems as if there was a dependency not installed... I fixed this by doing:

Code:
yum install glibc.i686 alsa-lib.i686 libXv.i686 libXScrnSaver.i686 libSM.i686 libXi.i686 libXrender.i686 libXrandr.i686 freetype.i686 fontconfig.i686 zlib.i686 glib2.i686 libstdc++.i686

I am running a 64-bit version of centos but the skype app is 32-bit. The dependency missing was a 32-bit one so I'm guessing the install script doesn't take 64/32 into consideration?
 
yup a few others have seen this. Perhaps Don you can send me exactly what you did so I can add it to the install or at least to the manual. BTW glad to see it works for you. I know you were somewhat frazzled about it. I am modifying the install docs now because we have run across some incompatible systems that wont run X out of the box as during a console install the framebuffer screws up. A simpler approach is to do everything via vnc which is how we are redoing it. Thanks to the folks at Rent PBX for the suggestions.

Tom
 
Amy

Odd was this installed on real hardware by chance?


Tom
 
thanks while I am in tinkering with this stuff tonight I will add a differential compile based on bitness.

Tom
 
Ok so the latest version of install-skype2 has been pushed out.

1. YOU NEED TO REDOWNLOAD THE PDF FILE!!! It has substantially changed.

2. We have switched over to a vnc methodology to perform the skype configuration. This works on hardware and virtual machines... especially where you dont have access to a console device with a mouse attached.

3. The configuration has been unified whether you are hardware/virtual/rentpbx the steps are the same now.

4, Thanks to amygrant some missing dependencies have been added to the 64 bit side so it should now install smoothly.

5. Dandy_don has pointed out that skype goes away after a period of time. when he sends to me what he has done it will be integrated into the install.

Grrrrrrr Sure would be nice to have a software based system as reliable as an OBI for this.... Hmmmmmm,,,,,,,,,


Tom
 
Thanks I have been writing user docs for my windows programming projects since windows 1.0....

Of course there are always problems and some users attention spans are so short it does not matter how good the docs are.

I would rather be developing however the skype stuff is fairly complex to install and we really needed a "Big Pictures" and "Big Fonts" type of document or the support issues in the forums would be unending.

Even so I am constantly amazed at how good some users are about pounding a round peg into a triangle hole with a 10 lb sledge hammer.

Tom
 
SipToSis Problem When Externip Is Set

Wanted to follow up. Inbound is working fine but I am having problems with outbound calling is failing when I have externip set to my public IP in sip_custom.conf.

My setup is:
Internet -> DDWRT router (DHCP server) -> PIAF server

/opt/siptosis/SipToSkypeAuth.props:
Code:
*,*,LOCALNET,calleeid

/etc/asterisk/sip_custom.conf:
Code:
externip=55.555.555.55
localnet=192.168.1.0/255.255.255.0

promiscredir=yes

/opt/siptosis/SkypeToSipAuth.props:
Code:
*,sip:[email protected]:5060


The obvious change is to change the third parameter from LOCALNET to * in /opt/siptosis/SipToSkypeAuth.props:
Code:
*,*,*,calleeid

Change that, reload siptosis but the issue is than a timeout due to asterisk trying to use the public ip:
Code:
[2012-03-02 09:36:01] WARNING[10371] chan_sip.c: Retransmission timeout reached on transmission [email protected]:5060 for seqno 102 (Critical Request) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32001ms with no response
[2012-03-02 09:36:01] WARNING[10371] chan_sip.c: Hanging up call [email protected]:5060 - no reply to our critical packet (see https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions).
[2012-03-02 09:36:01] VERBOSE[10453] app_dial.c:   == Everyone is busy/congested at this time (1:0/0/1)

If I comment out my externip setting in /etc/asterisk/sip_custom.conf than outbound works fine. However, I *NEED* to have externip set to enable remote softphones to work.

I saw some people had similar problems in previous iterations of siptosis. Wanted to post this to show it is still an issue and I will post the resolution when I figure it out.
 
One of the problems with skype is this methodology is unreliable and I suspect it wont be fixed soon. I have done a few changes in the install-skype2 like revert back to the previous version of skype and made a few changes to some of the config files. There are also a number of additions that need to be made to the install-skype2.pdf file to configure a number of extra things.

All of this is sundays project!


After this is out I wont be updating this project for a while. I am going to concentrate on "alternative methods"


Tom
 
I have released the updates to the developer site as of now. They should be available to everyone tomorrow.

1. Changed the version of skype being installed BACK to the one Ward was using in his original article.This seems to have helped stabilize things. Java and siptosis remain the same.

2. Modified phase three install so it generates a new SkypeToSipAuth.props file instead of patching existing one. Original one is backed up. Also once phase three install has been successfully run a message is left in the rc.local file to verify this.

3. Modifications to the siptosis.cfg file as per recommendations from the author of siptosis

4. Updated the install-skype2.pdf file with some new configuration information which seems to make for a more stable install both inbound and outbound. You will need to download a new copy of this as I am not going to list all the changes here.

http://pbxinaflash.org/piaf6/docs/install-skype2.pdf

Good luck

Tom
 
Available now on all our servers for your testing pleasure. ;)
 

Members online

No members online now.

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