[commit] r11298 - in freeswitch/branches/ctrix/mod_airpe: . scripts
Author: ctrix Date: Mon Jan 19 17:55:57 2009 New Revision: 11298 Log: Tweaks (modify some debug messages, add example script to launch skype) Added: freeswitch/branches/ctrix/mod_airpe/scripts/ freeswitch/branches/ctrix/mod_airpe/scripts/skype_launch (contents, props changed) Modified: freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c freeswitch/branches/ctrix/mod_airpe/mod_airpe.c Modified: freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c ============================================================================== --- freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c (original) +++ freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c Mon Jan 19 17:55:57 2009 @@ -754,7 +754,7 @@ } } else { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "CALL ID %d\n", callid); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Unmanaged message %s\n", msg); } } else if ( !strncmp( buf, "DTMF", strlen("DTMF")) && argc>3 ) { Modified: freeswitch/branches/ctrix/mod_airpe/mod_airpe.c ============================================================================== --- freeswitch/branches/ctrix/mod_airpe/mod_airpe.c (original) +++ freeswitch/branches/ctrix/mod_airpe/mod_airpe.c Mon Jan 19 17:55:57 2009 @@ -488,7 +488,7 @@ assert(tech_pvt); if ( !tech_pvt->airpe ) { - ADEBUG("airpe_audio_write ERROR: no client\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "airpe_audio_write ERROR: no client\n"); return SWITCH_STATUS_FALSE; } @@ -497,7 +497,7 @@ rv = airpe_audio_write(tech_pvt, frame); if ( rv != SWITCH_STATUS_SUCCESS ) { - ADEBUG("airpe_audio_write ERROR\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "airpe_audio_write ERROR\n"); return SWITCH_STATUS_FALSE; } Added: freeswitch/branches/ctrix/mod_airpe/scripts/skype_launch ============================================================================== --- (empty file) +++ freeswitch/branches/ctrix/mod_airpe/scripts/skype_launch Mon Jan 19 17:55:57 2009 @@ -0,0 +1,23 @@ +#!/bin/bash + +# Set the directory where your Skype settings and users are located +DB_PATH=/home/ctrix/.Skype/ + +function launch() { + local ACCOUNT=$1 + local PASSWD=$2 + local DISP=$3 + + /usr/bin/Xvfb :$DISP & + sleep 2 + echo "$ACCOUNT $PASSWD"| DISPLAY=:$DISP /usr/bin/skype --pipelogin --dbpath=$DB_PATH + + return; +} + + +# add as many lines you need to launch each skype client +launch youraccount yourpass display + + +exit 0;
participants (1)
-
FreeSWITCH SVN