Home Forum Developers General discussions Is porting Asterisk + modules a lot of work?

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

It appears that running the command manually works OK, so it could be some setting in the build process (missing shopt -s globstar?):

Code:


/#  /usr/src/switchfin/toolchain/opt/uClinux/bfin-linux-uclibc/bin/bfin-linux-uclibc-strip --strip-unneeded /usr/src/switchfin/build_ip01/root/usr/lib/libyate*.so* /usr/src/switchfin/build_ip01/root/usr/lib/yate/{,**/}*.yate
/#
/# file /usr/src/switchfin/build_ip01/root/usr/lib/libyate.so
/usr/src/switchfin/build_ip01/root/usr/lib/libyate.so: ELF 32-bit LSB shared object, Analog Devices Blackfin, version 1 (SYSV), dynamically linked, stripped


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Strange, maybe it is building for you now. It didn't look like it before. My own shell is zsh but make uses the system shell, which is sh in my case as it most likely is in yours so I don't think that matters. Maybe the bash version makes a difference? I have 4.2. Try replacing the ** with just * because the directories currently only go one level deep anyway. Let me know if that works. It does for me.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Thanks for the tip, but still no go :-/

This is from a fresh Ubuntu install (thanks CloneZilla):

Code:


# echo $SHELL
/bin/bash

# bash --version
GNU bash, version 4.2.8(1)-release (i686-pc-linux-gnu)

cd /usr/src

svn co https://switchfin.svn.sourceforge.net/svnroot/switchfin/switchfin/trunk/ switchfin

cd switchfin

vi package/yate/yate.mk : replaced ** with *:

