Asterisk 1.8 package



  • Can someone fill me in on how to configure asterix once it is installed?  The service is running and the status page shows up but can't work out where / how to configure settings (SIP servers, IPs etc..)



  • In current version, you need to edit asterisk files

    status-> asterisk -> edit configuration

    sip.conf # define trunks,extensions and sip settings
    extensions.conf # define dialplan

    I'm planning to include asterisk-gui on this package but I need more time to finish it.



  • Marcel, here's a small update to the package. I'm attaching it here rather than sending it via GIT, as it seems problematic that way.

    In the PHP part I added a couple of cosmetics, and in asterisk.inc I added a check-routine for nanobsd, for existance of asterisk log, and callog dir.

    If you didn't merge my old GIT changes so far nevermind, just overwrite the files with these.

    asterisk_pkg_upd_robi_1.zip.xls



  • Just wondering.. what are the chances of 2 features..

    1. A show Iax trunks feature (or iax peers)
    2. The ability to route incoming traffic directly to a sip trunk that has been created.

    The reason I'm asking is due to NAT and OPENVPN settings, getting calls to a gateway is near impossible using sip and nat traversal even through siproxd with stun enabled.

    I'd love to be able to route an iax trunk to the openvpn interface, have it connect to the asterisk plugin on the pfsense and have a pfsense asterisk sip trunk to the gateway on the far end, thus allowing me to communicate with the gateway on the far end without all the nat traversal.

    So basically, here's how it would look:

    Public Asterisk Machine (Public IP)<–-------------->IAX Trunk<--------------> pfsense openvpn gateway<------>Asterisk Plugin on PFsense<----------->SIP TRUNK ON LAN interface / subnet to Gateway with private IP (192.168.x.x/24)

    So basically calls can come in the IAX trunk over the VPN connection and be routed to the pfsense asterisk plugin and immediately piped to the GSM Gateway behind the pfsense on the LAN Gateway.



  • @pkwong:

    Just wondering.. what are the chances of 2 features..

    1. A show Iax trunks feature (or iax peers)
    2. The ability to route incoming traffic directly to a sip trunk that has been created.

    These features(and others) will be available when I have time to finish asteriskgui port to pfnse
    http://forum.pfsense.org/index.php/topic,47210.msg250379.html#msg250379



  • @pkwong:

    I'd love to be able to route an iax trunk to the openvpn interface, have it connect to the asterisk plugin on the pfsense and have a pfsense asterisk sip trunk to the gateway on the far end, thus allowing me to communicate with the gateway on the far end without all the nat traversal.

    So basically, here's how it would look:

    Public Asterisk Machine (Public IP)<–-------------->IAX Trunk<--------------> pfsense openvpn gateway<------>Asterisk Plugin on PFsense<----------->SIP TRUNK ON LAN interface / subnet to Gateway with private IP (192.168.x.x/24)

    Don't you think this will dramatically increase audio delay in the phone lines? Especially the OpenVPN part of the road can add time delays to TCP/IP going thru the tunnel. Any delay more than 25ms/direction will make a phone conversation unusable as the dialogue will become unnatural.



  • @robi:

    Don't you think this will dramatically increase audio delay in the phone lines? Especially the OpenVPN part of the road can add time delays to TCP/IP going thru the tunnel. Any delay more than 25ms/direction will make a phone conversation unusable as the dialogue will become unnatural.

    My last Skype conversation was having a delay of almost 2 minutes  :D



  • @EOC2611P:

    @robi:

    Don't you think this will dramatically increase audio delay in the phone lines? Especially the OpenVPN part of the road can add time delays to TCP/IP going thru the tunnel. Any delay more than 25ms/direction will make a phone conversation unusable as the dialogue will become unnatural.

    My last Skype conversation was having a delay of almost 2 minutes  :D

    :D :D :D :D



  • any idea if FreePBX will be able to be compatible with Asterisk 1.8 on PFS ?



  • @npereira:

    any idea if FreePBX will be able to be compatible with Asterisk 1.8 on PFS ?

    Not yet. Freepbx is much more complex(and powerfull) then asterisk gui.

    I've looked for freepbx integration but the setup involves a lot of extra steps and php5.3 that may break pfsense 2.0.1 install.



  • @marcelloc:

    @npereira:

    any idea if FreePBX will be able to be compatible with Asterisk 1.8 on PFS ?

    Not yet. Freepbx is much more complex(and powerfull) then asterisk gui.

    I've looked for freepbx integration but the setup involves a lot of extra steps and php5.3 that may break pfsense 2.0.1 install.

    freepbx plains sucks. is a pain in the ass to maintain on the back end.



  • Any delay more than 25ms/direction will make a phone conversation unusable as the dialogue will become unnatural.

    You missed a 0. It's 250ms. But again it only starts to degrade slowly from there. I running at 400ms just fine here.

    Yes, FreePBX is the worst option. Probably a nice simple css/mxl/html page would do for most of the features. Maybe copy FreePBX layout and features but not it's packages. They will never work with pfSense team to have something out that would be working for everything. Too politically charged….



  • @marcelloc:

    Good news!

    I could get asterisk-gui 2.0 running on pfsense. ;D

    Next step is adjust some gui options to have a full funcional asterisk package for pfsense.

    Status from robi, gui configuration from digium, compilation and joining by me.

    where can i find digium gui???
    thanks





  • @marcelloc:

    @xbaha:

    http://downloads.asterisk.org/pub/telephony/asterisk-gui

    sorry for this stupid question… i downloaded the package, unzip it, tried ./configure , something was missing, and also "make;make install" is unknown command, do i need to install something first?
    sorry, but my Linux is basic knowledge.. pls check attached.
    thanks for any help.




  • I did not finished it yet, but here are few steps you need after copying extracted files to the folder

    mkdir /var/lib
    mkdir /etc/dahdi/
    mkdir /var/lib
    mkdir /etc/dahdi/
    
    ln -s /usr/local/etc/asterisk /etc/asterisk
    ln -s /usr/local/share/asterisk /var/lib/asterisk
    
    /var/lib/asterisk/gui_backups
    /var/lib/asterisk/sounds/imageupdate
    
    chown -R asterisk /var/lib/asterisk
    chown -R asterisk /usr/local/etc/asterisk
    chown -R asterisk /etc/dahdi
    
    /var/lib/asterisk/static_html/config
    /var/lib/asterisk/scripts
    


  • @marcelloc:

    I did not finished it yet, but here are few steps you need after copying extracted files to the folder

    mkdir /var/lib
    mkdir /etc/dahdi/
    mkdir /var/lib
    mkdir /etc/dahdi/
    
    ln -s /usr/local/etc/asterisk /etc/asterisk
    ln -s /usr/local/share/asterisk /var/lib/asterisk
    
    /var/lib/asterisk/gui_backups
    /var/lib/asterisk/sounds/imageupdate
    
    chown -R asterisk /var/lib/asterisk
    chown -R asterisk /usr/local/etc/asterisk
    chown -R asterisk /etc/dahdi
    
    /var/lib/asterisk/static_html/config
    /var/lib/asterisk/scripts
    

    hi, where exactly i should copy the extracted files? i don't need to compile them??
    also, your code :

    
    /var/lib/asterisk/gui_backups
    /var/lib/asterisk/sounds/imageupdate
    
    

    what is the command line here????

    Thanks.



  • @xbaha:

    what is the command line here????

    maybe just folders to create. I'm not sure you need to compile it, just extract the files.

    If I have time these days I'll try to publish a new package version with asterisk-gui.



  • Great Job.
    But I found the app_meetme.so  is not installed in the asterisk.
    this module is very important for us!
    Can you install it in the asterisk system?
    Maybe you should comiple the dahdi module first!
    :)



  • No dahdi for now  :(

    The dahdi port for freebsd is not working.



  • not working?
    http://svn.digium.com/svn/dahdi/freebsd/trunk/
    I have compiled it successfully in my freebsd 8.1 and copied them to pfsense 2.0
    see the following information.
    [2.0-RELEASE][root@pfSense.localdomain]/etc/asterisk(30): kldstat
    Id Refs Address    Size    Name
    1  39 0xc0400000 ea8378  kernel
    2  13 0xc6d25000 36000    dahdi.ko
    3    2 0xc6e4e000 e000    dahdi_voicebus.ko
    4    1 0xc6f97000 5000    dahdi_dynamic.ko
    5    1 0xc6f9f000 2000    dahdi_echocan_jpah.ko
    6    1 0xc6fa5000 3000    dahdi_echocan_kb1.ko
    7    1 0xc6fa9000 3000    dahdi_echocan_mg2.ko
    8    1 0xc6fae000 2000    dahdi_echocan_sec.ko
    9    1 0xc6fb4000 c000    wcb4xxp.ko
    10    1 0xc700d000 52000    wct4xxp.ko
    11    1 0xc70bb000 e000    wctdm.ko
    12    1 0xc70cd000 5000    wcfxo.ko
    13    1 0xc70d2000 8000    wcte11xp.ko
    14    1 0xc70df000 b000    wcte12xp.ko
    15    1 0xc72ca000 7000    joskm.ko
    I rebuilded the asterisk 1.8.x in pfsense,included the app_meetme.so.
    conference now is running…...
    But I do not have some FXS or FXO or E1/T1 cards,So i do not know whether the drived can run in the pfsense system.



  • @learnin9:

    not working?
    http://svn.digium.com/svn/dahdi/freebsd/trunk/
    I have compiled it successfully in my freebsd 8.1 and copied them to pfsense 2.0
    see the following information.

    Using ports? I need this way to build the package.

    ===>  Building package for dahdi-2.4.0rc5_5
    tar: include/dahdi/compat/types.h: Cannot stat: No such file or directory
    tar: include/dahdi/user.h: Cannot stat: No such file or directory
    tar: include/dahdi/wctdm_user.h: Cannot stat: No such file or directory
    tar: Error exit delayed from previous errors.
    pkg_create: make_dist: tar command failed with code 256
    *** Error code 1
    
     make package
    ===>  dahdi-kmod-2.4.0rc5_4 may not be packaged: Should be in sync with the kernel to work correctly.
    
    

    If so, can you share the steps you did?



  • If worked with dahdi-2.4.0rc5_5 ;D

    great!

    make package
    ===>  Installing for dahdi-2.4.0rc5_5
    ===>   dahdi-2.4.0rc5_5 depends on shared library: newt.52 - found
    ===>   Generating temporary packing list
    ===>  Checking if misc/dahdi already installed
    gmake[1]: Entering directory `/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/tools'
    gmake[1]: Leaving directory `/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/tools'
    install -d /usr/local/sbin
    install  fxotune dahdi_cfg dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_tool dahdi_maint /usr/local/sbin/
    install -d /usr/local/man/man8
    install -m 644 doc/fxotune.8 doc/dahdi_cfg.8 doc/dahdi_monitor.8 doc/dahdi_test.8 doc/dahdi_scan.8 doc/dahdi_tool.8 /usr/local/man/man8/
    /usr/bin/install -c -o root -g wheel -d -m 755 /usr/local/etc/dahdi
    /usr/bin/install -c -o root -g wheel -m 644 system.conf.sample /usr/local/etc/dahdi/system.conf.sample
    /usr/bin/install -c -o root -g wheel -d -m 755 //usr/local/lib
    /usr/bin/install -c -o root -g wheel -m 755 libtonezone.a /usr/local/lib/
    /usr/bin/install -c -o root -g wheel -m 755 libtonezone.so /usr/local/lib/libtonezone.so.2.0
    if [ `id -u` = 0 ]; then \
            /sbin/ldconfig || : ;\
    fi
    rm -f /usr/local/lib/libtonezone.so
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so.2
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so
    # Overwrite the 1.0 links out there.  dahdi-tools 2.0.0 installed
    # 1.0 links but dahdi-tools changed them to 2.0 in order to explicitly
    # break applications linked with zaptel.  But, this also meant that
    # applications linked with libtonezone.so.1.0 broke when dahdi-tools
    # 2.1.0 was installed.
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so.1.0
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so.1
    /usr/bin/install -c -o root -g wheel -d -m 755 //usr/local/include/dahdi
    /usr/bin/install -c -o root -g wheel -m 644 tonezone.h /usr/local/include/dahdi/
    ###################################################
    ###
    ### DAHDI tools installed successfully.
    ### If you have not done so before, install init scripts with:
    ###
    ###   make config
    ###
    ###################################################
    ===>   Compressing manual pages for dahdi-2.4.0rc5_5
    ===>   Running ldconfig
    /sbin/ldconfig -m /usr/local/lib
    ===>   Registering installation for dahdi-2.4.0rc5_5
    ===>  Building package for dahdi-2.4.0rc5_5
    
    

    I'll include it on my repo and test when time permits



  • Great!!!
    hahaha!
    the dahdi module src file are in here:

    #/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/drivers/dahdi
    ocalhost# pwd
    /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd
    localhost# make
    ===> freebsd (all)
    ===> freebsd/dahdi (all)
    Warning: Object directory not changed from original /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include
    Updating version.h
    awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
    awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
    awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
    cc -O2 -pipe -D__KERNEL__ -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../drivers/dahdi/dahdi-base.c
    cc -O2 -pipe -D__KERNEL__ -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c bsd-compat.c
    ld  -d -warn-common -r -d -o dahdi.kld dahdi-base.o bsd-compat.o
    :> export_syms
    awk -f /sys/conf/kmod_syms.awk dahdi.kld  export_syms | xargs -J% objcopy % dahdi.kld
    ld -Bshareable  -d -warn-common -o dahdi.ko dahdi.kld
    objcopy --strip-debug dahdi.ko
    ===> freebsd/dahdi_dynamic (all)
    Warning: Object directory not changed from original /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include
    cc -O2 -pipe -D__KERNEL__ -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic/../../drivers/dahdi/dahdi_dynamic.c
    ld  -d -warn-common -r -d -o dahdi_dynamic.kld dahdi_dynamic.o
    :> export_syms
    awk -f /sys/conf/kmod_syms.awk dahdi_dynamic.kld  export_syms | xargs -J% objcopy % dahdi_dynamic.kld
    ld -Bshareable  -d -warn-common -o dahdi_dynamic.ko dahdi_dynamic.kld
    objcopy --strip-debug dahdi_dynamic.ko
    ===> freebsd/dahdi_transcode (all)
    Warning: Object directory not changed from original /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_transcode
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include
    cc -O2 -pipe -D__KERNEL__ -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_transcode/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_transcode/../../drivers/dahdi/dahdi_transcode.c
    ld  -d -warn-common -r -d -o dahdi_transcode.kld dahdi_transcode.o
    :> export_syms
    awk -f /sys/conf/kmod_syms.awk dahdi_transcode.kld  export_syms | xargs -J% objcopy % dahdi_transcode.kld
    ld -Bshareable  -d -warn-common -o dahdi_transcode.ko dahdi_transcode.kld
    objcopy --strip-debug dahdi_transcode.ko
    ===> freebsd/dahdi_voicebus (all)
    Warning: Object directory not changed from original /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include
    awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
    awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
    awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
    cc -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi/voicebus/voicebus.c
    cc -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi/voicebus/voicebus_net.c
    cc -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi/voicebus/GpakCust.c
    cc -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_voicebus/../../drivers/dahdi/voicebus/GpakApi.c
    ld  -d -warn-common -r -d -o dahdi_voicebus.kld voicebus.o voicebus_net.o GpakCust.o GpakApi.o
    :> export_syms
    awk -f /sys/conf/kmod_syms.awk dahdi_voicebus.kld  export_syms | xargs -J% objcopy % dahdi_voicebus.kld
    ld -Bshareable  -d -warn-common -o dahdi_voicebus.ko dahdi_voicebus.kld
    objcopy --strip-debug dahdi_voicebus.ko
    ===> freebsd/dahdi_dynamic_loc (all)
    Warning: Object directory not changed from original /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_loc
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include
    cc -O2 -pipe -D__KERNEL__ -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_loc/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_loc/../../drivers/dahdi/dahdi_dynamic_loc.c
    ld  -d -warn-common -r -d -o dahdi_dynamic_loc.kld dahdi_dynamic_loc.o
    :> export_syms
    awk -f /sys/conf/kmod_syms.awk dahdi_dynamic_loc.kld  export_syms | xargs -J% objcopy % dahdi_dynamic_loc.kld
    ld -Bshareable  -d -warn-common -o dahdi_dynamic_loc.ko dahdi_dynamic_loc.kld
    objcopy --strip-debug dahdi_dynamic_loc.ko
    ===> freebsd/dahdi_dynamic_eth (all)
    Warning: Object directory not changed from original /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_eth
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include
    cc -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_eth/../ng_dahdi_netdev -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_eth/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_eth/../../drivers/dahdi/dahdi_dynamic_eth.c
    ld  -d -warn-common -r -d -o dahdi_dynamic_eth.kld dahdi_dynamic_eth.o
    :> export_syms
    awk -f /sys/conf/kmod_syms.awk dahdi_dynamic_eth.kld  export_syms | xargs -J% objcopy % dahdi_dynamic_eth.kld
    ld -Bshareable  -d -warn-common -o dahdi_dynamic_eth.ko dahdi_dynamic_eth.kld
    objcopy --strip-debug dahdi_dynamic_eth.ko
    ===> freebsd/dahdi_dynamic_ethmf (all)
    Warning: Object directory not changed from original /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_ethmf
    @ -> /usr/src/sys
    machine -> /usr/src/sys/i386/include
    cc -D__KERNEL__ -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_ethmf/../ng_dahdi_netdev -I/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_ethmf/../../include -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd/freebsd/dahdi_dynamic_ethmf/../../drivers/dahdi/dahdi_dynamic_ethmf.c
    ld  -d -warn-common -r -d -o dahdi_dynamic_ethmf.kld dahdi_dynamic_ethmf.o
    :> export_syms
    awk -f /sys/conf/kmod_syms.awk dahdi_dynamic_ethmf.kld  export_syms | xargs -J% objcopy % dahdi_dynamic_ethmf.kld
    ld -Bshareable  -d -warn-common -o dahdi_dynamic_ethmf.ko dahdi_dynamic_ethmf.kld
    objcopy --strip-debug dahdi_dynamic_ethmf.ko
    

    please build them and intalled the dahdi drivers in pfsense2.0
    :D :D :D :D :D



  • @marcelloc:

    If worked with dahdi-2.4.0rc5_5 ;D

    great!

    make package
    ===>  Installing for dahdi-2.4.0rc5_5
    ===>   dahdi-2.4.0rc5_5 depends on shared library: newt.52 - found
    ===>   Generating temporary packing list
    ===>  Checking if misc/dahdi already installed
    gmake[1]: Entering directory `/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/tools'
    gmake[1]: Leaving directory `/usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/tools'
    install -d /usr/local/sbin
    install  fxotune dahdi_cfg dahdi_monitor dahdi_speed dahdi_test dahdi_scan dahdi_tool dahdi_maint /usr/local/sbin/
    install -d /usr/local/man/man8
    install -m 644 doc/fxotune.8 doc/dahdi_cfg.8 doc/dahdi_monitor.8 doc/dahdi_test.8 doc/dahdi_scan.8 doc/dahdi_tool.8 /usr/local/man/man8/
    /usr/bin/install -c -o root -g wheel -d -m 755 /usr/local/etc/dahdi
    /usr/bin/install -c -o root -g wheel -m 644 system.conf.sample /usr/local/etc/dahdi/system.conf.sample
    /usr/bin/install -c -o root -g wheel -d -m 755 //usr/local/lib
    /usr/bin/install -c -o root -g wheel -m 755 libtonezone.a /usr/local/lib/
    /usr/bin/install -c -o root -g wheel -m 755 libtonezone.so /usr/local/lib/libtonezone.so.2.0
    if [ `id -u` = 0 ]; then \
            /sbin/ldconfig || : ;\
    fi
    rm -f /usr/local/lib/libtonezone.so
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so.2
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so
    # Overwrite the 1.0 links out there.  dahdi-tools 2.0.0 installed
    # 1.0 links but dahdi-tools changed them to 2.0 in order to explicitly
    # break applications linked with zaptel.  But, this also meant that
    # applications linked with libtonezone.so.1.0 broke when dahdi-tools
    # 2.1.0 was installed.
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so.1.0
    /bin/ln -sf libtonezone.so.2.0 \
            /usr/local/lib/libtonezone.so.1
    /usr/bin/install -c -o root -g wheel -d -m 755 //usr/local/include/dahdi
    /usr/bin/install -c -o root -g wheel -m 644 tonezone.h /usr/local/include/dahdi/
    ###################################################
    ###
    ### DAHDI tools installed successfully.
    ### If you have not done so before, install init scripts with:
    ###
    ###   make config
    ###
    ###################################################
    ===>   Compressing manual pages for dahdi-2.4.0rc5_5
    ===>   Running ldconfig
    /sbin/ldconfig -m /usr/local/lib
    ===>   Registering installation for dahdi-2.4.0rc5_5
    ===>  Building package for dahdi-2.4.0rc5_5
    
    

    I'll include it on my repo and test when time permits

    You only compiled the dahdi tools, the driver src files you should compile.
    localhost# pwd
    /usr/ports/misc/dahdi/work/dahdi-freebsd-complete-2.4.0-rc5+2.4.0-rc1/freebsd



  • this should complete the install?

    tar -cvzf dahdi_drivers.tar.gz /usr/local/lib/dahdi /usr/local/include/dahdi/compat
    tar: Removing leading '/' from member names
    a usr/local/lib/dahdi
    a usr/local/lib/dahdi/dahdi.ko
    a usr/local/lib/dahdi/linker.hints
    a usr/local/lib/dahdi/dahdi_dynamic.ko
    a usr/local/lib/dahdi/dahdi_transcode.ko
    a usr/local/lib/dahdi/dahdi_voicebus.ko
    a usr/local/lib/dahdi/dahdi_dynamic_loc.ko
    a usr/local/lib/dahdi/dahdi_dynamic_eth.ko
    a usr/local/lib/dahdi/dahdi_dynamic_ethmf.ko
    a usr/local/lib/dahdi/ng_dahdi_netdev.ko
    a usr/local/lib/dahdi/dahdi_echocan_jpah.ko
    a usr/local/lib/dahdi/dahdi_echocan_kb1.ko
    a usr/local/lib/dahdi/dahdi_echocan_mg2.ko
    a usr/local/lib/dahdi/dahdi_echocan_sec.ko
    a usr/local/lib/dahdi/dahdi_echocan_sec2.ko
    a usr/local/lib/dahdi/wcfxo.ko
    a usr/local/lib/dahdi/wctdm.ko
    a usr/local/lib/dahdi/wctdm24xxp.ko
    a usr/local/lib/dahdi/dahdi-fw-hx8.bin.ko
    a usr/local/lib/dahdi/dahdi_vpmadt032_loader.ko
    a usr/local/lib/dahdi/wct4xxp.ko
    a usr/local/lib/dahdi/wcte11xp.ko
    a usr/local/lib/dahdi/wcte12xp.ko
    a usr/local/lib/dahdi/dahdi-fw-oct6114-064.bin.ko
    a usr/local/lib/dahdi/dahdi-fw-oct6114-128.bin.ko
    a usr/local/lib/dahdi/wcb4xxp.ko
    a usr/local/lib/dahdi/wctc4xxp.ko
    a usr/local/lib/dahdi/dahdi-fw-tc400m.bin.ko
    a usr/local/include/dahdi/compat
    a usr/local/include/dahdi/compat/types.h
    
    

    amd64
    http://e-sac.siteseguro.ws/packages/amd64/8/All/asterisk18-1.8.12.0.tbz
    http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi-2.4.0rc5_5.tbz
    http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi_drivers.tar.gz

    i386
    http://e-sac.siteseguro.ws/packages/8/All/asterisk18-1.8.12.0.tbz
    http://e-sac.siteseguro.ws/packages/8/All/dahdi-2.4.0rc5_5.tbz
    http://e-sac.siteseguro.ws/packages/8/All/dahdi_drivers.tar.gz



  • Yes!thanks for your great job!
    Maybe needs the startup scripts to kldload the drivers when pfsense starts up.
    ;D ;D



  • @marcelloc:

    this should complete the install?

    tar -cvzf dahdi_drivers.tar.gz /usr/local/lib/dahdi /usr/local/include/dahdi/compat
    tar: Removing leading '/' from member names
    a usr/local/lib/dahdi
    a usr/local/lib/dahdi/dahdi.ko
    a usr/local/lib/dahdi/linker.hints
    a usr/local/lib/dahdi/dahdi_dynamic.ko
    a usr/local/lib/dahdi/dahdi_transcode.ko
    a usr/local/lib/dahdi/dahdi_voicebus.ko
    a usr/local/lib/dahdi/dahdi_dynamic_loc.ko
    a usr/local/lib/dahdi/dahdi_dynamic_eth.ko
    a usr/local/lib/dahdi/dahdi_dynamic_ethmf.ko
    a usr/local/lib/dahdi/ng_dahdi_netdev.ko
    a usr/local/lib/dahdi/dahdi_echocan_jpah.ko
    a usr/local/lib/dahdi/dahdi_echocan_kb1.ko
    a usr/local/lib/dahdi/dahdi_echocan_mg2.ko
    a usr/local/lib/dahdi/dahdi_echocan_sec.ko
    a usr/local/lib/dahdi/dahdi_echocan_sec2.ko
    a usr/local/lib/dahdi/wcfxo.ko
    a usr/local/lib/dahdi/wctdm.ko
    a usr/local/lib/dahdi/wctdm24xxp.ko
    a usr/local/lib/dahdi/dahdi-fw-hx8.bin.ko
    a usr/local/lib/dahdi/dahdi_vpmadt032_loader.ko
    a usr/local/lib/dahdi/wct4xxp.ko
    a usr/local/lib/dahdi/wcte11xp.ko
    a usr/local/lib/dahdi/wcte12xp.ko
    a usr/local/lib/dahdi/dahdi-fw-oct6114-064.bin.ko
    a usr/local/lib/dahdi/dahdi-fw-oct6114-128.bin.ko
    a usr/local/lib/dahdi/wcb4xxp.ko
    a usr/local/lib/dahdi/wctc4xxp.ko
    a usr/local/lib/dahdi/dahdi-fw-tc400m.bin.ko
    a usr/local/include/dahdi/compat
    a usr/local/include/dahdi/compat/types.h
    
    

    amd64
    http://e-sac.siteseguro.ws/packages/amd64/8/All/asterisk18-1.8.12.0.tbz
    http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi-2.4.0rc5_5.tbz
    http://e-sac.siteseguro.ws/packages/amd64/8/All/dahdi_drivers.tar.gz

    i386
    http://e-sac.siteseguro.ws/packages/8/All/asterisk18-1.8.12.0.tbz
    http://e-sac.siteseguro.ws/packages/8/All/dahdi-2.4.0rc5_5.tbz
    http://e-sac.siteseguro.ws/packages/8/All/dahdi_drivers.tar.gz

    hi
    can you update these files in pfsense packages (web-gui packages)

    i have digium card, i'll test it.

    thanks..



  • @mdima:

    @marcelloc:

    That's a good point.
    In an outbound scenario it may work with carp as clients will reauth with asterisk.
    For inbound calls, you can test configuring asterisk to listening on carp ips and see if backup asterisk will not crash.

    well, I am also worry about Asterisk try to register to the VOIP provider, then the VOIP provider will try to contact both boxes for an incoming call… I don't know if I can test that in the real environment, I will coordinate with my colleague that follows the telephony services in my company and try to imagine how we can manage a try. Now we use Freeswitch on a server in our DMZ network...

    Voip Provider will contact the box @ port 5060, which is used by asterisk service, then the communication will be on RTP, i think it should work…
    what things might go wrong you think?



  • @xbaha:

    can you update these files in pfsense packages (web-gui packages)

    Try that using pkg_add on console fist. I 'll try to publish new version including asterisk-gui too.



  • @marcelloc:

    @xbaha:

    can you update these files in pfsense packages (web-gui packages)

    Try that using pkg_add on console fist. I 'll try to publish new version including asterisk-gui too.

    sorry, pkg_add gave lots of errors, i dlded all dependencies packages, is there an argument i should add with pkg_add ?




  • hi,marcelloc:
    Maybye you missed the libpri-1.4.12.tbz and unixODBC-2.3.1.tbz file
    see the following:

    [2.0.1-RELEASE][root@pfSense.localdomain]/root(81): pkg_add asterisk18-1.8.12.0.tbz 
    pkg_add: could not find package libpri-1.4.12 !
    [2.0.1-RELEASE][root@pfSense.localdomain]/root(85): pkg_add -f asterisk18-1.8.12.0.tbz  
    pkg_add: could not find package libpri-1.4.12  (proceeding anyway)
    ===> Creating users and/or groups.
    Creating group 'asterisk' with gid '931'.
    Creating group 'dahdi' with gid '843'.
    Creating user 'asterisk' with uid '931'.
    Adding user 'asterisk' to group 'dahdi'.
    pkg_add: can't open dependency file '/var/db/pkg/libpri-1.4.12/+REQUIRED_BY'!
    dependency registration is incomplete
    pkg_add: warning: package 'asterisk18-1.8.12.0' requires 'unixODBC-2.3.1', but 'unixODBC-2.3.0_1' is installed
    


  • learnin9,

    I've pushed the missing libpri to my repo, try to reinstall.

    this message:
    pkg_add: warning: package 'asterisk18-1.8.12.0' requires 'unixODBC-2.3.1', but 'unixODBC-2.3.0_1' is installed
    says that you have unixODBC-2.3.0_1 version installed, you need to uninstall this versioin to use unixODBC-2.3.1.

    att,
    Marcello Coutinho



  • marcelloc:
      I did not find the unixODBC-2.3.1.tbz file,so i have to install the unixODBC-2.3.0_1.tbz file
      Lots for thanks for your hard work.I will reinstall the asterisk packages.



  • libpri might be the last thing needed on an embedded system. The feature will probably be rarely used if at all.



  • Marcelloc, Thanks for the hard work at creating the Asterisk package for us. Having a go at adding the Asterisk package via the 'Package' option through the GUI on a fresh x86 PF2.01 install. It seemed to install fine with no errors but under 'services' it shows Asterisk to be stopped and despite many attempts it won't start via the PF Web interface. Hardware and software SIP clients unable to connnect seem to support the fact it's not running. Is this symptom common? Is there a way to try starting Asterisk from a shell connection or a process to reveal a bit more detail on why it's not starting? I haven't rebooted the box since installing the Asterisk…do I need to or should I restart the web configurator? This is my first foray into Asterisk since my failed attempt at trying to rig up Freeswitch/FusionPBX with PF2.01 and the service won't start symptom may just be my own ignorance on how Asterisk operates.
    Thanks



  • try to start asterisk on console, maybe you need to unselect some modules.



  • What would be the command to start the Asterisk daemon from a shell…wasn't quite certain and "/etc/init.d/asterisk start" returned a command not found.



  • /usr/local/etc/rc.d/asterisk



  • Commenting out some of the modules did it, the daemon started and looks like it's running via the GUI now. Wonder if it was because the default extensions.conf and sip.conf contained references to demo interfaces that I didn't have? There's no telephony cards on the board…yet. SIP phones still aren't showing up but I can have a go at those now that I know the daemon is running. Thanks again Marcelloc.


Log in to reply