Resource icon

TUTORIAL How to add Skype and FreeSwitch to existing PIAF 2013-05-25

No permission to download

emersonvier

New Member
Joined
Jun 29, 2013
Messages
26
Reaction score
4
Afer step 4 show this, I think the problem on last two lines....

root@pbx:~ $ sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh
ERROR: Module snd_pcm_oss does not exist in /proc/modules
ERROR: Module snd_mixer_oss does not exist in /proc/modules
ERROR: Module snd_seq_oss does not exist in /proc/modules
W: main.c: Running in system mode, but --disallow-exit not set!
W: main.c: Running in system mode, but --disallow-module-loading not set!
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time!
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
/usr/local/freeswitch/skypopen/skype-clients-symlinks-dir/skype101: line 13: /usr/lib/skype/skype: No such file or directory
/usr/local/freeswitch/skypopen/skype-clients-symlinks-dir/skype101: line 13: exec: /usr/lib/skype/skype: cannot execute: No such file or directory
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
It seem like you still have old start up script. Did you try to install over the old one?

Afer step 4 show this, I think the problem on last two lines....

root@pbx:~ $ sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh
ERROR: Module snd_pcm_oss does not exist in /proc/modules
ERROR: Module snd_mixer_oss does not exist in /proc/modules
ERROR: Module snd_seq_oss does not exist in /proc/modules
W: main.c: Running in system mode, but --disallow-exit not set!
W: main.c: Running in system mode, but --disallow-module-loading not set!
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time!
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
/usr/local/freeswitch/skypopen/skype-clients-symlinks-dir/skype101: line 13: /usr/lib/skype/skype: No such file or directory
/usr/local/freeswitch/skypopen/skype-clients-symlinks-dir/skype101: line 13: exec: /usr/lib/skype/skype: cannot execute: No such file or directory
 

emersonvier

New Member
Joined
Jun 29, 2013
Messages
26
Reaction score
4
It seem like you still have old start up script. Did you try to install over the old one?

Last week I try install without success and this week I saw the update and I try again... but i dont have del or removed any folder/file...

I download the new file here.

freeswitch.xml
install-freeswitch
setup-skype-4.pl
And I following the new tutorial.

New Skype should be in /opt/skype

Yes I saw this... but Can I solve this?
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
Last week I try install without success and this week I saw the update and I try again... but i dont have del or removed any folder/file...

I download the new file here.

freeswitch.xml
install-freeswitch
setup-skype-4.pl
And I following the new tutorial.



Yes I saw this... but Can I solve this?

Ok, I see. That why symlink still old one.
Delete /usr/bin/Skype and /usr/lib/Skype folder
then run:
ln -s /opt/skype /usr/share/skype
ln -s /opt/skype/skype /usr/bin/Skype

now you should be good to go.
 

emersonvier

