Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] Dimensioning


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
asterisk.org at sedwar...
Guest





PostPosted: Thu Apr 17, 2014 4:41 pm    Post subject: [asterisk-users] Dimensioning Reply with quote

On Thu, 17 Apr 2014, Jerry Geis wrote:

Quote:
I was thinking transcoding was through PRI card - not gsm to ulaw. Smile

You can convert the GSM files to ULAW using sox. I tend to transcode
everything to WAV (PCM not that funky 'GSM in WAV') because it is
relatively cheap (CPU cycles) to transcode from WAV to ULAW and everything
else in the world understands WAV just fine. If you really need to squeeze
out every last cycle, you can schedule a script to transcode WAVs to ULAWs
as needed.

Quote:
So if all I am doing is originating calls, and using playback() in the
dialplan - then a system() call on completion I can expect upwards or
3000 concurrent calls?

Based on my unsubstantiated testing on my hosts, that seems like a
reasonable conclusion.

What do you do in the program executed by system()?

Quote:
How do you actually test to make sure without having 3000 users to call.

Crowdsourcing?

No, it's really pretty simple.

On the 'source' host, I have a call file:

# sample-call-file
channel:sip/test@target
application:playback
data:/tmp/total
# (end of sample-call-file)

And a shell script to create the call files:

# create-calls.sh
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
# (end of create-calls.sh)

Then, on the 'target' host I have a dialplan snippet:

[public]
exten = test,1, verbose(1,[${EXTEN}@${CONTEXT}])
exten = test,n, set(GROUP()=TEST)
exten = test,n, set(ROOM=0${GROUP_COUNT()})
exten = test,n, meetme(${ROOM:-2}, cd)
; exten = test,n, confbridge(${ROOM:-2})
exten = test,n, hangup()

Then, on the 'source' host, I can create calls with this command:

./create-calls.sh <number-of-calls-to-create>

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- 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
Back to top
jcolp at digium.com
Guest





PostPosted: Fri Apr 18, 2014 8:49 am    Post subject: [asterisk-users] Dimensioning Reply with quote

Steve Edwards wrote:
Quote:
On Thu, 17 Apr 2014, Jerry Geis wrote:

Quote:
I was thinking transcoding was through PRI card - not gsm to ulaw. Smile

You can convert the GSM files to ULAW using sox. I tend to transcode
everything to WAV (PCM not that funky 'GSM in WAV') because it is
relatively cheap (CPU cycles) to transcode from WAV to ULAW and
everything else in the world understands WAV just fine. If you really
need to squeeze out every last cycle, you can schedule a script to
transcode WAVs to ULAWs as needed.

Quote:
So if all I am doing is originating calls, and using playback() in the
dialplan - then a system() call on completion I can expect upwards or
3000 concurrent calls?

Based on my unsubstantiated testing on my hosts, that seems like a
reasonable conclusion.

I'll just chime in slightly here. At that number of calls you've got
many factors going on - and they aren't just Asterisk. If playing back
files you've got disk I/O going on which can slow stuff down (unless the
system caches it enough or you throw them into a ramdisk yourself). You
are also sending and receiving a *ton* of small packets. This can make
network equipment and NICs unhappy.

Cheers,

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk 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