OpenWrt Forum Archive

Topic: asterisk 1.2.12.1 white russian backport

The content of this topic has been archived on 10 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

Using buildroot-ng I cross-compiled the most recent asterisk version 1.2.12.1 for white russian and it seems to run OK on my openwrt box so far. Packages are up at (temporary link):
  http://zandbelt.dyndns.org/asterisk_1.2 … mipsel.ipk
  http://zandbelt.dyndns.org/asterisk-sou … mipsel.ipk
  http://zandbelt.dyndns.org/asterisk-voi … mipsel.ipk
  http://zandbelt.dyndns.org/asterisk-cha … mipsel.ipk

If people can confirm that this stuff works for them too I can assemble a patch set for submission to the codebase (and/or put the binary packages in a suitable ipkg repository).

Regards,

Hans.

PS: I did not test chan-bluetooth yet

It is working on my OpenWRT WhiteRusssion RC5. But I haven't tested all the features yet, at least sounds,voice mail is working well.
Thanks for good work.

Could you please make an iLBC codec support package also? asterisk-1.0.10-1 segfaults with that.

Asterisk works fine, but segfaults with iLBC enabled. :\

Hi
I'am interested to testing asterisk with your's ipkgs. Please tell me something about memory occupation (flash and ram) after install (I have to buy OpenWrt platform first, ? wl-500gp).
I suppose that results will be like test provided with AstLinux and the Soekris net4801 (http://www.enicomms.com/asterisk-testing) becouse of the same CPU speed (? diff. mem.).

ASUS  wl-500gp: CPU speed 266MHz, RAM 32 MB, FLASH 8MB
Soekris net4801-60: CPU 266 Mhz, 32-256 Mbyte SDRAM, FLASH 8MB to 4 Gbyte Microdrive

I like AstLinux but I suppose for AstLinux on on wl-500gp (without OpenWrt functionality) I must make RAM upgrade, and USB install.
(With AstLinux for all vm, configs and logs is saved separetly for flash lifecycle preserve, GUI +...)

Question: Is possible in voicemail and sounds ipk-s (after changing extension to  .ipk.tar.gz) to simple replace sound files (is any kind of CRC check in .ipk)

Thanks

(Last edited by sm4u on 21 Sep 2006, 21:01)

what about AGI ?

Thanks for porting Asterisk 1.2.12.1 !

Hi Hans,

Have you published your patches already? Can I download them from
somewhere?
I'm interested about the asterisk-pgsql Postgres support module and also
would like to try to port the fax supporting modules (app_rxfax and
app_txfax and app_nv_faxdetect) as well.

Best regards,

Jeno

Hi,

Several people have been asking questions about the asterisk 1.2.* backport for OpenWRT Whiterussian; I've tried to address them all in a single action ;-) provided here:

  http://zandbelt.dyndns.org/asterisk.html

features:
- upgrade to the latest Asterisk release: 1.2.13
- a patch (almost 500kb) for building it yourself from the OpenWRT Whiterussian source tree
- chan_bluetooth (thus including bluez-libs stuff)
- postgres-sql module
- res_agi and res_crypto (amongst others)

but:
- I haven't tested this upgrade myself yet
- my guess is that the ilbc codec still crashes
- the source patch leaves you with some 0 byte files because of SVN behaviour

Let me know if this works for you,

Hans.

sm4u wrote:

Please tell me something about memory occupation (flash and ram) after install (I have to buy OpenWrt platform first, ? wl-500gp)

Here's what I've got left on a WL500g Deluxe after installing RC6 'micro'; asterisk-mini and its dependencies (libpthread, libncurses, libopenssl); the meetme/ztdummy modules plus kmod-usb-core; and ntpclient.

root@OpenWrt:~# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                  832       832         0 100% /rom
none                     15252       284     14968   2% /tmp
/dev/mtdblock/4           2432      2128       304  88% /jffs
/jffs                      832       832         0 100% /

Also, I had to extract app_dial.so from the full asterisk package and manually copy it in, since asterisk-mini is missing this module. I'm not sure that Asterisk is particularly useful without it smile

So it's pretty tight, but the WL500g Deluxe has only 4MB flash, whereas the Premium you're considering has 8MB; that should give you plenty of room.

I could save some space by using the imagebuilder to make my own squashfs filesystem containing Asterisk as well.

I suppose that results will be like test provided with AstLinux and the Soekris net4801 (http://www.enicomms.com/asterisk-testing) becouse of the same CPU speed (? diff. mem.).

That's not a straightforward comparison, since one is MIPS and the other is Intel-compatible.

I've not any performance testing so far, other than confirming I can pass 4 concurrent calls through the box. For me, I'm worried less about SIP processing than RTP handling, since I'm stuffing RTP packets into IAX2 and vice versa - one of the benefits of going with the Asus is that its USB interface can be used as a timing source by Asterisk.

However, if you're able to use canreinvite=yes so that the media doesn't hit Asterisk, and you're not doing any conferencing, you shouldn't have to worry about that.

B.

Hi !
First thank's to zandbelt for Asterisk packages.
Second thank's to candlerb for reply.
Third: My experience
I have plety instaled packages, and running Asterisk

root@OpenWrt:~$ asterisk
Asterisk already running on /var/run/asterisk.ctl.  Use 'asterisk -r' to connect.
root@OpenWrt:~$ free
                  total         used         free       shared      buffers
Mem:        30504        17404        13100            0          964
Swap:            0            0            0
Total:        30504        17404        13100
root@OpenWrt:~$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
none                     15252        84     15168   1% /tmp
/dev/mtdblock/4           6080      4204      1876  69% /jffs
/jffs                     1280      1280         0 100% /
root@OpenWrt:~$

more details on my reply to Gazzo2 (http://forum.openwrt.org/viewtopic.php?id=8429)

In meanwhile I accepted some knowledge about Linux, and changed etc/hotplug.d/usb/10-mount script.
Now I have not problem with USB MSDs (every time in any situation MSDs is mounted) and have plenty of room for aditional packages and swap. All is tested. (http://forum.openwrt.org/viewtopic.php?id=8504)

And finaly I spent many hours to find image with new busybox becouse in my case my VoIP provider expect from me specific HW to connect to network (dhcp server not respond to requests if option field WendorClass Specific is not filed with data of known devices (Cisco and Mediatrix)). I changed script to start dhcp client with appropriate field and now dhcp server respond to me. In busybox dhcp client send requests with 590 bytes in size and that is not correct (compare this with reqests from Your PC). In DD-Wrt this is patched.

...._(8)-x
sm4u

sm4u wrote:

Hroot@OpenWrt:~$ asterisk
Asterisk already running on /var/run/asterisk.ctl.  Use 'asterisk -r' to connect.
root@OpenWrt:~$

Are you reporting this as a problem? Like it says, typing "asterisk -r" will give you a console on your already-running asterisk daemon. (I tend to use "asterisk -rvvvv" to get some more verbose logging)

In busybox dhcp client send requests with 590 bytes in size and that is not correct (compare this with reqests from Your PC). In DD-Wrt this is patched.

If you want to report this as a bug, then I suggest you show the actual dhcp request which you think is bad. e.g. "tcpdump -i eth0 -n -s1500 -X udp port 67 or udp port 68", and paste it into the bug tracker.

Comparison with a PC isn't really relevant, since the two probably request different options, but your sample packet can be checked for compliance against the RFCs. RFC 2131 does say that DHCP packets should not exceed 576 bytes, unless the client negotiates the option to use larger ones.

Brian.

Hi candlerb (Brain)!
1. I didn't reporing problem. I'am started Asterisk before this command and all is ok, but this piece is extracted from context with intention to show to Gazzo2 that Asterisk is running, and what is RAM utilization in this case. Sory for mistake I produced.

2. logs from Ethereal:

dhcp request from busybox udhcpc :

Frame 196 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: 10.252.4.101 (00:17:31:ed:d9:9a), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
....
    Option 60: Vendor class identifier = "udhcp 0.9.9-pre"

dhcp request from IBM laptop WIN XP:

Frame 57 (353 bytes on wire, 353 bytes captured)
Ethernet II, Src: 10.252.4.100 (00:0b:cd:6e:49:de), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 10.252.4.100 (10.252.4.100), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
....
    Option 60: Vendor class identifier = "MSFT 5.0"

dhcp request from Mediatrix 1104 gateway:

Frame 61 (347 bytes on wire, 347 bytes captured)
Ethernet II, Src: 10.252.4.102 (00:90:f8:02:5b:f8), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Bootstrap Protocol
    Message type: Boot Request (1)
....
    Option 60: Vendor class identifier = "Mediatrix 1104                              "

and number of options from busybox is less then from other two. Busybox dhcpc filled request all with blanks compared with Mediatrix and XP wich not sent this blanks.
This is covered by another posts as You know: http://forum.bsr-clan.de/ftopic8253.html

Ok this is not bug. If you count size 576 Bytes (icluding udp and ip) + 14 bytes for ethernet layer = 590 Bytes captured, but about 250 Bytes is all zero and wasting space.
And finaly I have not problem with this size. I get response from Cisco ruters from my VoIP operater in the case of 590(576) Bytes long requests.
Thanks for confirmation of 4 sucessfull calls.
And now I'am wasting space in this zandbelt topic. Sory zandbelt.
Let me make some corect thing.
Please test my script sent in topic http://forum.openwrt.org/viewtopic.php?id=8504

The discussion might have continued from here.