after running astlinux with chan_dongle also with asterisk 11 for many days , i 
confirm that chan_dongle works fine and is stable with astlinux /asterisk 
11,and 1.8 for voice calling both ways, but due to a bug in iconv supplied with 
buildroot you can't send and recive multiline sms via chan_dongle, i used 
centos 6.3 for astlinux image development. you can use above methods to compile 
chan_dongle but not without Lonnie Abelbeck's recommendation , as my method 
will break many other application which depends on host iconv libs. i read that 
the iconv libs supplied with buildroot has known bugs.
for asterisk 11 use this flags .
DONGLE_CONF_OPT = --with-asterisk=/root/astlinux/1.0/dl/asterisk-11/include 
DESTDIR="$(TARGET_DIR)/usr/lib/asterisk/modules/"
Intizar Ali kauser
----- Original Message -----
From: Intizar Ali
Sent: 05/12/13 05:23 PM
To: [email protected]
Subject: Re: [Astlinux-users] chan_dongle integration

Hi,
well i have figured out how to install chan_dongle in ast linux .

i am not an expert but this is what i did , hope somebody will polish it very 
well and according to rules .

in file : /root/astlinux/1.0/project/astlinux/geni586/linux.config

added the following :

USB_SERIAL_OPTION=m 
USB_SERIAL_GENERIC=m
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

add "option" in /etc/modprobe.d/alias.conf or you can do it through astlinux 
webgui .
and :
add /usr/lib/ in to /root/astlinux/1.0/output/target/etc/ld.so.conf

and then i created the Dongle package ( i know it's nasty , i don't know much 
about make utlity etc , but i followed some other package's .config and .mk 
files , and did what i understood )

i extracted the asterisk source in dl/ directory

then : mkdir /root/astlinux/1.0/package/dongle
put Config.in and dongle.mk in /root/astlinux/1.0/package/dongle

Config.in :

config BR2_PACKAGE_DONGLE
 bool "dongle"
 help
 gsm dongle channel

 http://code.google.com/p/asterisk-chan-dongle/


dongle.mk :

#############################################################
#
# dongle
#
#############################################################
DONGLE_VERSION = 18
DONGLE_SOURCE = chan-dongle-$(DONGLE_VERSION).tar
DONGLE_SITE = http://192.168.164.120/packages
DONGLE_AUTORECONF = NO
DONGLE_INSTALL_STAGING = YES
DONGLE_INSTALL_TARGET = YES
DONGLE_DEPENDENCIES = libiconv
DONGLE_CONF_OPT = 
--with-asterisk=/root/astlinux/1.0/dl/asterisk-1.8.21.0/include 
DESTDIR="$(TARGET_DIR)/usr/lib/asterisk/modules/" LDFLAGS="$(TARGET_LDFLAGS) 
-L$(STAGING_DIR)/usr/lib/ -liconv"

$(eval $(call AUTOTARGETS,package,dongle))

first set DONGLE_AUTORECONF to YES , so that it can generate .configure file .
after generating .configure file , the compilation will stop and will complain 
about .mk file ,
so set DONGLE_AUTORECONF to NO and then compile again .

that's it .
but i had a few problems .
if i add my chan_dongle package in fresh astlinux buildroot then dostools and 
lmsensor will not be able to compile , they complain about iconv , so i had to 
,at first ,compile astlinux as it is being provided from svn . when it compiled 
all packages successfully then i added my dongle package in it and rebuilt it .
second problem was that the chan_dongle package from here 
http://code.google.com/p/asterisk-chan-dongle/downloads/list , didn't have 
.configure script by default and my dongle.mk complains about it . so i had to 
set DONGLE_AUTORECONF to YES , so that it can generate .configure file , and 
then DONGLE_AUTORECONF will complain about .mk file , so i again restet 
DONGLE_AUTORECONF to NO and then compiled it , and it compiled successfully ,

the dongle.mk is not clean and up to the mark , becoz i don't know about make 
utlity and pacakge development etc . but this procedure worked for me . and i 
can use chan_dongle with asterisk 1.8.xx in astlinux .i hope some body can 
write a clean .mk file .



Intizar Ali Kauser
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
[email protected].

Reply via email to