$(TARGET_STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libyate*.so* $(TARGET_DIR)/usr/lib/yate/{,**/}*.yate

$(TARGET_STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libyate*.so* $(TARGET_DIR)/usr/lib/yate/{,*/}*.yate

make menuconfig: Checked "Yate"

make
...
/usr/src/switchfin/toolchain/opt/uClinux/bfin-linux-uclibc/bin/bfin-linux-uclibc-strip: '/usr/src/switchfin/build_ip01/root/usr/lib/yate/{,*/}*.yate': No such file

If anyone can think of a work-around...


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

How infuriating! big_smile Could you give the output of "find /usr/src/switchfin/build_ip01/root/usr/lib/yate".


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

http://pastebin.com/5HM61sS6

I'm not familiar with the "{,*/}*.yate" thingie, but was told it's kosher albeit context-dependent (shell).

My current build host is an up-to-date Ubuntu 11.04: Which distro are you running, in which release?


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

That output looks okay. I'm on Gentoo, which means no particular release. I take it if you do...

Code:

ls /usr/src/switchfin/build_ip01/root/usr/lib/yate/{,*/}*.yate

Then you get the same error? The shortcut expands to this, which you can also try.

Code:

ls /usr/src/switchfin/build_ip01/root/usr/lib/yate/*.yate /usr/src/switchfin/build_ip01/root/usr/lib/yate/*/*.yate


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Nope, it works fine:

http://pastebin.com/JFNitgST


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Huh. So it only screws up in make. This keeps getting weirder. You could try the expanded version there. Otherwise I'm out of ideas for now.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

What do you mean by "You could try the expanded version there"?


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

I mean you could modify the makefile like this.

Code:

$(TARGET_STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libyate*.so* $(TARGET_DIR)/usr/lib/yate/*.yate $(TARGET_DIR)/usr/lib/yate/*/*.yate


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Still no go:

http://pastebin.com/3bnGeP3t

Just to check, here's the edited yate.mk:

Code:


yate: $(YATE_DIR)/.configured
        $(MAKE) -C $(YATE_DIR)/
        $(MAKE) -C $(YATE_DIR)/modules/ install DESTDIR=$(TARGET_DIR)
        $(MAKE) -C $(YATE_DIR)/share/data/ install DESTDIR=$(TARGET_DIR)
        $(MAKE) -C $(YATE_DIR)/share/scripts/ install DESTDIR=$(TARGET_DIR)
        $(MAKE) -C $(YATE_DIR)/share/sounds/ install DESTDIR=$(TARGET_DIR)
        cp $(YATE_DIR)/libyate*.so* $(TARGET_DIR)/usr/lib/
        $(TARGET_STRIP) --strip-unneeded -o $(TARGET_DIR)/usr/bin/yate $(YATE_DIR)/yate
        #$(TARGET_STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libyate*.so* $(TARGET_DIR)/usr/lib/yate/{,**/}*.yate
        #$(TARGET_STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libyate*.so* $(TARGET_DIR)/usr/lib/yate/{,*/}*.yate
        $(TARGET_STRIP) --strip-unneeded $(TARGET_DIR)/usr/lib/libyate*.so* $(TARGET_DIR)/usr/lib/yate/*.yate $(TARGET_DIR)/usr/lib/yate/*/*.yate


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

That actually worked. The failure happened later for a totally different reason. Your image ran out of space or something?


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

No, the HD is only 42% full. The compiling just stopped at the "/usr/src/switchfin/build_ip01/root/usr/lib/yate/*/*.yate" line with no error message.

I found it odd, but still proceeded with "make image" just in case, but as expected, it wasn't through compiling.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

That line is the last step. If there was no error then it worked. I don't fully understand the "no free space" error but I didn't mean your disk is out of space. It certainly has nothing to do with Yate, except perhaps that including it has caused you to go over some limit. Try enabling the "Cull unused ELF shared libraries" build option in menuconfig if you haven't already. This saves a lot of space.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

I already had that a long time ago. The cause is apparently that the uImage is too big, and we must remove some files from the root filesystem.

I don't know if that limit is due to the Atcom's limited amount of RAM/NAND or if it's set in a configuration file somewhere.

I'll just remove some apps in "make menuconfig" and give it another try.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Like I said, the "Cull unused ELF shared libraries" option makes a big difference so try that first. I don't think it's a hardware limit but there might be some artificial limit in the code and you also have to ensure the NAND is partitioned appropriately. The first box I received only supported images up to 8MB and I had to repartition it to go beyond that. This is another area I plan on making big changes to but not today, I'm afraid.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Problem solved: Indeed, I had to remove some apps so "make image" could work.

As to why the yate.mk works on CentOS but no Ubuntu, I guess it's not a minor issue since this change is now part of Switchfin.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Who said anything about CentOS? But I've figured it out anyway. I had forgotten that Ubuntu's /bin/sh actually points to Dash rather than Bash. I better be careful not to use Bashisms in makefiles in future. Now fixed in trunk. Thanks for your persistence in tracking this down.

Ironically, Yate 4 was finally released a few hours ago so I'll have to update the package again soon!


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Sorry, I meant "Gentoo", not CentOS.

I'll re-add the apps I removed, enable the "Cull unused ELF shared libraries" option, and try again.

Once it's working, I'll just copy the binaries on the BAPS setup I currently have and learn how to configure Yate before going ahead and reflashing the NAND with Switchfin.

BTW, do you know if it's possible to run a new Switchfin image entirely in RAM and prevent it from touching the NAND? I like BAPS better because it takes less room in the NAND and doesn't use RAM for the root fs.


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

You can boot with an image in RAM but it will still use /persistent from the NAND. That's not so bad though and may even be what you want. Just fire up U-Boot and transfer the image over TFTP. It will usually boot automatically.


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Thanks for the tip. Do you know what Switchfin puts in /persistent, how much space it takes? It's not so much space taken in the NAND that bother me, rather that it uses RAM to hold the root filesystem while BAPS uses the NAND for that. The Atcom only has 64MB of RAM, which doesn't leave much after Asterisk + root fs are loaded.

After enabling the "Cull unused ELF shared libraries" build option in menuconfig and re-adding Asterisk, "make image" fails again. No biggie, though, since we won't be needing Asterisk and Yate in the same image.

About Yate: Did you have the time to check how to test it, at least to connect two SIP clients? Also, do you know if it requires Zaptel or Dahdi to work with the FXO module?


Administrator has disabled public posting
Chewi
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

The /persistent partition is 236MB but the default setup barely uses 1MB of that. I've talked about the waste of RAM in the other thread, which I know you've seen.

Strange that you didn't manage to squeeze it in, I thought I included both Asterisk and Yate in my image. Couldn't swear to it though. Maybe the limit is different for IP01?

I haven't tested it at all. Apart from helping you out, I haven't touched this stuff August and I'm not sure when I'll get to look at it next. Haven't had the best of luck lately. sad


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

No problem. You already helped a lot by porting Yate to the Atcom.


Administrator has disabled public posting
admin
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Hi Guys,

Sorry I am am not very active recently.
Having plenty of other things to do last months.

You can increase the reserved space for rootfs modifying
/package/uClinux-dist/vendors/SwitchVoice/vendor.mak 
just change the assignment for the EXT2_BLOCKS variable.
This file is copied in the build directory so you better change it there before
"make image"

Do you already have some test results with Yate?

Cheers
Dimitar


Administrator has disabled public posting
Gilles
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Thanks for the info.

No, I haven't started playing with Yate yet.


Administrator has disabled public posting
Henning
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Hello,

due to some usb-probs I had to change to a newer Kernel (3.2.0) and to a newer uClinux Distribution (20011R1-RC3). Switchfin (Asterisk 1.4) compiles successfully, but I had to delete the dahdi part and -ltimezone. For me that's fine, because I want only to use G711 and speex and the hardware has no analogue port (only ethernet).

So, can I just exclude dahdi and -ltonezone or am I missing something??

asterisk.mk

 Spoiler Show Spoiler / Hide Spoiler
 
#######################################################################
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# The Free Software Foundation; version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# Copyright @ 2008 Astfin <mark@astfin.org>
# Primary Authors: mark@astfin.org, pawel@astfin.org, Diego Searfin
# Primary Authors: David@rowetel.com, Jeff Knighton
# Dimitar Penev: 3.Dec. 2009  Upgrade to Asterisk 1.4.28 and DAHDI
# Dimitar Penev: 18.Apr. 2010  Asterisk 1.6 support is added. (Some work
# taken from BAPS, thank you David!)
#
# Copyright @ 2010 SwitchFin <dpn@switchfin.org>
#######################################################################

##########################################
# Asterisk package for Astfin.org
##########################################

ifeq ($(strip $(SF_ASTERISK_1_4)),y)
    ASTERISK_VERSION=1.4.42
    ASTERISK_SERIES=1.4
    ATTRAFAX_DIR=$(BUILD_DIR)/attrafax-0.9
else
    ifeq ($(strip $(SF_ASTERISK_1_6)),y)
        ASTERISK_VERSION=1.6.2.20
        ASTERISK_SERIES=1.6
        ATTRAFAX_DIR=$(BUILD_DIR)/asterisk-$(ASTERISK_VERSION)
    else
        ASTERISK_VERSION=1.8.7.1
        ASTERISK_SERIES=1.8
        ATTRAFAX_DIR=$(BUILD_DIR)/asterisk-$(ASTERISK_VERSION)
    endif
endif

ASTERISK_NAME=asterisk-$(ASTERISK_VERSION)
ASTERISK_DIR=$(BUILD_DIR)/$(ASTERISK_NAME)
ASTERISK_DIR_LINK=$(BUILD_DIR)/asterisk
ASTERISK_SOURCE=$(ASTERISK_NAME).tar.gz
ASTERISK_SITE=http://downloads.asterisk.org/pub/telephony/asterisk/releases
ASTERISK_UNZIP=zcat

APP_FAX_SITE=https://agx-ast-addons.svn.sourceforge.net/svnroot/agx-ast-addons/trunk
APP_FAX_REV=69

ASTERISK_CFLAGS=-g -mfdpic -mfast-fp -ffast-math -D__FIXED_PT__ -D__BLACKFIN__
ASTERISK_CFLAGS+= -I$(STAGING_INC) -fno-jump-tables
ASTERISK_LDFLAGS=-mfdpic -L$(STAGING_LIB) -lpthread -ldl -lsqlite3 -lspeexdsp
ASTERISK_DEP=sqlite3 $(if $(filter $(SF_PR1_APPLIANCE),y), libpri) $(if $(filter $(SF_PACKAGE_LUA),y), _lua)
ASTERISK_CONFIGURE_OPTS= --host=bfin-linux-uclibc --disable-largefile --without-pwlib --without-sdl
ASTERISK_CONFIGURE_OPTS+= --without-libcurl --with-ssl --with-crypto --disable-xmldoc

ifeq ($(strip $(SF_PACKAGE_IKSEMEL)),y)
ASTERISK_CONFIGURE_OPTS+= --with-iksemel=$(TARGET_DIR)/usr
endif

ifeq ($(filter $(SF_SPANDSP_FAX) $(SF_SPANDSP_CALLERID),y),y)
ASTERISK_CFLAGS+= $(if $(filter $(SF_SPANDSP_CALLERID),y), -DUSE_SPANDSP_CALLERID)
ASTERISK_LDFLAGS+= -lspandsp -ltiff
ASTERISK_DEP+= spandsp
endif

ifeq ($(strip $(SF_PACKAGE_UW-IMAP)),y)
ASTERISK_DEP+= uw-imap
ASTERISK_CONFIGURE_OPTS+= --with-imap=$(BUILD_DIR)/imap-2007e
endif

$(DL_DIR)/$(ASTERISK_SOURCE):
    $(WGET) -P $(DL_DIR) $(ASTERISK_SITE)/$(ASTERISK_SOURCE)

$(ASTERISK_DIR)/.unpacked: $(DL_DIR)/$(ASTERISK_SOURCE)
    $(ASTERISK_UNZIP) $(DL_DIR)/$(ASTERISK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
    ln -sf $(ASTERISK_DIR) $(ASTERISK_DIR_LINK)
ifeq ($(strip $(SF_ASTERISK_1_4)),y)
ifeq ($(strip $(SF_PACKAGE_OPENR2)),y)
    $(PATCH_KERNEL) $(ASTERISK_DIR_LINK) package/OpenR2/ openr2-asterisk-1.4.42-p1.patch
endif
endif
    $(PATCH_KERNEL) $(ASTERISK_DIR_LINK) package/asterisk asterisk-$(ASTERISK_SERIES).patch
ifeq ($(strip $(SF_PACKAGE_ASTERISK_G729)),y)
    ln -sf $(SOURCES_DIR)/asterisk/codec_g729$(if $(filter $(SF_ASTERISK_1_6),y),_ast1_6).c $(ASTERISK_DIR)/codecs/codec_g729.c
    ln -sf $(SOURCES_DIR)/asterisk/g729ab_codec.h $(ASTERISK_DIR)/codecs
endif
ifeq ($(strip $(SF_ASTERISK_1_4)),y)

ifeq ($(strip $(SF_PACKAGE_LUA)),y)
    ln -sf $(SOURCES_DIR)/lua/pbx_lua.c $(ASTERISK_DIR)/pbx
    ln -sf $(SOURCES_DIR)/lua/hashtab.h $(ASTERISK_DIR)/include/asterisk/
endif
ifeq ($(strip $(SF_PACKAGE_DEVSTATE)),y)
    ln -sf $(SOURCES_DIR)/asterisk/func_devstate.c $(ASTERISK_DIR)/funcs       
endif
    ln -sf $(SOURCES_DIR)/asterisk/codec_speex.c $(ASTERISK_DIR)/codecs
endif
    touch $(ASTERISK_DIR)/.asterisk.$(ASTERISK_SERIES)
    touch $(ASTERISK_DIR)/.unpacked

$(ASTERISK_DIR_LINK)/.configured: $(ASTERISK_DEP) $(ASTERISK_DIR)/.unpacked $(if $(filter $(SF_PACKAGE_ATTRAFAX),y), $(ATTRAFAX_DIR)/.unpacked)
    cp -v package/asterisk/asterisk-$(ASTERISK_SERIES).makeopts $(ASTERISK_DIR)/menuselect.makeopts

ifeq ($(strip $(SF_PACKAGE_UW-IMAP)),y)
    sed -i 's/^MENUSELECT_OPTS_app_voicemail=/\0IMAP_STORAGE/' $(ASTERISK_DIR)/menuselect.makeopts
endif
ifeq ($(strip $(SF_PACKAGE_IKSEMEL)),y)
    make iksemel
endif
    cd $(ASTERISK_DIR); CFLAGS="$(ASTERISK_CFLAGS)" LDFLAGS="$(ASTERISK_LDFLAGS)" GNU_LD=0 ./configure $(ASTERISK_CONFIGURE_OPTS)
    #The config doesn't detect the fork properly. We know fork is properly emulated under uClinux
    sed -i 's/WORKING_FORK=/WORKING_FORK=1/' $(ASTERISK_DIR)/build_tools/menuselect-deps
    echo LUA=1 >> $(ASTERISK_DIR)/build_tools/menuselect-deps
ifeq ($(strip $(SF_SPANDSP_FAX)),y)   
ifeq ($(strip $(SF_ASTERISK_1_4)),y)
    cd $(ASTERISK_DIR)/apps/; svn -r$(APP_FAX_REV) export $(APP_FAX_SITE)/app-spandsp/app_fax.c
    cd $(ASTERISK_DIR)/; svn -r$(APP_FAX_REV) export $(APP_FAX_SITE)/addon_version.h
endif
    sed -i '/MENUSELECT_APPS=/s/\bapp_fax\b//g' $(ASTERISK_DIR)/menuselect.makeopts
endif
    cp -v package/sources/nvfax/app_nv_faxdetect.c $(ASTERISK_DIR)/apps/app_nvfaxdetect.c
ifeq ($(strip $(SF_PACKAGE_ATTRAFAX)),y)
        #Patch Asterisk for Attrafax if not already patched
    patch -p1 -d $(ASTERISK_DIR) < package/asterisk/asterisk-attrafax.patch; \
    ln -sf ${ATTRAFAX_DIR}/src/asterisk/include/attractel/ $(ASTERISK_DIR)/include/
    ln -sf ${ATTRAFAX_DIR}/src/asterisk/main/attrlic.c $(ASTERISK_DIR)/main/
endif
    touch $(ASTERISK_DIR)/.configured

$(STAGING_LIB)/libgsm.a:
    make -C $(UCLINUX_DIST)/lib/blackfin-gsm CC=$(TARGET_CC) AR=bfin-linux-uclibc-ar
    ln -sf $(UCLINUX_DIST)/lib/blackfin-gsm/gsm/lib/libgsm.a $(STAGING_LIB)
    ln -sf $(UCLINUX_DIST)/lib/blackfin-gsm/gsm/inc/gsm.h $(STAGING_INC)


check_prev_ver:
ifeq ($(strip $(SF_ASTERISK_1_4)),y)
    if test -f $(ASTERISK_DIR_LINK)/.asterisk.1.6; then \
        rm -rf $(BUILD_DIR)/asterisk-1.6*; \
        rm -rf $(ASTERISK_DIR_LINK); \
        rm -rf $(TARGET_DIR)/usr/lib/asterisk/modules/; \
        rm -rf $(TARGET_DIR)/bin/asterisk; \
    fi
    if test -f $(ASTERISK_DIR_LINK)/.asterisk.1.8; then \
        rm -rf $(BUILD_DIR)/asterisk-1.8*; \
        rm -rf $(ASTERISK_DIR_LINK); \
        rm -rf $(TARGET_DIR)/usr/lib/asterisk/modules/; \
        rm -rf $(TARGET_DIR)/bin/asterisk; \
    fi
endif
ifeq ($(strip $(SF_ASTERISK_1_6)),y)
    if test -f $(ASTERISK_DIR_LINK)/.asterisk.1.4; then \
        rm -rf $(BUILD_DIR)/asterisk-1.4*; \
        rm -rf $(ASTERISK_DIR_LINK); \
        rm -rf $(TARGET_DIR)/usr/lib/asterisk/modules/; \
        rm -rf $(TARGET_DIR)/bin/asterisk; \
    fi
    if test -f $(ASTERISK_DIR_LINK)/.asterisk.1.8; then \
        rm -rf $(BUILD_DIR)/asterisk-1.8*; \
        rm -rf $(ASTERISK_DIR_LINK); \
        rm -rf $(TARGET_DIR)/usr/lib/asterisk/modules/; \
        rm -rf $(TARGET_DIR)/bin/asterisk; \
    fi

endif
ifeq ($(strip $(SF_ASTERISK_1_8)),y)
    if test -f $(ASTERISK_DIR_LINK)/.asterisk.1.4; then \
        rm -rf $(BUILD_DIR)/asterisk-1.4*; \
        rm -rf $(ASTERISK_DIR_LINK); \
        rm -rf $(TARGET_DIR)/usr/lib/asterisk/modules/; \
        rm -rf $(TARGET_DIR)/bin/asterisk; \
    fi
    if test -f $(ASTERISK_DIR_LINK)/.asterisk.1.6; then \
        rm -rf $(BUILD_DIR)/asterisk-1.6*; \
        rm -rf $(ASTERISK_DIR_LINK); \
        rm -rf $(TARGET_DIR)/usr/lib/asterisk/modules/; \
        rm -rf $(TARGET_DIR)/bin/asterisk; \
    fi
endif


asterisk: check_prev_ver $(ASTERISK_DIR_LINK)/.configured

ifeq ($(strip $(SF_PACKAGE_ASTERISK_VERBOSE)),y)
#    -$(MAKE1) -C $(ASTERISK_DIR) menuselect
endif
#    OPTIMIZE="-O4" ASTCFLAGS="$(ASTERISK_CFLAGS)" ASTLDFLAGS="$(ASTERISK_LDFLAGS)" \
#    $(MAKE1) -C $(ASTERISK_DIR) codecs NOISY_BUILD=1 GNU_LD=0

    OPTIMIZE="-O4" ASTCFLAGS="$(ASTERISK_CFLAGS)" ASTLDFLAGS="$(ASTERISK_LDFLAGS)" \
    $(MAKE1) -C $(ASTERISK_DIR) NOISY_BUILD=1 GNU_LD=0

    mkdir -p $(TARGET_DIR)/bin/
    mkdir -p $(TARGET_DIR)/var/lib/asterisk/sounds
    mkdir -p $(TARGET_DIR)/var/lib/asterisk/sounds/moh
    mkdir -p $(TARGET_DIR)/var/lib/asterisk/sounds/meetme
    mkdir -p $(TARGET_DIR)/var/lib/asterisk/sounds/voicemail
    mkdir -p $(TARGET_DIR)/var/spool/asterisk
    mkdir -p $(TARGET_DIR)/usr/lib/asterisk/modules
    cp -v $(ASTERISK_DIR)/main/asterisk $(TARGET_DIR)/bin/
    ln -sf /bin/asterisk $(TARGET_DIR)/bin/rasterisk
    find $(ASTERISK_DIR) -name '*.so' -exec cp -v "{}" $(TARGET_DIR)/usr/lib/asterisk/modules/ \;
    $(TARGET_STRIP)  $(TARGET_DIR)/bin/asterisk
    $(TARGET_STRIP) $(TARGET_DIR)/usr/lib/asterisk/modules/*.so
ifneq ($(strip $(SF_PACKAGE_NVFAX)),y)
    rm -f $(TARGET_DIR)/usr/lib/asterisk/modules/app_nvfaxdetect.so
endif
ifneq ($(strip $(SF_PACKAGE_ASTERISK_G729)),y)
    rm -f $(TARGET_DIR)/usr/lib/asterisk/modules/codec_g729.so
endif
asterisk-configure: $(ASTERISK_DIR)/.configured

asterisk-clean:
    rm -f $(ASTERISK_DIR)/.configured
     -$(MAKE) -C $(ASTERISK_DIR) clean

asterisk-config: $(ASTERISK_DIR)/.configured
    $(MAKE) -C $(ASTERISK_DIR) menuconfig

asterisk-dirclean:
    rm -rf $(ASTERISK_DIR)
    rm -rf $(ASTERISK_DIR_LINK)

################################################
#
# Toplevel Makefile options
#
#################################################
ifeq ($(strip $(SF_PACKAGE_ASTERISK)),y)
TARGETS+=asterisk
endif
Thanks for your time and help

cheers'n'beers
Henning


Administrator has disabled public posting
admin
useravatar
User Info

Re: Is porting Asterisk + modules a lot of work?

Hi Henning,

You may need dahdi_dummy module so you get the timing source in your system.
Some parts of Asterisk requires timings.

Cheers
Dimitar


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 260
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked