dslreports logo
Search similar:


uniqs
29272
voip_wire
join:2010-07-02

voip_wire to bhairya

Member

to bhairya

Re: [Asterisk] GV outgoing calls with Asterisk1.8

said by bhairya:

I've looked at their CPU a few times and I don't think the load is what's killing asterisk though I could be wrong.

Probably correct. Unless asterisk has to transcode, it is just switching packets in and out and the CPU consumption should be minimal. regarding swap space, if asterisk by itself uses more memory than the total available RAM, its function will get swapped as needed. I would think that it would affect the VOIP audio quality.

Just for reference, if you don't plan on using gtalk/jabber, here is a minimal module list:
[modules]
autoload=no
load => app_dial.so
load => app_macro.so
load => chan_sip.so
load => codec_gsm.so
load => codec_ulaw.so
load => format_gsm.so
load => format_pcm.so
load => format_wav.so
load => format_wav_gsm.so
load => func_callerid.so
load => func_logic.so
load => func_strings.so
load => func_timeout.so
load => pbx_config.so
load => res_rtp_asterisk.so
load => res_rtp_multicast.so
 
I think you can even omit multicast and gsm/wav modules.

The asus 500gp would be a good choice.
-m
bhairya
join:2010-07-27

bhairya

Member

Yup, the audio was being affected, choppy and lag at times. I think you can get away with fewer modules than that. I did set it up with GV so the jabber, gtalk modules were there. You touched upon an interesting question. What's the difference between the codec and format modules and which ones do you need? When would transcoding take place and how do you avoid it? Thanks.
twinclouds
join:2010-06-12
San Diego, CA

twinclouds to bhairya

Member

to bhairya
said by bhairya:

Can you explain how you setup asterisk on the WL520GU? I set it up for someone with optware on a usb flash drive but its not stable and keeps crashing so they had to go back to their other provider. Im assuming its because of memory rather than cpu. I didnt setup any swap. Could you tell me how you setup your flash disk, how much swap, etc, and which modules you have loaded? I want to get a stable asterisk setup with a minimum set of modules. Its been difficult to figure out which modules are essential and which arent without trial and error. Thanks.

I installed Openwrt (brcm47xx) with extroot that I compiled myself. Only 5 modules are needed as described by Mario in »supermario-world.blogspo ··· ice.html). I also used his conf files. The swap space I provided is 104M and only 156K are used. I never had any problem yet and the sound quality is very good. I also use the router as a wireless access point but nothing else.
bhairya
join:2010-07-27

bhairya

Member

Ahh ok. I use tomato on my RT-N16 routers and it works quite well for me. I'd probably use 32MB of swap on the WL520GU, twice the RAM. Do you know about the transcoding question I asked? Under what circumstances does asterisk transcode and how to prevent/minimize it? Also, what's the difference between the codec and format modules for the different codecs eg. gsm, G729? Thanks.
bhairya

bhairya to twinclouds

Member

to twinclouds
@twinclouds, where are the required modules? I only see a list of packages, not modules to be loaded in asterisk. I'm looking for the minimal set of modules needed to run asterisk with SIP and GV. Thanks.
twinclouds
join:2010-06-12
San Diego, CA

twinclouds

Member

Sorry, my mistake. I meant packages, not modules.
My latest Dockstar installation using the packages from the latest trunk Asterisk18 loaded the following modules:
res_jabber.so, res_musiconhold.so, codec_ulaw.so,
func_strings.so, app_dial.so, app_echo.so,
res_rtp_multicast.so, format_wav_gsm.so, codec_gsm.so, func_timeout.so, chan_gtalk.so, chan_sip.so, format_pcm.so, format_gsm.so, format_wav.so, app_playback.so, app_macro.so, func_logic.so, pbx_config.so, res_rtp_asterisk.so, func_callerid.so, func_db.so.
I don't know if these are the minimum set needed but at least not a very large set.
As for codecs, I heard G729 is quite resource demanding. gsm, ulaw and 711u are o.k, but I am not expert on this.
twinclouds

1 edit

twinclouds

Member