New Member
Joined
Jun 29, 2013
Messages
26
Reaction score
4
sukasem, thanks for your help :)
After read your las message work, but...
1 - I heart all sounds by speaker on my netbox(login Skype/Rings/Voice) :eek:
2 - I test inbound - OK
3 - I test outbound, call teh echo - OK, I need call other user and other external number.
4 - After this test I try Step 13, I reboot my netbox and nothing happens :(
5 - I try this

root@pbx:~ $ sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh
ERROR: Module snd_pcm_oss does not exist in /proc/modules
ERROR: Module snd_mixer_oss does not exist in /proc/modules
ERROR: Module snd_seq_oss does not exist in /proc/modules
insmod: error inserting '/usr/local/freeswitch/skypopen/skypopen-sound-driver-dir/skypopen.ko': -1 Device or resource busy
W: main.c: Running in system mode, but --disallow-exit not set!
W: main.c: Running in system mode, but --disallow-module-loading not set!
N: main.c: Running in system mode, forcibly disabling SHM mode!
N: main.c: Running in system mode, forcibly disabling exit idle time!
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.
root@pbx:~ $ /usr/local/freeswitch/bin/freeswitch
Cannot lock pid file /usr/local/freeswitch/run/freeswitch.pid.
You have new mail in /var/spool/mail/root
WARNING: Always run Incredible PBX behind a secure hardware-based firewall.

Can you help again... sorry Im newbie... this pbx for my home, is not bussines.
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
I think you already put auto start in rc.local that why it can't lock PID because it already have one.
if you want to see the console of freeswitch.
run:
pkill freeswitch
/usr/local/freeswitch/bin/freeswitch
 

gpuser

Member
Joined
Aug 19, 2013
Messages
37
Reaction score
12
sukasem, Thanks for your excellent work! I'll give it a go over the weekend if I get some spare time.
There seem to be a problem with the new perl script (I haven't run the script yet, so not too sure)
Command 'wget' may not be necessary at variable declaration stage:
Code:
my $skype_download_url = "wget http://download.skype.com/linux/skype-4.2.0.11.tar.bz2";
because the command is supplied during execution:
Code:
system("cd $skype_download_dir ; wget -c $skype_download_url");
 

emersonvier

New Member
Joined
Jun 29, 2013
Messages
26
Reaction score
4
I think you already put auto start in rc.local that why it can't lock PID because it already have one.
if you want to see the console of freeswitch.
run:
pkill freeswitch
/usr/local/freeswitch/bin/freeswitch


sukasem

In step 13 show two lines

echo "sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh"
>> /etc/rc.d/rc.local


I change for one line :banghead:

echo "sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh" >> /etc/rc.d/rc.local

Now on boot start Skype / Freeswitch and work :clap:

I only need test the outboud calls.
 

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
if I already have skype installed how can I update to the latest version? and is there any nwe things that I hsould know in this latest version?
 

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
this is what I am onto

PIAF Installed Version = 2.0.6.3 under *HARDWARE* │
│ FreePBX Version = 2.11.0.11 │
│ Running Asterisk Version = 1.8.23.1 │
│ Asterisk Source Version = 1.8.21.0 │
│ Dahdi Source Version = 2.4.0 │
│ Libpri Source Version = 1.4.12 │
│ IP Address = 192.168.15.20 on eth0 │
│ Operating System = CentOS release 6.4 (Final) │
│ Kernel Version = 2.6.32-358.0.1.el6.i686 - 32 Bit │
│ Incredible PBX 3 Version = 3.1.0
 

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
if I had it installed on the old way now how can I only update it without installinf freeswitch
 

Lachlan McIntosh

New Member
Joined
Oct 13, 2013
Messages
1
Reaction score
0
Found that the Skype account name is case sensitive.

I think this is the fault of the Skype client as there were two directories (only lower, one mixed case) created in the Skype user profile directory.

Would stop working randomly until I changed the username to all lower case, at which point only a single directory was created.
 

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
Can anyone tell me if i can upgrade My existí mg skype install?
 

sukasem

Guru
Joined
Sep 13, 2008
Messages
142
Reaction score
26
if I already have skype installed how can I update to the latest version? and is there any nwe things that I hsould know in this latest version?

Yes, you can.
You may want to back up before you delete it..
/usr/bin/Skype
/usr/lib/Skype folder
/usr/local/freeswitch/conf/dialplan.xml
/usr/local/freeswitch/skyopen
and other conf that you have modified

I just did ran script upgrade my old one with out any backup but proceed with your own risk. it's not recommend to upgrade because no one know how stable it is. Don't Break Don't Fix:)
 

andy_vdg

New Member
Joined
Nov 9, 2013
Messages
1
Reaction score
0
Hi,
has anyone gotten this to work on the Raspberry Pi? I am not quite able to get freeswitch to build correctly.

Here the steps so far:

Install per-requesites:
#apt-get update
#apt-get install autoconf automake libtool pulseaudio

Check for sound modules:
#lsmod | grep snd

snd_bcm2835 15846 0
snd_pcm 77560 1 snd_bcm2835
snd_timer 19998 1 snd_pcm
snd 58447 3 snd_bcm2835,snd_timer,snd_pcm
snd_page_alloc 5145 1 snd_pcm

I just commented out the snd_bcm2835 in /etc/modules:
#nano modules
Code:
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
 
bcm2708_wdog
#snd_bcm2835

Restarted
#shutdown -r now

Run installer
#/root/install-freeswitch

The output is in freeswitchlog.txt

Run Skype script
#/root/setup-skype-4.pl

The output is in skypelog.txt

Run start_skype_clients.sh
# sh /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh
Error: Module snd_seq_oss is not currently loaded
mknod: `/dev/dsp': File exists
Error: could not load module /usr/local/freeswitch/skypopen/skypopen-sound-driver-dir/skypopen.ko: No such file or directory
N: [pulseaudio] main.c: Running in system mode, forcibly disabling SHM mode!
N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time!
E: [pulseaudio] main.c: Daemon startup failed.
/usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh: 15: /usr/local/freeswitch/skypopen/skype-clients-startup-dir/start_skype_clients.sh: /usr/bin/Xvfb: not found
bash: /usr/local/freeswitch/skypopen/skype-clients-symlinks-dir/skype101: cannot execute binary file

Any help to get this running is very much appreciated.
 

Attachments

  • freeswitchlog.txt
    59.1 KB · Views: 1
  • skypelog.txt
    7.5 KB · Views: 0

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
The Raspberry Pi doesn't have enough horsepower to run Skype, I'm afraid. At least that's what I recall.
 

Members online

No members online now.

Forum statistics

Threads
25,819
Messages
167,800
Members
19,247
Latest member
abuhyder
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.
Top