[asterisk-users] Asterisk Cluster Scenario
Hello folks, my company has experience in setting up single asterisk setup, but recently one of our customers asked us to set up an asterisk cluster, that must be High Availability and Load Balanced. So I wrote here to have some hint or advice about the configuration we thought. First of all I'll explain you the scenario: The asterisk cluster must serve as Call Center Hub-and-Spoke. There are lots of little call-centers (~15 ops), phisically separated, that must appears as a single Big Virtual Call-Center. The call-center is inbound and outbound. Initially the Virtual Call-Center will be composed of 15 small call-centers (= ~230 ops), but the prevision is to grow to ~800 ops. Asterisk must work as B2BUA, because the customer does not want the call-centers contact directly the upstream SIP providers. Asterisk server must also record the call and, maybe, do some transcoding. The single asterisks instances talk each-other with DUNDi/IAX2 to pass the calls from an op to another op registered on another server. We'll use a mysql database (NDB cluster) to avoid to have multiple sip.conf files with the registration informations (asterisk-rt). We must, in any case, use asterisk, because the whole call-center has to be integrated with a 3rd part software for predictive calling ad power dialing which has been developed for asterisk. The SIP servers are behind NAT, because the customer want to use only one public IP address; every asterisk server will have a different RTP port range to avoid rtp conflicts. And, for now, the LB part works manually registering the ops on different asterisk servers. But now we have to achieve the HA part of the setup. We started considering a SIP hardware load balancer, like Radware or Brocade, but neither a single nor a couple of this equipments (HA, remember?) do not fit in the customer budget. So, we started thinking about use OpenSIPS (formerly OpenSER) as a SIP load-balancer. (the customer has server hardware that could be used for this, and we will use VRRP for redundancy). In the OpenSIPS features we read load balancing with failover, but we could not find any useful and complete configuration example. Is OpenSIPS able to know if an asterisk server is UP or DOWN, or must we use a 3rd part tool, like mon? Anyone has experience in use OpenSIPS as SIP load balancer (not to work as real SIP proxy)? Any hint/advice for this part, or for the global setup? Thanks in advance for the help! Stefano PS: sorry for my weak english PS2: sorry for cross posting but, if the general setup is more asterisk related, the OpenSIPS part is, obviously, OpenSIP specific. -- Stefano Sasso http://stefano.dscnet.org/ -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk 1.8.0 Release Candidate 2 Now Available
Compile without SRTP support Hint: ./configure --without-srtp ~ Andrew lathama Latham lath...@gmail.com * Learn more about OSS http://en.wikipedia.org/wiki/Open-source_software * Learn more about Linux http://en.wikipedia.org/wiki/Linux * Learn more about Tux http://en.wikipedia.org/wiki/Tux On Sat, Sep 25, 2010 at 1:37 AM, Barry Miller asterisk-us...@notanet.net wrote: On Fri, Sep 24, 2010 at 10:25:01PM -0700, Ira wrote: At 01:14 PM 9/23/2010, you wrote: The Asterisk Development Team has announced the second release candidate of Asterisk 1.8.0. This release candidate is available for immediate download at http://downloads.asterisk.org/pub/telephony/asterisk/ I downloaded this, ran ./configure followed by make menuselect and I don't seem to have SIP as an available protocol. Is there something I can do to make it available? It works fine on the most recent 1.6 version and it's worked on most of the prior 1.8 versions. You probably need to install libssl-dev then rerun ./configure. At least I did (Debian Lenny). Seems chan_sip needs res_crypto which needs libssl. -- Barry -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] differential billing
Tarek, I already tested this feature with a2billing. This is difficult to extract the working code from a2billing. Also we are developing billing system so this is not a good idea to deploy another billing system in parallel. Any idea or link might help full. On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah tareksa...@hotmail.com wrote: A quick answer? A2billing. It has what you call it differential billing.. but they call it progressive billing.. 3 steps .. for 3 different rates .. Go for it.. easy to setup and quick to learn and use. Regards *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *Danny Nicholas *Sent:* Friday, September 24, 2010 4:19 PM *To:* 'Asterisk Users Mailing List - Non-Commercial Discussion' *Subject:* Re: [asterisk-users] differential billing -- *From:* asterisk-users-boun...@lists.digium.com [mailto: asterisk-users-boun...@lists.digium.com] *On Behalf Of *Abdul Basit *Sent:* Friday, September 24, 2010 8:13 AM *To:* Asterisk Users Mailing List - Non-Commercial Discussion *Subject:* [asterisk-users] differential billing Hi All, How can we develop a differential charging setup using asterisk like for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec charge @15cent, etc? Any idea, suggestion. -- Regards, Abdul Basit | +92 32 1416 4196 Since the CDR records the call duration in seconds, this should be a relative “no-brainer”, assuming you are billing post-call. If you are wanting to generate the charges during the live calls, AMI would be your best option for getting a running duration of the connection. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Regards, Abdul Basit | +92 32 1416 4196 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] differential billing
if you are deploying your own system.. then you can build a small application (AGI) that would do the math for you .. will devide the call duration into the stages you want .. and does the calculation.. i think MYSQL already can do that.. but a PHP script will do it faster and easier.. or like our billing system.. C# application interacting with Asterisk doing all the math. after all it's all SQL and Asterisk working. you can do that with a dial plan i believe.. so why not build an AGI to do it for you? -- Tarek Sawah Integrated Digital Systems CCNA, MCSE, RHCE, VoIP USA: +13864929993 From: basit.e...@gmail.com Date: Sat, 25 Sep 2010 23:27:56 +0500 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] differential billing Tarek, I already tested this feature with a2billing. This is difficult to extract the working code from a2billing. Also we are developing billing system so this is not a good idea to deploy another billing system in parallel. Any idea or link might help full. On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah wrote: A quick answer? A2billing. It has what you call it differential billing.. but they call it progressive billing.. 3 steps .. for 3 different rates .. Go for it.. easy to setup and quick to learn and use. Regards From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas Sent: Friday, September 24, 2010 4:19 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] differential billing From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Abdul Basit Sent: Friday, September 24, 2010 8:13 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] differential billing Hi All, How can we develop a differential charging setup using asterisk like for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec charge @15cent, etc? Any idea, suggestion. -- Regards, Abdul Basit | +92 32 1416 4196 Since the CDR records the call duration in seconds, this should be a relative “no-brainer”, assuming you are billing post-call. If you are wanting to generate the charges during the live calls, AMI would be your best option for getting a running duration of the connection. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Regards, Abdul Basit | +92 32 1416 4196 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] differential billing
Yes. you are right. I was thinking to avoid reinventing the wheel. Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec during live call. We can monitor channel variables over AMI. But this will be a CPU overhead (say for 100 or 200 calls) if we monitor channel variables on every second. I want some thing to push channel details on each transition (or events like IVR level changed, call duration updated to next minute) rather than i request on AMI. Don't know if this logic is workable. Just want a right direction. -- Regards, Abdul Basit | +92 32 1416 4196 On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah tareksa...@hotmail.comwrote: if you are deploying your own system.. then you can build a small application (AGI) that would do the math for you .. will devide the call duration into the stages you want .. and does the calculation.. i think MYSQL already can do that.. but a PHP script will do it faster and easier.. or like our billing system.. C# application interacting with Asterisk doing all the math. after all it's all SQL and Asterisk working. you can do that with a dial plan i believe.. so why not build an AGI to do it for you? -- Tarek Sawah Integrated Digital Systems CCNA, MCSE, RHCE, VoIP USA: +13864929993 From: basit.e...@gmail.com Date: Sat, 25 Sep 2010 23:27:56 +0500 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] differential billing Tarek, I already tested this feature with a2billing. This is difficult to extract the working code from a2billing. Also we are developing billing system so this is not a good idea to deploy another billing system in parallel. Any idea or link might help full. On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah wrote: A quick answer? A2billing. It has what you call it differential billing.. but they call it progressive billing.. 3 steps .. for 3 different rates .. Go for it.. easy to setup and quick to learn and use. Regards From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas Sent: Friday, September 24, 2010 4:19 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] differential billing From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Abdul Basit Sent: Friday, September 24, 2010 8:13 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] differential billing Hi All, How can we develop a differential charging setup using asterisk like for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec charge @15cent, etc? Any idea, suggestion. -- Regards, Abdul Basit | +92 32 1416 4196 Since the CDR records the call duration in seconds, this should be a relative “no-brainer”, assuming you are billing post-call. If you are wanting to generate the charges during the live calls, AMI would be your best option for getting a running duration of the connection. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Regards, Abdul Basit | +92 32 1416 4196 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] differential billing
the way i see it can be done.. is using ${CDR(billsec)} into a dial plan or your AGI, A2billing is a script that runs and waits till the call ends then exists with status 0. it doesn't listen to AMI (as i expect) it pulls the variables after the channel is hungup and then does the calculation something like ROUND(${CDR(billsec)}/60) to get FULL MINUTES if calculation in full minute round for example then do the calculation in mysql when inserting the sessionbill or let the PHP or AGI script do the math for you. 200 calls won't be a problem with Server that has good resources. Just give it a try and let me know. Tarek Sawah Information Technology Adviser Integrated Digital Systems CCNP, MCSE, RHCE, TELECOM USA: +1 386 492 9993 From: basit.e...@gmail.com Date: Sun, 26 Sep 2010 02:43:05 +0500 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] differential billing Yes. you are right. I was thinking to avoid reinventing the wheel. Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec during live call. We can monitor channel variables over AMI. But this will be a CPU overhead (say for 100 or 200 calls) if we monitor channel variables on every second. I want some thing to push channel details on each transition (or events like IVR level changed, call duration updated to next minute) rather than i request on AMI. Don't know if this logic is workable. Just want a right direction. -- Regards, Abdul Basit | +92 32 1416 4196 On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah wrote: if you are deploying your own system.. then you can build a small application (AGI) that would do the math for you .. will devide the call duration into the stages you want .. and does the calculation.. i think MYSQL already can do that.. but a PHP script will do it faster and easier.. or like our billing system.. C# application interacting with Asterisk doing all the math. after all it's all SQL and Asterisk working. you can do that with a dial plan i believe.. so why not build an AGI to do it for you? -- Tarek Sawah Integrated Digital Systems CCNA, MCSE, RHCE, VoIP USA: +13864929993 From: basit.e...@gmail.com Date: Sat, 25 Sep 2010 23:27:56 +0500 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] differential billing Tarek, I already tested this feature with a2billing. This is difficult to extract the working code from a2billing. Also we are developing billing system so this is not a good idea to deploy another billing system in parallel. Any idea or link might help full. On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah wrote: A quick answer? A2billing. It has what you call it differential billing.. but they call it progressive billing.. 3 steps .. for 3 different rates .. Go for it.. easy to setup and quick to learn and use. Regards From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas Sent: Friday, September 24, 2010 4:19 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] differential billing From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Abdul Basit Sent: Friday, September 24, 2010 8:13 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] differential billing Hi All, How can we develop a differential charging setup using asterisk like for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec charge @15cent, etc? Any idea, suggestion. -- Regards, Abdul Basit | +92 32 1416 4196 Since the CDR records the call duration in seconds, this should be a relative “no-brainer”, assuming you are billing post-call. If you are wanting to generate the charges during the live calls, AMI would be your best option for getting a running duration of the connection. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Regards, Abdul Basit | +92 32 1416 4196 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit:
Re: [asterisk-users] differential billing
(Caution-top posting. Delete Before Reading if that's a problem for you.) As I see it, real-time billing is only necessary if you have multiple people making simultaneous calls against a prepaid balance or limited credit limit. In other situations, you can simply make a determination at the beginning of the call that it's prepaid or otherwise valid for a given period of time-4 minutes, 17 minutes, 24 hours+ or whatever. Then you can let it go 'til you want to give a 2-minute warning, cut it off or whatever. The actual billing would be after the call is terminated. Not much overhead. --Don Don Kelly PCF Corp People Come First 651 842-1000 888 Don Kell(y) 651 842-1001 fax _ From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Abdul Basit Sent: Saturday, September 25, 2010 4:43 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] differential billing Yes. you are right. I was thinking to avoid reinventing the wheel. Will write AGIs. Trick is how to charge at 3min 59 sec or 4 min 01 sec during live call. We can monitor channel variables over AMI. But this will be a CPU overhead (say for 100 or 200 calls) if we monitor channel variables on every second. I want some thing to push channel details on each transition (or events like IVR level changed, call duration updated to next minute) rather than i request on AMI. Don't know if this logic is workable. Just want a right direction. -- Regards, Abdul Basit | +92 32 1416 4196 On Sat, Sep 25, 2010 at 11:37 PM, Tarek Sawah tareksa...@hotmail.com wrote: if you are deploying your own system.. then you can build a small application (AGI) that would do the math for you .. will devide the call duration into the stages you want .. and does the calculation.. i think MYSQL already can do that.. but a PHP script will do it faster and easier.. or like our billing system.. C# application interacting with Asterisk doing all the math. after all it's all SQL and Asterisk working. you can do that with a dial plan i believe.. so why not build an AGI to do it for you? -- Tarek Sawah Integrated Digital Systems CCNA, MCSE, RHCE, VoIP USA: +13864929993 From: basit.e...@gmail.com Date: Sat, 25 Sep 2010 23:27:56 +0500 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] differential billing Tarek, I already tested this feature with a2billing. This is difficult to extract the working code from a2billing. Also we are developing billing system so this is not a good idea to deploy another billing system in parallel. Any idea or link might help full. On Fri, Sep 24, 2010 at 9:30 PM, Tarek Sawah wrote: A quick answer? A2billing. It has what you call it differential billing.. but they call it progressive billing.. 3 steps .. for 3 different rates .. Go for it.. easy to setup and quick to learn and use. Regards From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Danny Nicholas Sent: Friday, September 24, 2010 4:19 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] differential billing From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Abdul Basit Sent: Friday, September 24, 2010 8:13 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] differential billing Hi All, How can we develop a differential charging setup using asterisk like for 1st min we charge 1 cent, for 2nd min we charge 0.5 cent, for next 30 sec charge @15cent, etc? Any idea, suggestion. -- Regards, Abdul Basit | +92 32 1416 4196 Since the CDR records the call duration in seconds, this should be a relative no-brainer, assuming you are billing post-call. If you are wanting to generate the charges during the live calls, AMI would be your best option for getting a running duration of the connection. -- Regards, Abdul Basit | +92 32 1416 4196 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users