I checked out the latest trunk kirkwood openwrt and Asterisk18 packages for Dockstar. They works fine. The res-rpt-asterisk package is absorbed into the main package so only 4 packages (main, chan_gtalk, res_jabber, and func_musiconhold) are needed for gtalk to work. The odd thing is that I cannot make the trunk version of openwrt-kirkwood-uImage together with the rootfs.tar.gz (downloaded from: »downloads.openwrt.org/sn ··· irkwood/) work on Dockstar's extern USB drive. However, if I use my own compiled uImage (together with the downloaded rootfs.tar.gz) it works fine. I was told that the installation in internal flash is fine. Maybe there are something to do with the two stage dockstar boot process for internal flash. There are two uboot files (.bin and .kwb). For USB, neither is used (one is already in mtd0, I think).
mazilo
From Mazilo
Premium Member
join:2002-05-30
Lilburn, GA

mazilo to twinclouds

Premium Member

to twinclouds
said by twinclouds:

As for codecs, I heard G729 is quite resource demanding.

This is true, especially for an embedded system. However, I doubt Asterisk and/or FreeSWITCH comes with a real G729 CoDec source code. What they have is called a pass-through G729 CoDec.
voip_wire
join:2010-07-02

voip_wire to bhairya

Member

to bhairya
said by bhairya:

When would transcoding take place and how do you avoid it? Thanks.

Transcoding would occur whenever two legs of the call use a different codec. As a quick hace, if the service and user are US based, just set everything to ulaw.
-m
twinclouds
join:2010-06-12
San Diego, CA

twinclouds

Member

What about if I am calling a GSM phone user?
voip_wire
join:2010-07-02

voip_wire

Member

said by twinclouds:

What about if I am calling a GSM phone user?

Do you mean someone on a regular cell phone? if your VOIP provider supports ulaw, transcoding will take place somewhere in the audio path, but not at your asterisk box.

I assume there is no FXO/FXS involved and that clients to your asterisk box are connecting over a decent network (wired or wifi).

People more familiar with PSTN and mobile networks may have a better answer.
-m
twinclouds
join:2010-06-12
San Diego, CA

twinclouds

Member

Thanks. This answers my questions.
bhairya
join:2010-07-27

bhairya to voip_wire

Member

to voip_wire
Ok, so which format and codec modules are really required. I was reading the asterisk wiki that the format modules are required to convert between codecs and also between storage and sending over the network. I'd like to know which ones are really required so I can unload the rest.
voip_wire
join:2010-07-02

1 edit

voip_wire

Member

said by bhairya:

Ok, so which format and codec modules are really required.

It depends on what you are trying to do. If you don't need IVR, voicemail etc, just load ulaw and don't load pcm, gsm etc. A popular GV bridging setup is to sent dtmf 1 when the callee answers. I am not sure if either of them is necessary for that. You can always experiment, and share your experience here for the benefit of others

My preference would be to upgrade/replace the router with a more capable model. If you are interested, newegg has the RT-N16 on sale for $75 and a the buffalo WHR-HP-G300N for $40. These prices are after a coupon code.

-m
Edit: Add info on newegg sale
bhairya
join:2010-07-27

bhairya

Member

Well, for the WL520GU, just a basic setup will suffice. A few SIP trunks and GV enabled. Don't need voicemail or any other fancy stuff. Some of the other modules are easy to understand. I'm just not so sure about the format and codec modules. I mean I kind of understand what they're for but I don't know which ones are needed for a basic system. Eg. if I get a call from a call phone or call a cell phone, do I need the gsm codec and/or format module installed? If I have ulaw codec, do I also need ulaw format, etc? Thanks.
twinclouds
join:2010-06-12
San Diego, CA

twinclouds to davidnewt

Member

to davidnewt
I have successfully assembled .deb file for Dockstar with Debian (Squeeze) installed. Once you have the .deb file, the installation process takes about 2 minutes. The process is described in »forums.plugpbx.org/index ··· 6.0.html. I think the process needs even less effort then opkg or ipkg for Openwrt and optware.
deskjockey
join:2005-04-17
Charlotte, NC

deskjockey

Member

I installed openwrt backfire 10.03 on a WL-500GP V2 router. Openwrt opens via Vista computer with EI8 browser using id root and password I created in openwrt.

Using my openwrt password in PUTTY, it responds, “access denied”. Disabling the firewall doesn’t help. I suspect the problem is that I re-generated the key by accident when sitting up the config. and now I’m out of synch with how the computer is recognized.

