122 Commits

Author SHA1 Message Date
Giovanni Maruzzelli
49ce35823e skypiax: close the pipes when shutdown the module. Thx anthm
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14445 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-01 03:36:01 +00:00
Anthony Minessale
1c3978a4e7 MODSKYPIAX-35 (part1)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14444 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-01 02:47:35 +00:00
Michael Jerris
9b1f190bac fix msvc code analysis warnings (multiple null deref bugs.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14440 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-31 19:29:39 +00:00
Michael Jerris
27e823839a add mod_skypiax to 2008 express build and fix release build linking
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14439 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-31 19:14:56 +00:00
Giovanni Maruzzelli
fe1cdabb0b skypiax: reviewed locking of globals, added lock on outbound interface selection and call, revamped 'RR' IDLE interface selection
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14437 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-31 07:17:08 +00:00
Giovanni Maruzzelli
5284180a4b skypiax: changed skypiax.conf.xml to be less confusing (now interface_name != skype_username)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14421 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 20:38:58 +00:00
Giovanni Maruzzelli
4476386ecc skypiax: README now redirects to wiki page
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14420 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 20:13:46 +00:00
Giovanni Maruzzelli
45f38f17eb skypiax: switch_xml_free() the configuration if module failed to load, because otherwise reloadxml will stuck forever (reported by Seven Du)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14415 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 18:32:33 +00:00
Giovanni Maruzzelli
1296896264 skypiax: now interprets correctly the_interface whichever it is: interface_id, interface_name, skype_username. And reload works too :-)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14414 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 15:43:04 +00:00
Giovanni Maruzzelli
19bb4d410a skypiax: patch from Carlos Talbot, interface is a reserved word on Windows VC++
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14413 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 15:14:06 +00:00
Giovanni Maruzzelli
0bb1b8c7d7 skypiax: cosmetics
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14412 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 11:46:23 +00:00
Giovanni Maruzzelli
e929cd96a0 skypiax: fixed crash when you set an interface as 'sk' console, then remove the interface, then use the 'sk' command to send a message to the API (it try to use a non-existing interface)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14411 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 11:07:46 +00:00
Giovanni Maruzzelli
506d3768a1 skypiax: patch from Seven Du for hunting IDLE channels in a round-robin way (RR interface vs ANY interface). patch from Seven Du for removing interface as #'interface_id' and #'interface_name'. gmaruzz (meh) patch interface_remove() not to alter the global 'running' variable (it would cause all running signaling and API thread to exit) but to use a newly added tech_pvt->running variable. Also, changed behavior of interface_exists() for correct identification when using #interface_name and #interface_id. PLEASE TEST IT HEAVILY
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14410 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-29 09:08:31 +00:00
Giovanni Maruzzelli
d6f9544be3 skypiax: indent -gnu -ts4 -br -brs -cdw -lp -ce -nbfda -npcs -nprs -npsl -nbbo -saf -sai -saw -cs -bbo -nhnl -nut -sob -l90
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14375 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 15:56:07 +00:00
Giovanni Maruzzelli
44875f02c4 skypiax: cosmetics
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14374 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 15:51:03 +00:00
Giovanni Maruzzelli
49d14d9934 skypiax: manage the 'WAITING_REDIAL_COMMAND' call status message (skypeout: remote PSTN party has rejected us, our outbound call is failed)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14372 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 13:12:12 +00:00
Giovanni Maruzzelli
f9003db784 skypiax: manage the 'BUSY' call status message (skypeout: remote PSTN party is busy, our outbound call is failed)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14371 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 12:53:06 +00:00
Giovanni Maruzzelli
ff1ae27a9d skypiax: compiles and run (very well indeed, very short latency) on Windoz
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14370 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 09:37:06 +00:00
Giovanni Maruzzelli
708391a12d skypiax: let's drain the audiopipe to empty, each time we read from it. This avoid accumulation of unread samples in the pipe buffer (was cause of delays?). Anyway, now latency is lower. Let's check if it breaks on windoz
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14369 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-27 09:08:28 +00:00
Giovanni Maruzzelli
d3ea1130c1 skypiax: patch from Muhammad Shahzad for adding and removing interfaces on the fly: It basically adds two sk commands, sk reload => this re-reads Skypiax configuration file skypiax.conf.xml and adds ONLY new interfaces it found in conf. All existing interfaces are not touched. sk remove <skype-user> => this remove skypiax interface associated with given Skype user account, if it is idle.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14367 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-26 23:45:27 +00:00
Giovanni Maruzzelli
e0fbc0c343 skypiax: fixed Visual Studio project, now compiles on Release too
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14363 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-25 20:36:08 +00:00
Giovanni Maruzzelli
b5260cab3e Oooops!
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14360 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-25 15:28:25 +00:00
Giovanni Maruzzelli
6b12792bec skypiax: added configs/windows-service directory, contains batch files needed to start skype instances as service, and then start FreeSwitch
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14359 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-25 15:20:43 +00:00
Giovanni Maruzzelli
11f4930156 skypiax: compiles AND links on windows ;-)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14343 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 14:22:38 +00:00
Giovanni Maruzzelli
39dab176b2 skypiax: compiles on windows
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14341 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 14:03:23 +00:00
Giovanni Maruzzelli
6bd34fb9d2 skypiax: lot of changes to allow for the usage of multiple instances of the same skype username, eg: 10 instances of skypename 'Bob' and 10 instances of skypename 'alice'. Horrible hacks for deciding which instance answer an incoming call, which busy instance will transfer to another and when, etc... ;-) Let's hope it does not breaks havoc...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14340 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 13:36:43 +00:00
Giovanni Maruzzelli
9252320659 skypiax: updated config files and skype clients starting script
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14339 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 13:34:03 +00:00
Giovanni Maruzzelli
c039086b5b skypiax: updated config files and skype clients starting script
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14338 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 13:31:19 +00:00
Giovanni Maruzzelli
21a2cd5b41 skypiax: added directory 'configs/multiple-instance-same-skype-username', contains configuration file and script to launch Skype clients with multiple instances of the same skype user, eg: 10 instances of skypename 'Bob' and 10 instances of skypename 'alice'
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14337 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 13:22:43 +00:00
Giovanni Maruzzelli
d9c8fc7fae skypiax: added directory 'kernel', contains .config file for compilation of kernel 2.6.24.7 (64bit) tickless and 100HZ. Best for skypiax, solves high load problems on CentOS
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14336 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 12:16:22 +00:00
Giovanni Maruzzelli
6bb1bbfe18 skypiax: added directory 'alsa', contains customized snd-dummy ALSA driver, low load. Please use alsa-driver-1.0.20 sources from alsa-project.org to compile, older sources got a bug that causes kernel oops
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14335 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-24 12:13:40 +00:00
Giovanni Maruzzelli
4d2a6927e5 skypiax: added XInitThreads() to configs/client.c, now is kind of a reliable tool
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14125 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-07-03 11:58:10 +00:00
Giovanni Maruzzelli
6303e249c0 skypiax: removed FARMING ifdefs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13810 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-17 11:12:58 +00:00
Giovanni Maruzzelli
0b0d4077c1 skypiax: now it manages the REMOTEHOLD status, when the remote party puts the call on-hold
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13667 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-06 23:59:27 +00:00
Giovanni Maruzzelli
e8a262b729 skypiax: insert the delay ONLY if the broken message is 'ERROR 92 CALL: Unrecognised identity': when repeatedly you try to connect to non-existing Skype account in a short period, the Skype client send you back the two halves of the message 'ERROR 92 CALL: Unrecognised identity' inverted in a way that breaks the flux of the API messages. Maybe an anti-spam feature? Anyway, let's try to work around it and restore sanity with a 1 second delay
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13666 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-06 20:31:01 +00:00
Giovanni Maruzzelli
8942627040 skypiax: the Skype client sends us BOTH inband and out_of_band DTMFs, no way to shut the inbands. Let's intercept the out_of_bands ONLY if we are not bridged (eg: IVR, so not to waste CPU in detecting inband), but not propagate the out_of_band DTMFs if we are bridged (inband ones will be propagated)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13664 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-06 18:15:26 +00:00
Giovanni Maruzzelli
0b18987f9e skypiax: when repeatedly you try to connect to non-existing Skype account in a short period, the Skype client send you back the two halves of the message 'ERROR 92 CALL: Unrecognised identity' inverted in a way that breaks the flux of the API messages. Maybe an anti-spam feature? Anyway, let's try to work around it and restore sanity with a 1 second delay
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13663 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-06-06 16:36:26 +00:00
Giovanni Maruzzelli
56596b4e88 skypiax: great startup speedup in Windows (using only one Broadcast sendmessage for each interface hunting)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13083 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-19 22:44:45 +00:00
Anthony Minessale
73fe7bfdcc FSCORE-352
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12987 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-10 20:14:02 +00:00
Anthony Minessale
ab6c4f1a6d change CS_DONE to CS_DESTROY and add state handler for destroy and tear down critical parts of the channel from this method which is not called until it's impossible for anything to be referencing the channel (after final write lock and before destroying the pool)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12986 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-10 17:43:18 +00:00
Anthony Minessale
68b0359cfb FSCORE-349 add flag to denote if a codec is init or not
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12961 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-09 17:17:12 +00:00
Giovanni Maruzzelli
f54561be0f skypiax: fixed assignment before declaration on Windows VC++: thx to Carlos Talbot
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12956 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-08 22:08:31 +00:00
Giovanni Maruzzelli
6192a3ab92 skypiax: modified configs/startskype.sh to specify which unix user will start the Skype client instance. Thx to mbrancaleoni@voismart.it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12937 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-04-07 16:31:36 +00:00
Giovanni Maruzzelli
ba1a8ec241 skypiax: indent -gnu -ts4 -br -brs -cdw -lp -ce -nbfda -npcs -nprs -npsl -nbbo -saf -sai -saw -cs -bbo -nhnl -nut -sob -l90
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12833 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-29 09:21:07 +00:00
Giovanni Maruzzelli
3c206cfa22 skypiax: undeffing FARMING modifications, they're experinmantal
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12832 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-29 09:19:09 +00:00
Giovanni Maruzzelli
ab565bba44 skypiax: FARMING modifications
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12831 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-29 09:17:58 +00:00
Giovanni Maruzzelli
7fd9f69f26 skypiax: configs/client.c spawn netcats
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12830 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-29 08:18:10 +00:00
Giovanni Maruzzelli
aea2c1a6d6 skypiax: docs on configs/client.c
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12829 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-29 08:16:42 +00:00
Giovanni Maruzzelli
c4667335dd skypiax: found the way to use netcat to relay configs/client.c stdin and stdout, will be the basis for farming out. Instruction in the first lines of configs/client.c. As Young Frankenstein said: It... Could... Workcd /usr/src/freeswitch/src/mod/endpoints/mod_skypiax/configs! http://www.ladyofthecake.com/mel/frank/sounds/couldwrk.wav
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12826 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-28 20:01:03 +00:00
Giovanni Maruzzelli
dd55e006ae skypiax: added configs/client.c, will be the basis for farming out :-)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12825 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-28 18:03:33 +00:00