[Freeswitch-dev] Answering a call...
Guys, In my module (written in C), I have a call answering edge case that I think there must be an easier way than what I¹m doing. Or, more correctly, a right way to do this and I¹m currently not doing that. I have an active/established call. An incoming SIP call arrives and I send it off to switch_ivr_originate to ring my endpoints. Based on action outside of Freeswitch, I want to stop the ringing and have an endpoint from the established call answer this ringing call. I have a custom FS event generated to indicate this condition. In this event handler I want to take a channel from the active call and answer this incoming call. Here¹s what I¹m currently doing. In my event handler I¹m taking the endpoint of the active call and sending to a specific dialplan This dialplan has it call my C application. At this point the application is the session of the endpoint and it can get the session that¹s currently ringing. It gets the session of the ringing channel It uses switch_channel_answer to answer the ringing channel. Then it uses switch_ivr_uuid_bridge to bridge these two endpoints. Seems simple enough but it¹s not working. The problems I have are: Doing this seems to make the switch_ivr_originate that was ringing the endpoints fail with ORIGINATOR_CANCEL. I special case this but it leads me to believe I¹m going about this the wrong way. I¹m not trying to cancel it, I want to answer it. I¹m not breaking the bridge of the original established call. That too seems wrong. I think I should be doing something there but it¹s not clear what. Is there a better way to handle this? Thanks Kevin Snow
hi, Does anyone know how many skype calls you can handle on a single PC? I understand that there are a low limit ? Jan _________________________________________________________________ Show them the way! Add maps and directions to your party invites. http://www.microsoft.com/windows/windowslive/products/events.aspx
On Thu, Aug 13, 2009 at 2:27 PM, Jan Berger <janvb@live.com> wrote:
hi,
Does anyone know how many skype calls you can handle on a single PC?
I understand that there are a low limit ?
I believe that Giovanni has done several dozen calls concurrently on a Linux machine. I don't know that anyone has done stress testing to the breaking point. -MC
Hi Michael, Actually I'm working on a kind of stress testing since I come back from Cluecon. First I will commit a big patch to enhance robustness (I'm using sipp to tear up and down 10 calls/sec for 5 secs briding on 20 concurrent skypiax interfaces calling a PSTN number via Skypeout), then I will probably test how many max concurrent calls you can have on my machine. Heh... -giovanni On Thu, Aug 13, 2009 at 9:48 PM, Michael Collins<msc@freeswitch.org> wrote:
On Thu, Aug 13, 2009 at 2:27 PM, Jan Berger <janvb@live.com> wrote:
hi,
Does anyone know how many skype calls you can handle on a single PC?
I understand that there are a low limit ?
I believe that Giovanni has done several dozen calls concurrently on a Linux machine. I don't know that anyone has done stress testing to the breaking point. -MC
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
hi, 20 calls is very little - any special reason why the limit is so low? Is this CPU or RAM? ------------ Anyway - 20 calls is pretty ok for the Enterprice marked that mainly exist between 1-90 ports + I guess we can look at combining PC's to get more. Another option is to look at interfacing to the lower layer skype protocol - if we can hack it.... just an idea. Jan
From: gmaruzz@celliax.org Date: Thu, 13 Aug 2009 22:01:39 +0200 To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] Skype calls
Hi Michael,
Actually I'm working on a kind of stress testing since I come back from Cluecon.
First I will commit a big patch to enhance robustness (I'm using sipp to tear up and down 10 calls/sec for 5 secs briding on 20 concurrent skypiax interfaces calling a PSTN number via Skypeout), then I will probably test how many max concurrent calls you can have on my machine.
Heh...
-giovanni
On Thu, Aug 13, 2009 at 9:48 PM, Michael Collins<msc@freeswitch.org> wrote:
On Thu, Aug 13, 2009 at 2:27 PM, Jan Berger <janvb@live.com> wrote:
hi,
Does anyone know how many skype calls you can handle on a single PC?
I understand that there are a low limit ?
I believe that Giovanni has done several dozen calls concurrently on a Linux machine. I don't know that anyone has done stress testing to the breaking point. -MC
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx
On Thu, Aug 13, 2009 at 3:56 PM, Jan Berger <janvb@live.com> wrote:
hi,
20 calls is very little - any special reason why the limit is so low? Is this CPU or RAM?
I suppose it all goes back to the fact that each Skype call requires its own instance of the Skype client. Unless the Skype client is REALLY efficient then that can scale only so high. The permanent solution will be when Skype breaks down and let's us have a lib that allows the devs to create a proper channel driver and codec handler. Until then you'll need to throw CPU at the problem... -MC
On Fri, Aug 14, 2009 at 2:43 AM, Michael Collins<msc@freeswitch.org> wrote:
I suppose it all goes back to the fact that each Skype call requires its own instance of the Skype client. Unless the Skype client is REALLY efficient then that can scale only so high. The permanent solution will be when Skype
The Skype client is a pig, the endpoint (channel driver) use one Skype client per call because it is the ONLY legal way to connect to the Skype network (eg: is illegal to reverse engineer, etc), a lot of effort has been put in understanding how to lower the CPU usage by the Skype client. Have a look at the wiki page http://wiki.freeswitch.org/wiki/Skypiax As soon as people will put pressure on Skype/Ebay/Whoever owns the underlying technology so they open and document the protocol, we will implement an endpoint that does not depend from the client. Btw, will also be a step forward if they will give API access to the library underlying the Skype client, but maybe that one is makeing the Skype client so a pig :-). -giovanni
I have bring up to 60 Skypiax channels, using 20 skype accounts, i.e. each skype account logged in three times. But only 20 of them were able to make call to skype echo test service, others got NO ANSWER. I am not sure of why this happened but may be skype echo service allows only one call per skype account regardless of how may instances are using this one account. Has anyone tried this with different results? Thank you. On Fri, Aug 14, 2009 at 11:09 AM, Giovanni Maruzzelli <gmaruzz@celliax.org>wrote:
On Fri, Aug 14, 2009 at 2:43 AM, Michael Collins<msc@freeswitch.org> wrote:
I suppose it all goes back to the fact that each Skype call requires its own instance of the Skype client. Unless the Skype client is REALLY efficient then that can scale only so high. The permanent solution will be when Skype
The Skype client is a pig, the endpoint (channel driver) use one Skype client per call because it is the ONLY legal way to connect to the Skype network (eg: is illegal to reverse engineer, etc), a lot of effort has been put in understanding how to lower the CPU usage by the Skype client.
Have a look at the wiki page http://wiki.freeswitch.org/wiki/Skypiax
As soon as people will put pressure on Skype/Ebay/Whoever owns the underlying technology so they open and document the protocol, we will implement an endpoint that does not depend from the client.
Btw, will also be a step forward if they will give API access to the library underlying the Skype client, but maybe that one is makeing the Skype client so a pig :-).
-giovanni
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +92 334 422 40 88 MSN: shari_786pk@hotmail.com Email: shaheryarkh@googlemail.com
Muhammad, Yes, I can confirm the behavior of the echo123 service. Only one call from each username. For my massive tests, I use some tollfree PSTN number via skypeout (you can do it also without buying credits). -giovanni On Fri, Aug 14, 2009 at 8:04 AM, Muhammad Shahzad<shaheryarkh@googlemail.com> wrote:
I have bring up to 60 Skypiax channels, using 20 skype accounts, i.e. each skype account logged in three times. But only 20 of them were able to make call to skype echo test service, others got NO ANSWER. I am not sure of why this happened but may be skype echo service allows only one call per skype account regardless of how may instances are using this one account. Has anyone tried this with different results?
Thank you.
On Fri, Aug 14, 2009 at 11:09 AM, Giovanni Maruzzelli <gmaruzz@celliax.org> wrote:
On Fri, Aug 14, 2009 at 2:43 AM, Michael Collins<msc@freeswitch.org> wrote:
I suppose it all goes back to the fact that each Skype call requires its own instance of the Skype client. Unless the Skype client is REALLY efficient then that can scale only so high. The permanent solution will be when Skype
The Skype client is a pig, the endpoint (channel driver) use one Skype client per call because it is the ONLY legal way to connect to the Skype network (eg: is illegal to reverse engineer, etc), a lot of effort has been put in understanding how to lower the CPU usage by the Skype client.
Have a look at the wiki page http://wiki.freeswitch.org/wiki/Skypiax
As soon as people will put pressure on Skype/Ebay/Whoever owns the underlying technology so they open and document the protocol, we will implement an endpoint that does not depend from the client.
Btw, will also be a step forward if they will give API access to the library underlying the Skype client, but maybe that one is makeing the Skype client so a pig :-).
-giovanni
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +92 334 422 40 88 MSN: shari_786pk@hotmail.com Email: shaheryarkh@googlemail.com
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
hi, Its many ways around this... But first - You have to take into account that Skype might not be interested in pabx type connections (for now) as theire API only provide a per line interface. Enabling pabx - multiple connections also means someone else can clone skype using skypes own business... Jan
From: gmaruzz@celliax.org Date: Fri, 14 Aug 2009 08:08:47 +0200 To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] Skype calls
Muhammad,
Yes, I can confirm the behavior of the echo123 service. Only one call from each username.
For my massive tests, I use some tollfree PSTN number via skypeout (you can do it also without buying credits).
-giovanni
On Fri, Aug 14, 2009 at 8:04 AM, Muhammad Shahzad<shaheryarkh@googlemail.com> wrote:
I have bring up to 60 Skypiax channels, using 20 skype accounts, i.e. each skype account logged in three times. But only 20 of them were able to make call to skype echo test service, others got NO ANSWER. I am not sure of why this happened but may be skype echo service allows only one call per skype account regardless of how may instances are using this one account. Has anyone tried this with different results?
Thank you.
On Fri, Aug 14, 2009 at 11:09 AM, Giovanni Maruzzelli <gmaruzz@celliax.org> wrote:
On Fri, Aug 14, 2009 at 2:43 AM, Michael Collins<msc@freeswitch.org> wrote:
I suppose it all goes back to the fact that each Skype call requires its own instance of the Skype client. Unless the Skype client is REALLY efficient then that can scale only so high. The permanent solution will be when Skype
The Skype client is a pig, the endpoint (channel driver) use one Skype client per call because it is the ONLY legal way to connect to the Skype network (eg: is illegal to reverse engineer, etc), a lot of effort has been put in understanding how to lower the CPU usage by the Skype client.
Have a look at the wiki page http://wiki.freeswitch.org/wiki/Skypiax
As soon as people will put pressure on Skype/Ebay/Whoever owns the underlying technology so they open and document the protocol, we will implement an endpoint that does not depend from the client.
Btw, will also be a step forward if they will give API access to the library underlying the Skype client, but maybe that one is makeing the Skype client so a pig :-).
-giovanni
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +92 334 422 40 88 MSN: shari_786pk@hotmail.com Email: shaheryarkh@googlemail.com
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_________________________________________________________________ With Windows Live, you can organize, edit, and share your photos. http://www.microsoft.com/middleeast/windows/windowslive/products/photo-galle...
Hi Jan, it all boil down to your hardware, cpu and ram. I develop mod_skypiax with 20 concurrent calls on a q6600 with 3GB ram, and I tested 30 concurrent calls without problems. Also the mix OS/Kernel/alsa_version/alsa_driver/ can make a difference. Please, have a look at the wiki page: http://wiki.freeswitch.org/wiki/Skypiax Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618 On Thu, Aug 13, 2009 at 9:27 PM, Jan Berger<janvb@live.com> wrote:
hi,
Does anyone know how many skype calls you can handle on a single PC?
I understand that there are a low limit ?
Jan
________________________________ See all the ways you can stay connected to friends and family _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Kevin, From first sight it looks like you aren't bridging the right uuid. Hop on #freeswitch-dev and I can guide you a bit more through the core API. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca On 13-Aug-09, at 1:54 PM, Kevin Snow wrote:
Guys,
In my module (written in C), I have a call answering edge case that I think there must be an easier way than what I’m doing. Or, more correctly, a right way to do this and I’m currently not doing that.
I have an active/established call. An incoming SIP call arrives and I send it off to switch_ivr_originate to ring my endpoints. Based on action outside of Freeswitch, I want to stop the ringing and have an endpoint from the established call answer this ringing call. I have a custom FS event generated to indicate this condition. In this event handler I want to take a channel from the active call and answer this incoming call.
Here’s what I’m currently doing.
In my event handler I’m taking the endpoint of the active call and sending to a specific dialplan This dialplan has it call my C application. At this point the application is the session of the endpoint and it can get the session that’s currently ringing. It gets the session of the ringing channel It uses switch_channel_answer to answer the ringing channel. Then it uses switch_ivr_uuid_bridge to bridge these two endpoints.
Seems simple enough but it’s not working.
The problems I have are:
Doing this seems to make the switch_ivr_originate that was ringing the endpoints fail with ORIGINATOR_CANCEL. I special case this but it leads me to believe I’m going about this the wrong way. I’m not trying to cancel it, I want to answer it.
I’m not breaking the bridge of the original established call. That too seems wrong. I think I should be doing something there but it’s not clear what.
Is there a better way to handle this?
Thanks
Kevin Snow
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (6)
-
Giovanni Maruzzelli
-
Jan Berger
-
Kevin Snow
-
Mathieu Rene
-
Michael Collins
-
Muhammad Shahzad