Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] CDR generated on maximum sessions reach


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
lachezar.valchev at gm...
Guest





PostPosted: Wed Dec 03, 2008 1:45 pm    Post subject: [Freeswitch-users] CDR generated on maximum sessions reach Reply with quote

Hello everybody,

I am new to the list and I hope I can find some help here, regarding an issue I am experiencing with the CDRs written by Freeswitch.

The thing is, I am using the "max-sessions" and the "sessions-per-second" parameters in switch.conf.xml to limit the maximum number of simultaneous calls, I want to go through my Freeswitch server.

These options are working well, but I was expecting to have CDRs generated for the calls, that are dropped when the limit is reached.
Unfortunately there is no such one.

My question is: Is there an option, which allows the generation of CDR, when a call is dropped, because the maximum sessions limit is reached?

If there is no such option, is there any way to achieve it? Probably by using the the mod_limit module? Can you, please tell me how to do it?

Any kind of advice is welcomed. Thank you in advance.

Regards,
Lachezar
Back to top
msc at freeswitch.org
Guest





PostPosted: Wed Dec 03, 2008 2:19 pm    Post subject: [Freeswitch-users] CDR generated on maximum sessions reach Reply with quote

On Wed, Dec 3, 2008 at 10:27 AM, Lachezar Valchev <lachezar.valchev@gmail.com (lachezar.valchev@gmail.com)> wrote:
Quote:
Hello everybody,

I am new to the list and I hope I can find some help here, regarding an issue I am experiencing with the CDRs written by Freeswitch.

The thing is, I am using the "max-sessions" and the "sessions-per-second" parameters in switch.conf.xml to limit the maximum number of simultaneous calls, I want to go through my Freeswitch server.

These options are working well, but I was expecting to have CDRs generated for the calls, that are dropped when the limit is reached.
Unfortunately there is no such one.

My question is: Is there an option, which allows the generation of CDR, when a call is dropped, because the maximum sessions limit is reached?

If there is no such option, is there any way to achieve it? Probably by using the the mod_limit module? Can you, please tell me how to do it?

Lachezar,

These are good questions! I'll research them and let you know what I find out.
-MC

Quote:

Any kind of advice is welcomed. Thank you in advance.

Regards,
Lachezar

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
msc at freeswitch.org
Guest





PostPosted: Wed Dec 03, 2008 2:44 pm    Post subject: [Freeswitch-users] CDR generated on maximum sessions reach Reply with quote

On Wed, Dec 3, 2008 at 10:27 AM, Lachezar Valchev <lachezar.valchev@gmail.com (lachezar.valchev@gmail.com)> wrote:
Quote:
Hello everybody,

I am new to the list and I hope I can find some help here, regarding an issue I am experiencing with the CDRs written by Freeswitch.

The thing is, I am using the "max-sessions" and the "sessions-per-second" parameters in switch.conf.xml to limit the maximum number of simultaneous calls, I want to go through my Freeswitch server.

These options are working well, but I was expecting to have CDRs generated for the calls, that are dropped when the limit is reached.
Unfortunately there is no such one.

My question is: Is there an option, which allows the generation of CDR, when a call is dropped, because the maximum sessions limit is reached?

This is not possible. A CDR cannot be generated without a session, and a session will not be generated if the max sessions limit has already been reached...

Quote:


If there is no such option, is there any way to achieve it? Probably by using the the mod_limit module? Can you, please tell me how to do it?

mod_limit is most definitely your best option at this point. If you haven't read this yet please do:
http://wiki.freeswitch.org/wiki/Mod_limit

In the example on that page, you have a "limit_exceeded" extension which would show up in your CDR, or you can set a specific channel variable which will magically show up in an XML CDR. (You can modify CSV CDRs to have any custom channel variables as well. See http://wiki.freeswitch.org/wiki/Cdr which refers to the <templates> section of conf/autoload_configs/cdr_csv.conf.xml)

Try adding the limit app in your dialplan and have the limit_exceeded extension as well. You could set the limit really low for the sake of testing before setting it to the value necessary for your production deployment.

Let us know how it goes.

-MC

Quote:

Any kind of advice is welcomed. Thank you in advance.

Regards,
Lachezar

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
krice at suspicious.org
Guest





PostPosted: Wed Dec 03, 2008 3:03 pm    Post subject: [Freeswitch-users] CDR generated on maximum sessions reach Reply with quote

From: Michael Collins <msc@freeswitch.org>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Wed, 3 Dec 2008 11:41:04 -0800
To: <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] CDR generated on maximum sessions reach



On Wed, Dec 3, 2008 at 10:27 AM, Lachezar Valchev <lachezar.valchev@gmail.com> wrote:
Quote:
Hello everybody,

I am new to the list and I hope I can find some help here, regarding an issue I am experiencing with the CDRs written by Freeswitch.

The thing is, I am using the "max-sessions" and the "sessions-per-second" parameters in switch.conf.xml to limit the maximum number of simultaneous calls, I want to go through my Freeswitch server.

These options are working well, but I was expecting to have CDRs generated for the calls, that are dropped when the limit is reached.
Unfortunately there is no such one.

My question is: Is there an option, which allows the generation of CDR, when a call is dropped, because the maximum sessions limit is reached?

This is not possible. A CDR cannot be generated without a session, and a session will not be generated if the max sessions limit has already been reached...

Quote:


If there is no such option, is there any way to achieve it? Probably by using the the mod_limit module? Can you, please tell me how to do it?

mod_limit is most definitely your best option at this point. If you haven't read this yet please do:
http://wiki.freeswitch.org/wiki/Mod_limit

In the example on that page, you have a "limit_exceeded" extension which would show up in your CDR, or you can set a specific channel variable which will magically show up in an XML CDR. (You can modify CSV CDRs to have any custom channel variables as well. See http://wiki.freeswitch.org/wiki/Cdr which refers to the <templates> section of conf/autoload_configs/cdr_csv.conf.xml)

Try adding the limit app in your dialplan and have the limit_exceeded extension as well. You could set the limit really low for the sake of testing before setting it to the value necessary for your production deployment.

------SNIP-------

Michael’s advise here is dead on... The whole point of the session limiter (and SPS limiters) is to keep the box from melting down... Say in the event of a DoS (or a telemarketer)... If you want to do a soft limit that’s just want mod_limit is for and will allow you to do 2 things when used in conjunction with the max_sessions and sps limits... 1) Soft Limit and still log the calls 2) still have a hard limit that keeps the box for falling over dead...

You can do this with a simple step at the top of your dialplan that mod_limits everything together...

K
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services