Steve, would you be willing to share that "quick bash script"? James Cass <http://goog_987864563> jcass78 at gmail.com On Wed, Aug 19, 2015 at 12:11 PM, Steve Edwards <asterisk.org at sedwards.com> wrote:> On Wed, 19 Aug 2015, Dominique Haeber wrote: > > Hi Barry Flanagan, >> >> Barry Flanagan <barryf-lists at flanagan.ie> schrieb am Mit, 19. Aug 11:06: >> >>> SIPP is probably what you seek. http://sipp.sourceforge.net/ >>> >>> Hope this helps. >>> >> >> That looks pretty like what I'm looking for! Many thanks! >> > > Another approach is to use another Asterisk system. > > Recently, a customer wanted to confirm his platform would support 500 > simultaneous calls. > > I wrote a quick bash script to dump 500 call files (at a leisurely pace) > into another host that originated calls to the target host. > > -- > Thanks in advance, > ------------------------------------------------------------------------- > Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST > > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150819/63039880/attachment.html>
Please don't top post. On Wed, 19 Aug 2015, James Cass wrote:> Steve, would you be willing to share that "quick bash script"?There's no magic in the script, but here it is, embarrassing myself: cp sample-call-file /tmp/ chmod +x /tmp/sample-call-file for I in $(seq 1 $1) do sudo -u asterisk\ cp /tmp/sample-call-file\ /var/spool/asterisk/outgoing/${RANDOM} done sleep 10 Here's what's wrong with this snippet: 1) I don't know why I chmod the 'template.' No idea whatsoever. Alcohol may have been involved. 2) I hate single character variable names. I love alcohol. 3) cp is ill advised. For a testing script, it was easy. For a production application, use mv. In use, I would execute it specifying how many call files to create, like 50. Then, take a look at top, iftop, and vmstat. Lather, rinse, repeat to get to your goal. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Am 19.08.2015 um 19:07 schrieb Steve Edwards:> Please don't top post. > > On Wed, 19 Aug 2015, James Cass wrote: > >> Steve, would you be willing to share that "quick bash script"? > > There's no magic in the script, but here it is, embarrassing myself: > > cp sample-call-file /tmp/ > chmod +x /tmp/sample-call-file > for I in $(seq 1 $1) > do > sudo -u asterisk\ > cp /tmp/sample-call-file\ > /var/spool/asterisk/outgoing/${RANDOM} > done > sleep 10 > > Here's what's wrong with this snippet: > > 1) I don't know why I chmod the 'template.' No idea whatsoever. > Alcohol may have been involved. > > 2) I hate single character variable names. I love alcohol. > > 3) cp is ill advised. For a testing script, it was easy. For a > production application, use mv. > > In use, I would execute it specifying how many call files to create, > like 50. Then, take a look at top, iftop, and vmstat. Lather, rinse, > repeat to get to your goal. >We started the 500 calls and used milliwatt app on the first and record on the second host to check the quality. Alternatively just start 500+ calls and call yourself on top. So you can get a good idea how the quality is. Call-Files are explained on http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out Markus