56 Commits

Author SHA1 Message Date
Giovanni Maruzzelli
7fa36e835d skypiax: changed audio i/o tcp socket size and timing constant on linux, for better compatibility with virtual machines
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16330 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-16 17:15:12 +00:00
Giovanni Maruzzelli
2731b1e580 skypiax: added comment for socket buffer modification for Virtual Machines
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16323 d0543943-73ff-0310-b7d9-9358b9ac24b2
2010-01-15 18:06:17 +00:00
Giovanni Maruzzelli
f7231a45e1 skypiax: cosmetics
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16044 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-23 17:49:36 +00:00
Giovanni Maruzzelli
6abbaceb16 skypiax: cosmetics
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16043 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-23 17:45:27 +00:00
Giovanni Maruzzelli
a16583b45a skypiax: maybe braking cpu loop in case of broken Xlib?
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16015 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-22 13:20:34 +00:00
Mathieu Rene
dea8d99a81 mod_skypiax: code before decl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15765 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-12-03 06:09:32 +00:00
Giovanni Maruzzelli
67464ea79e skypiax: lower load by bigger TCP buffer
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15635 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-23 22:22:15 +00:00
Giovanni Maruzzelli
b5435e918e skypiax: do not add delay when a sleep() or play() are executed by a script after answer() and before sending audio. MODSKYPIAX-29 MODSKYPIAX-58
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15585 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-20 23:46:45 +00:00
Giovanni Maruzzelli
8e40f02891 skypiax: no more pipes for audio samples exchange between threads. Let's hope it does not breaks things around. Only other possible cause of audio delay is socket buffering. We'll check that too.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15541 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-19 14:20:53 +00:00
Giovanni Maruzzelli
b47f1f9348 skypiax: commented out 'XCloseDisplay' lines, seems to cause crashes...
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15344 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-04 10:45:46 +00:00
Giovanni Maruzzelli
f2fdcf6b6f skypiax: when sending a chatmessage, do not report it as an incoming message (eg: do not report the messages sent by myself)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15327 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-11-03 00:52:52 +00:00
Giovanni Maruzzelli
b01c665654 skypiax: now incoming CHATMESSAGE is transformed into a MESSAGE event, and sent to the ESL (fired) and, if we are in a call (if the session exists) is sent to the session too (from where you can get it eg: with inputcallbacks methods)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14876 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-15 19:41:22 +00:00
Giovanni Maruzzelli
88b15b9e09 skypiax: added skypiax_chat command. SYNTAX: skypiax_chat interface remote_skypename TEXT
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14857 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-14 22:13:00 +00:00
Giovanni Maruzzelli
9d28cd1e6e skypiax: fires a custom event when an incoming CHATMESSAGE arrives. In the headers are chatmessage id, chatname, from_handle, from_dispname. You want to answer to from_handle. In the body of the event is the chatmessage body. Heh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14845 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-14 18:02:05 +00:00
Giovanni Maruzzelli
8b9d979f3d skypiax: Linux (XWin signaling actually) now manages the case when a 'continue' atom(s) is received before the 'begin' atom. That's in preparation for managing IM chatting
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14843 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-09-14 12:40:09 +00:00
Giovanni Maruzzelli
d9e1d18fb6 skypiax: fixed problem with different storage between linux and windoz for tcp ports (int to unsigned short). Thanks Sergey for reporting
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14629 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-25 03:34:23 +00:00
Giovanni Maruzzelli
d9deb2327c skypiax: beginning to avoid crashes when Skype clients die, XWindows related
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14610 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-24 00:41:24 +00:00
Giovanni Maruzzelli
ed49550460 skypiax: avoid memory leaks and overhead by reusing the same audiothreads spawned with first call (they no more exit at call end)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14594 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-22 06:14:38 +00:00
Giovanni Maruzzelli
24c732a9c1 skypiax: interface_state=UP when remote goes from earlymedia->inprogress
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14575 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-20 09:03:27 +00:00
Giovanni Maruzzelli
1582200142 skypiax: indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14534 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-15 15:38:46 +00:00
Giovanni Maruzzelli
e3095522c2 skypiax: more stability, no dangling channels, MODSKYPIAX-42, added 'sk list' statistics (thanks Seven Du) MODENDP-236
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14533 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-15 15:37:44 +00:00
Giovanni Maruzzelli
f32e37990d skypiax: compile on windoz, not yet tested
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14521 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-14 21:00:02 +00:00
Giovanni Maruzzelli
f11f9aab52 skypiax: cosmetics
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14519 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-14 17:20:42 +00:00
Giovanni Maruzzelli
f1134fdd5b skypiax: indent
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14518 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-14 17:14:40 +00:00
Giovanni Maruzzelli
fd2bf49b7c skypiax: ubermegapatch, more stability, robustness, scalability. Memory leaks not yet investigated, we'll do next
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14517 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-08-14 17:12:09 +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
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
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
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
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
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
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
07c2480ea4 skypiax: fixed transferred call to skype user busy in another call: was transferring using the interface name, not the skype_user. Fixed as per Jira: MODSKYPIAX-28
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12790 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-26 10:29:28 +00:00
Giovanni Maruzzelli
601a187096 skypiax: don't warns about TRANSFERRING and TRANSFERRED states
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12524 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-08 15:31:45 +00:00
Giovanni Maruzzelli
8ff3e74804 skypiax: Visual C: correcting the warning ' Potential comparison of a constant with another constant'
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12505 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 11:46:01 +00:00
Giovanni Maruzzelli
ff0ee26549 skypiax: Visual C: correcting a typo, was causing 'argument 1' might be '0': this does not adhere to the specification for the function 'CloseHandle'
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12504 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 11:41:54 +00:00
Giovanni Maruzzelli
292ac2ae88 skypiax: Visual C: use switch_string_copy instead of strncpy, fix the Release build (Release was lacking rpcrt4.lib in the linker command line of the mod_skypiax project)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12503 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-07 11:14:08 +00:00
Giovanni Maruzzelli
a9fcad1aca 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@12416 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-03-04 20:18:37 +00:00