Re: [Freeswitch-users] Skype interaction commands on skypiax

2009-04-07 Thread Giovanni Maruzzelli
svn commit -m"skypiax: modified configs/startskype.sh to specify which
unix user will start the Skype client instance. Thx to
mbrancale...@voismart.it"
Sendingconfigs/startskype.sh
Transmitting file data .
Committed revision 12937.

:-)

On Tue, Apr 7, 2009 at 10:13 AM, Matteo  wrote:
> Ciao Giovanni,
>
> I suggest to update the startskype.sh script by adding a "su username" 
> statement,
> in this way:
>
> instead of starting skype as
>
> echo "myskypeuser xxx" | DISPLAY=:101 /usr/bin/skype --pipelogin &
>
> is better to do:
>
> su unixusername -c "echo 'myskypeuser xxx' | DISPLAY=:101 /usr/bin/skype 
> --pipelogin &"
>
> for two reason:
> you can easily put config into a non-root user
> AND
> the startskype.sh will work also if called from init.
>
> in fact, a plain
>
> echo "myskypeuser xxx" | DISPLAY=:101 /usr/bin/skype --pipelogin &
>
> will not work when called from init script,
> you have to do (even with root)
>
> su root -c "echo 'myskypeuser xxx' | DISPLAY=:101 /usr/bin/skype --pipelogin 
> &"
>
> in any other way skype will not get the user home directory...
>
> This is my 2c experience on centos 5.2.
>
> regards,
> matteo.
>
> ___
> Freeswitch-users mailing list
> Freeswitch-users@lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


Re: [Freeswitch-users] Skype interaction commands on skypiax

2009-04-07 Thread Matteo
Ciao Giovanni,

I suggest to update the startskype.sh script by adding a "su username" 
statement, 
in this way:

instead of starting skype as 

echo "myskypeuser xxx" | DISPLAY=:101 /usr/bin/skype --pipelogin &

is better to do:

su unixusername -c "echo 'myskypeuser xxx' | DISPLAY=:101 /usr/bin/skype 
--pipelogin &"

for two reason:
you can easily put config into a non-root user
AND
the startskype.sh will work also if called from init.

in fact, a plain 

echo "myskypeuser xxx" | DISPLAY=:101 /usr/bin/skype --pipelogin &

will not work when called from init script,
you have to do (even with root)

su root -c "echo 'myskypeuser xxx' | DISPLAY=:101 /usr/bin/skype --pipelogin &"

in any other way skype will not get the user home directory...

This is my 2c experience on centos 5.2.

regards,
matteo.

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


[Freeswitch-users] Skype interaction commands on skypiax

2009-04-02 Thread Giovanni Maruzzelli
Hi all,

background:
mod_skypiax is Skype compatible endpoint that allows incoming and
outbound calls to/from the Skype network and SkypeOut service. It's
seen by FS like other endpoints, so you can originate from sofia,
bridge to skypiax, and connect the call to a landline number via
SkypeOut service, for eg.
skypiax endpoint use a Skype client to interact with the Skype network
(see the wiki page for more details
http://wiki.freeswitch.org/wiki/Skypiax).

The news are:
now you can send commands to the skype client related to a skyiax
interface, both from the FS command line and programmatically
(socket/API/esl/whatever)
http://wiki.freeswitch.org/wiki/Skypiax#API_and_CLI_Commands

This allow you to use directly the entire power of the Skype API (
https://developer.skype.com/Docs/ApiDoc ), for eg to send chat
messages, interact with the buddy list, etc etc.
Typing "console loglevel 9" at the FS command line allows you to see
the Skype API answers from the Skype client instance.

So, in short: you bring loglevel to 9 (so you can see the Skype API
messages going back and forth), you use "sk" or "skypiax" to send
Skype API commands to the Skype client instance.

This way you can prototype extensions to the current mod_skypiax, that
can then be implemented in C directly into the mod_skypiax source
code.

Please, let me know of extensions you would like to be integrated into
the mod_skypiax code ;-).


Sincerely,

Giovanni Maruzzelli
=
www.celliax.org
via Pierlombardo 9, 20135 Milano
Italy
gmaruzz at celliax dot org
Cell : +39-347-2665618
Fax : +39-02-87390039

___
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org