I also just built a linux computer so maybe I can access it somehow from there although I don’t know much about linux.

Appreciate any guidance. Please make it as basic and with any how to as possible because this is all new to me. Twinclouds has gotten me this far.

Thanks
deskjockey
twinclouds
join:2010-06-12
San Diego, CA

twinclouds

Member

Have you tried telnet first before do SSH. I think once you telnet in and changed the root password, it should work. If not, maybe others can help.
deskjockey
join:2005-04-17
Charlotte, NC

deskjockey

Member

Twinclouds,

Thanks, hoped you'd see this.

The telnet PUTTY page gives me this

"root@OpenWrt:/#"

I put in ( root ) my openwrt id and got

/bin/ash: root: not found

Then I tried my openwrt password instead and got

/bin/ahs: my passwored: not found

I'm assuming that when I eventually get in that I change my openwrt password. Should it be the same as my putty 30 digit putty key?
twinclouds
join:2010-06-12
San Diego, CA

twinclouds

Member

You don't need to do anything complicated. Looks like you already get into Openwrt through telnet. Once you are there (at the "root@OpenWrt:/#" prompt) just type passwd and set the root password. Then you can ssh into it as root and use the newly set password to log in. You can do what ever you need to do from there.
Good luck!
mazilo
From Mazilo
Premium Member
join:2002-05-30
Lilburn, GA

mazilo to deskjockey

Premium Member

to deskjockey
said by deskjockey:

The telnet PUTTY page gives me this

"root@OpenWrt:/#"

That is a shell prompt that means you had logged into your OpenWRT router through a telnet session without a password as root. You can change root account, all you need is to type in passwd and hit ENTER key. It will prompt you to enter a new root password with confirmation.
deskjockey
join:2005-04-17
Charlotte, NC

deskjockey to davidnewt

Member

to davidnewt
Mazilo & Twinclouds,

Mazilo, my idol of cheap, you convinced me last year to buy a Dockstar which I haven't done anything with yet. Twinclouds finally got me motivated to attack this project, he owning the three devices I have and successfully getting GV going on wl-500GP.

Anyway guys, your advice above did it and I'm in. Now how to download Asterisk? I tried this on the comment line, src/gz asterisk1.8 »www.arctangent.net/~supe ··· brcm-2.4 and got that it couldn't be found.


brg
Premium Member
join:2001-01-03
Chicago, IL

1 edit

brg

Premium Member

said by deskjockey:

Mazilo & Twinclouds,

Mazilo, my idol of cheap, you convinced me last year to buy a Dockstar which I haven't done anything with yet. Twinclouds finally got me motivated to attack this project, he owning the three devices I have and successfully getting GV going on wl-500GP.

Anyway guys, your advice above did it and I'm in. Now how to download Asterisk? I tried this on the comment line, src/gz asterisk1.8 »www.arctangent.net/~supe ··· brcm-2.4 and got that it couldn't be found.

Hey, deskjocky: I've got two Dockstars, one still sealed in the box, one running 24/7 with Debian Squeeze/Asterisk 1.8.2.3/FreePBX 2.8.1.4 without any glitches whatsoever. It was quite a learning curve for me, as I had no Linux experience whatsoever except for some previous turnkey PBXIAF installs to letfover Intel boxes. I would be hard-pressed to now replicate the steps I used to get the Dockstar running. I regularly back up my USB thumbdrive. I need to figure out some way to backup the memory of the Dockstar -- haven't gone down that path yet. Then I need to figure out how to update Asterisk, FreePBX, and even Debian on this thing. Not nearly as easy as running scripts found on NerdVittles.

My recommendation is to read, re-read and re-re-read all the posts in the Doozan forum (»forum.doozan.com/list.php?2); that's how I got up-and-running.

[Edit]: "Nevermind." I see that you are already on the Doozan site.
deskjockey
join:2005-04-17
Charlotte, NC

deskjockey

Member

I have no linux, no dd-wrt, and no asterisk experience, so I have you beat I suspect. Anyway, I spent last week on that site and they suggested I come to this site. So I'll do both throughout this week. Mazilo gave an Asterisk manual link that I downloaded in the past and last week I finally started reading it and got through 72 pages so far. I was following Twinclouds on both these sites seeing that he has the same 3 hardware items I have and has gotten this operating on all of them at one time or another. I had been petrified for years to even start down the Asterisk road but with the success of folks using 1.8 I couldn't hold back any longer.
twinclouds
join:2010-06-12
San Diego, CA

