¿how to configure chan_skypiax?

I am trying to get the new chan_skypiax working, I have followed the complete installation guide. I also have the skype client installed and working, but I don't know how to instruct asterisk to connect to it. This is what I do:

From an X terminal:

sh-3.1$ skype & (it starts and auto-login as my user)
Asterisk Ready.
*CLI> set debug 10
Core debug was 0 and is now 10
*CLI> load chan_skypiax.so (I don't load it on startup to be alble to see the debug information)
Oct 15 14:28:48 DEBUG[28551]: config.c:597 config_text_file_load: Parsing /usr/local/asterisk/etc/asterisk/modules.conf
Oct 15 14:28:48 NOTICE[28551]: chan_skypiax.c:1189 key: rev 1090[(nil)|2b17286a3ae0][NOTICE 1189 ][none ][-1,-1,-1] Returning Key
Oct 15 14:28:48 DEBUG[28551]: channel.c:344 ast_channel_register: Registered handler for 'Skypiax' (Skypiax, Skype Driver)
Oct 15 14:28:48 DEBUG[28551]: config.c:597 config_text_file_load: Parsing /usr/local/asterisk/etc/asterisk/skypiax.conf
Oct 15 14:28:48 DEBUG[28551]: chan_skypiax.c:1224 skypiax_mkif: ENTERING FUNC
Oct 15 14:28:48 NOTICE[28551]: chan_skypiax.c:1338 skypiax_mkif: rev 1090[(nil)|2b17286a3ae0][NOTICE 1338 ][skypeclient][-1, 0, 0] DEBUG_PBX activated.
Oct 15 14:28:48 NOTICE[28551]: chan_skypiax.c:1349 skypiax_mkif: rev 1090[(nil)|2b17286a3ae0][NOTICE 1349 ][skypeclient][-1, 0, 0] DEBUG_SKYPE activated.
Oct 15 14:28:48 DEBUG[28637]: skypiax_additional.c:1197 skypiax_do_tcp_srv_thread: rev 1090[(nil)|402ca960][DEBUG_SKYPE 1197 ][skypeclient][-1, 0, 0] started tcp_srv_thread thread.
Oct 15 14:28:48 DEBUG[28551]: chan_skypiax.c:969 load_module: rev 1090[(nil)|2b17286a3ae0][DEBUG_PBX 969 ][none ][-1,-1,-1] Created channel Skypiax: skypiax.conf category '[skypeclient]', channel name 'skypeclient

Now using some skypiax commands:
*CLI> skypiax_console
"current" skypiax_console is [skypeclient]

*CLI> skypiax_skype foo
The "current" console is not connected to a Skype client'

*CLI> skypiax_dir_import replace
Oct 15 14:33:53 NOTICE[28551]: skypiax_additional.c:1476 skypiax_console_skypiax_dir_import: rev 1090[(nil)|2b17286a3ae0][NOTICE 1476 ][skypeclient][-1, 0, 0] Opening '/usr/local/asterisk/etc/asterisk/directoriax.conf'
Oct 15 14:33:53 NOTICE[28551]: skypiax_additional.c:1495 skypiax_console_skypiax_dir_import: rev 1090[(nil)|2b17286a3ae0][NOTICE 1495 ][skypeclient][-1, 0, 0] Opened '/usr/local/asterisk/etc/asterisk/directoriax.conf' for writing
Skype not configured on the 'current' console, not importing from Skype client!

And this is all, how should I configure the console to connect to the X skype client? Thanks in advance.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Forgot to add the line where

Forgot to add the line where I start asterisk, is in between the skype & and the Asterisk ready lines, and looks like this:

/usr/local/asterisk/usr/sbin/asterisk -c

This is all. Hoping for your answers.


Launch Skype before asterisk

You have to launch the skype client and have it logged into Skype (I mean, ready for you to make a Skype call with it) *before* to launch asterisk.

When you will launch asterisk, the skype client will ask your authorization to be used by asterisk-celliax.

Give it to it.

*then* proceed.

Please, write again here if this do not work, or if you find other problems.

Giovanni


But this is the way I do it

My previous steps are performed exactly in this conditions. I recieve no autorization request in skype window when I start asterisk, no matter If i load the chan_skypiax module at start-up or with the load command, as shown before. It does not detect the skype window.


I forgot to add...

that I am performing all this steps in a vncserver, not an standard X server. Can this be the problem? For the moment I have no direct access to this machine. If I use a Xvfb server the debugging messages on the asterisk window are exactly the same, but of course then I can not see whether skype client asks authorization or not.


missing skype=yes in skypiax.conf

I'm sooo sorry!

My fault, sorry for having wasted your time!

You have to add a line to the skypiax.conf config file you find in svn. Now I've fixed it in svn.

Please add a line like the following to the skypiax.conf file you are using:

skype=yes


Now it works :D

No, please, don't apologize for waisting my time, you waist your time in making this great & useful piece of software. Thanks to you.

Ok, now it connects and I'm able to import contacts from the skype client. For the moment I can not test making calls, but I will investigate it in some days.

Another issue is that I've been unable to compile the separate module against the asterisk version on Debian Etch, maybe I'll also post about it later. Thanks for all again.


skypiax test call

to test chan_skypiax you can add a line like

exten => 777,1,Dial(Skypiax/skypeclient/echo123); please, dial 777 to call the Skype test sound machine

or you can use the celliax_stuff/newconfigs/extensions.conf instead of the extensions.conf you are using now.

I've fixed this too in svn, now.

Thanks a lot to take the time to let us know about this problems, you for sure spared lot of times and troubles to other users!

Let us know of how is going, and let's fix the bugs together ;-)

Giovanni


Error Compiling skypiax files

Hi there!

I've downloaded all files from skypiax_stuff and build directory to get the things done, but when i try to compile the files i get this error message!

[TrixServer.net build]# make clean
rm -f *.so *.o *.so.a
[TrixServer.net build]# make
gcc -DASTERISK_VERSION_1_4 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -I/usr/src/asterisk/include -I. -D_REENTRANT -D_GNU_SOURCE -march=i686 -fomit-frame-pointer -D'SKYPIAX_SVN_VERSION="exported"' -c -o chan_skypiax.o chan_skypiax.c
chan_skypiax.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
chan_skypiax.c:1:23: warning: no newline at end of file
make: *** [chan_skypiax.o] Error 1

What can i do, some help?

-PD: i've downloaded the celliax files from this link here and compiled them without any problem, maybe is the way that i'm downloading the skypiax ones manually. There's some way to download a .tgz file format??

Regards!!


how to install celliax

ciao pmercedes,

please follow this instruction strictly:
http://www.celliax.org/node/496

or maybe you can be better served by this instruction list:
http://www.celliax.org/node/504

Please note that at the moment, celliax software is pre-beta, and
more targeted to programmers and very advanced users that wants to
help in the development.


anyone can help me please

hi there, thank you for the great work on getting skype working with asterisk.
am trying to get more than one skype account working, for example i want to have 10 skype account with different user names logged on and asterisk can terminate 10 concurrent calls. i'm changing the skypiax.conf file to add more [skypeclient] lines and tried to put the [username] but none of them working, any one can help. Thanks


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.