twinclouds

Member

deskjockey:
Any of the choices, i.e., 500gp, 520gu and Dockstar will work. However, these are not turnkey systems so some non-trivial work will be needed. You will have to spend time into this but you will also be rewarded by gaining useful knowledge.
As for 500gp, you should not put "src/gz asterisk1.8 ..." in command line. What need to be done is follow what Mario said. You should edit "/etc/opkg.conf" and add the line 'src/gz asterisk1.8 .../openwrt/brcm-2.4/' to it. (In your case, you will need to replace "ar71xx" in his original posting by "brcm-2.4/".) After that do:
"opkg update" and then "opkg install asterisk18 asterisk18-func-db asterisk18-res-musiconhold asterisk18-chan-gtalk" (asterisk18-res-rtp-asterisk is no longer needed) on the command line.
Moreover, you will need to edit the conf files to put your gtalk credentials in.
To be honest, no one can guide you through every step on the way. It looks to me that you are quite trigger happy but read carefully of what available on the web are really very important. You should know what you are doing.
If you use Dockstar, follow my how-To and others' comments will be probably a little bit easier. However, you still need to first set up the Debian right. Like I said, these are hackers' systems will not work unless you really understand what you are doing.
deskjockey
join:2005-04-17
Charlotte, NC

deskjockey

Member

Twinclouds,

If I understand I type in putty the following assuming openwrt has vi capability;

vi /etc/opkg.conf

that file opens up so that I can edit it. I then add to the bottom of the file the following;

src/gz asterisk1.8 »www.arctangent.net/~superm1/openwrt/brcm-2.4

I then hit escape and wq
twinclouds
join:2010-06-12
San Diego, CA

twinclouds

Member

Yes. This should work.
Good luck.
mazilo
From Mazilo
Premium Member
join:2002-05-30
Lilburn, GA

mazilo to deskjockey

Premium Member

to deskjockey
said by deskjockey:

Mazilo, my idol of cheap, you convinced me last year to buy a Dockstar which I haven't done anything with yet.

Now, it is almost impossible to get an inexpensive Seagate DockStar any more. But, now one can get this inexpensive Hitachi SimpleNET NAS Head USB 2.0 Portable Dongle - SNET for $18.99. This device isn't as powerful as a Seagate DockStar and is currently not supported by any open-source OS community, i.e. OpenWRT, etc., yet. With its price more affordable, hopefully more and more people (hackers) will get involved to support this device in the near future.

Anyway guys, your advice above did it and I'm in. Now how to download Asterisk? I tried this on the comment line, src/gz asterisk1.8 »www.arctangent.net/~supe ··· brcm-2.4 and got that it couldn't be found.

If your device is running on an OpenWRT firmware, your best change is to use opkg to install Asterisk18 packages. I haven't never done this; however, I believe you don't even need to download the Asterisk18 packages and opkg will automatically do it for you if you use it to install the Asterisk18 packages.
mazilo

mazilo to deskjockey

Premium Member

to deskjockey
said by deskjockey:

I have no linux, no dd-wrt, and no asterisk experience, so I have you beat I suspect.

Perhaps, it is time to get a Linux machine and start to learn Linux.

Mazilo gave an Asterisk manual link that I downloaded in the past and last week I finally started reading it and got through 72 pages so far.

If you perusal the manual, I believe you will learn on how to manually and efficiently configure your Asterisk PBX System using the built-in macros and inheritance capabilities, instead of depending on some nice GUI.

I had been petrified for years to even start down the Asterisk road but with the success of folks using 1.8 I couldn't hold back any longer.

You just sounded like me before I decided to start perusing the Asterisk: The Future of Telephony 2nd Edition e-book. Before you know it, you will be one of an Asterisk PBX System expert here. Good luck.
mazilo

mazilo to twinclouds

Premium Member

to twinclouds
said by twinclouds:

deskjockey:
Any of the choices, i.e., 500gp, 520gu and Dockstar will work. However, these are not turnkey systems so some non-trivial work will be needed. You will have to spend time into this but you will also be rewarded by gaining useful knowledge.

Exactly.

To be honest, no one can guide you through every step on the way.

Exactly.