asterisk on fonera

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3
Author Message
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Mon Apr 28, 2008 13:34    Post subject: Reply with quote
rc7 does already contain asterisk. no need to installed it twice
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
Sponsor
sashita
DD-WRT Novice


Joined: 26 Feb 2007
Posts: 6

PostPosted: Mon Apr 28, 2008 14:53    Post subject: Reply with quote
BrainSlayer wrote:
rc7 does already contain asterisk. no need to installed it twice


thank you very much,

I just installed RC7 and added few subscribers

thanks once again for quick answer.

regards
dziny
DD-WRT Novice


Joined: 27 Feb 2008
Posts: 19

PostPosted: Tue Apr 29, 2008 15:02    Post subject: what version? Reply with quote
BrainSlayer wrote:
rc7 does already contain asterisk. no need to installed it twice


I have a built RC7-9414 installed and I don't see asterisk there.... What built you are refering to?
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Tue Apr 29, 2008 15:05    Post subject: Reply with quote
the standard rc7 for instance does contain it and all other interim build postet here in the last days too
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
mrdally204
DD-WRT User


Joined: 18 Jan 2008
Posts: 54

PostPosted: Fri May 23, 2008 16:44    Post subject: Reply with quote
*Edit* first question I had was stupid Where exactly are the .conf files on the fonera to add in my info and create dial plans
cgigate
DD-WRT User


Joined: 03 May 2007
Posts: 183

PostPosted: Tue May 27, 2008 5:08    Post subject: Reply with quote
It looks like something wrong in V24 final.
"Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)"

root@DD-WRT:~# asterisk -rvvvvvv
Asterisk 1.4.18.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
root@DD-WRT:~#

_________________
kamsamia
DD-WRT Novice


Joined: 11 Nov 2007
Posts: 10

PostPosted: Tue May 27, 2008 6:48    Post subject: Reply with quote
For config enable jffs create directory /jffs/etc/asterisk

in asterisk.conf write :
astetcdir => /jffs/etc/asterisk

in startup write:
/usr/sbin/asterisk -C /jffs/etc/asterisk/asterisk.conf

the problem is astdb, even creating the folder in jffs, does not work.

[May 27 09:20:22] NOTICE[1071]: cdr.c:1369 do_reload: CDR simple logging enabled.
[May 27 09:20:22] WARNING[1071]: db.c:66 dbinit: Unable to open Asterisk database '/usr/lib/asterisk/astdb': Read-only file system
[May 27 09:20:22] NOTICE[1071]: loader.c:843 load_modules: 61 modules will be loaded.
[May 27 09:20:23] WARNING[1071]: res_musiconhold.c:804 moh_scan_files: Cannot open dir /usr/lib/asterisk/moh or dir does not exist
[May 27 09:20:23] WARNING[1071]: res_smdi.c:724 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
[May 27 09:20:23] WARNING[1071]: app_festival.c:546 load_module: No such configuration file festival.conf
[May 27 09:20:23] WARNING[1071]: app_voicemail.c:7843 load_config: Failed to load configuration file.
[May 27 09:20:23] WARNING[1071]: chan_iax2.c:1764 reload_firmware: Error opening firmware directory '/jffs/usr/lib/asterisk/firmware/iax': No such file or directory
[May 27 09:20:23] WARNING[1071]: db.c:66 dbinit: Unable to open Asterisk database '/usr/lib/asterisk/astdb': Read-only file system
[May 27 09:20:23] NOTICE[1071]: chan_mgcp.c:4130 reload_config: Unable to load config mgcp.conf, MGCP disabled
[May 27 09:20:23] ERROR[1071]: chan_phone.c:1332 load_module: Unable to load config phone.conf
[May 27 09:20:23] WARNING[1071]: db.c:66 dbinit: Unable to open Asterisk database '/usr/lib/asterisk/astdb': Read-only file system
[May 27 09:20:23] WARNING[1071]: chan_sip.c:15964 set_insecure_flags: insecure=very at line 40 is deprecated; use insecure=port,invite instead
[May 27 09:20:24] NOTICE[1071]: chan_skinny.c:4646 reload_config: Unable to load config skinny.conf, Skinny disabled
[May 27 09:20:24] NOTICE[1090]: chan_sip.c:12532 handle_response_peerpoke: Peer 'voipstunt' is now Reachable. (149ms / 1000ms)
/usr/sbin/asterisk: can't resolve symbol 'cosf'
root@DD-WRT:~# [May 27 09:20:24] NOTICE[1090]: chan_sip.c:12532 handle_response_peerpoke: Peer 'skypho-out' is now Reachable. (168ms / 2000ms)

root@DD-WRT:~#
mrdally204
DD-WRT User


Joined: 18 Jan 2008
Posts: 54

PostPosted: Tue May 27, 2008 10:35    Post subject: Reply with quote
Thanks kamsamia for the location. You also mention editing an asterisk.conf file in which I do not recall seeing either in my search for conf files. You mind locating that for me as well. Thanks for all the help you have given back to this great community
fpaliuc
DD-WRT Novice


Joined: 12 Aug 2007
Posts: 28

PostPosted: Tue May 27, 2008 15:27    Post subject: Reply with quote
kamsamia wrote:
For config enable jffs create directory /jffs/etc/asterisk

in asterisk.conf write :
astetcdir => /jffs/etc/asterisk

in startup write:
/usr/sbin/asterisk -C /jffs/etc/asterisk/asterisk.conf

the problem is astdb, even creating the folder in jffs, does not work.

[May 27 09:20:22] NOTICE[1071]: cdr.c:1369 do_reload: CDR simple logging enabled.
[May 27 09:20:22] WARNING[1071]: db.c:66 dbinit: Unable to open Asterisk database '/usr/lib/asterisk/astdb': Read-only file system
[May 27 09:20:22] NOTICE[1071]: loader.c:843 load_modules: 61 modules will be loaded.
[May 27 09:20:23] WARNING[1071]: res_musiconhold.c:804 moh_scan_files: Cannot open dir /usr/lib/asterisk/moh or dir does not exist
[May 27 09:20:23] WARNING[1071]: res_smdi.c:724 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
[May 27 09:20:23] WARNING[1071]: app_festival.c:546 load_module: No such configuration file festival.conf
[May 27 09:20:23] WARNING[1071]: app_voicemail.c:7843 load_config: Failed to load configuration file.
[May 27 09:20:23] WARNING[1071]: chan_iax2.c:1764 reload_firmware: Error opening firmware directory '/jffs/usr/lib/asterisk/firmware/iax': No such file or directory
[May 27 09:20:23] WARNING[1071]: db.c:66 dbinit: Unable to open Asterisk database '/usr/lib/asterisk/astdb': Read-only file system
[May 27 09:20:23] NOTICE[1071]: chan_mgcp.c:4130 reload_config: Unable to load config mgcp.conf, MGCP disabled
[May 27 09:20:23] ERROR[1071]: chan_phone.c:1332 load_module: Unable to load config phone.conf
[May 27 09:20:23] WARNING[1071]: db.c:66 dbinit: Unable to open Asterisk database '/usr/lib/asterisk/astdb': Read-only file system
[May 27 09:20:23] WARNING[1071]: chan_sip.c:15964 set_insecure_flags: insecure=very at line 40 is deprecated; use insecure=port,invite instead
[May 27 09:20:24] NOTICE[1071]: chan_skinny.c:4646 reload_config: Unable to load config skinny.conf, Skinny disabled
[May 27 09:20:24] NOTICE[1090]: chan_sip.c:12532 handle_response_peerpoke: Peer 'voipstunt' is now Reachable. (149ms / 1000ms)
/usr/sbin/asterisk: can't resolve symbol 'cosf'
root@DD-WRT:~# [May 27 09:20:24] NOTICE[1090]: chan_sip.c:12532 handle_response_peerpoke: Peer 'skypho-out' is now Reachable. (168ms / 2000ms)

root@DD-WRT:~#


Were you able to load some extra modules? I saw that it loads 31 modules. The problem is that I can't find any SIP command typing 'help' (I wanted to see the status of the peers with Sip show peers )
trottm
DD-WRT Novice


Joined: 18 Apr 2007
Posts: 23

PostPosted: Fri Aug 08, 2008 8:27    Post subject: Reply with quote
I have Asterisk running on an SD modded WRT54GL but woud like to get it running on an old 2100 Fonera. Can RC7 be loaded onto the Fonera without the SD mod, I couldn't seem to work it out from ths thread? Is asterisk working OK in that form?
sblanco
DD-WRT Novice


Joined: 02 Apr 2008
Posts: 2

PostPosted: Mon Sep 01, 2008 17:39    Post subject: Reply with quote
mrdally204 wrote:
*Edit* first question I had was stupid Where exactly are the .conf files on the fonera to add in my info and create dial plans


Nobody knows. I can't find them so default files have to be downloaded from somewhere.
cpe-eagle
DD-WRT Novice


Joined: 29 Mar 2009
Posts: 27

PostPosted: Mon Mar 30, 2009 19:33    Post subject: Reply with quote
Hello,

I am wondering, I have a WRT54GS v3 with DD-WRT build 11793 w/voip is it hard to install asterisk onto it? I right now have on my computer asterisk 1.4 soon hopefully will update to 1.6 Do I need do any thing speaical, also my router is setup so one port gets it own IP address and the other ports have one other IP address along with wifi using that same outside IP.

Any help would be gratful.

Sincerely,
Christopher
robertut
DD-WRT User


Joined: 30 Mar 2009
Posts: 145

PostPosted: Wed Apr 01, 2009 13:36    Post subject: Reply with quote
cpe-eagle wrote:
I am wondering, I have a WRT54GS v3 with DD-WRT build 11793 w/voip is it hard to install asterisk onto it?
Hi!

I successfully installed Asterisk v1.4 onto DD-WRT build 11793 mega (on Asus WL-500G Premium) like this:
- enabled and cleared JFFS partition in the WEB GUI
- prepared a USB stick with Ext3, mounted to /opt in the WEB GUI (I guess FAT would also do fine, and other SD/MMC mods too)
- installed Optware according to this
- installed asterisk14 with command
Code:
/opt/bin/ipkg-opt  --tmp-dir /tmp install asterisk14
also installed the same way asterisk14-core-sounds-en-g729, asterisk14-extra-sounds-en-g729, asterisk14-moh-freeplay-g729, and what else I needed
- installed a very nice small GUI called Asterisk Management script from here. This webpage lists not only the GUI, but all the startup scripts and what else you need to do in order to make it work.

Works very nice! Shouldn't be harder for your setup either.
samuraijack1
DD-WRT Novice


Joined: 23 Apr 2009
Posts: 14

PostPosted: Wed Apr 29, 2009 17:29    Post subject: Calls from WAN not working Reply with quote
I have installed asterisk on my Asus WL-500G Premium V2 with optware on a USB Flash Drive according to the above post. The calls between the clients behind the NAT work fine. But when a client from outside calls, it rings the extension being called but when answered the caller can hear the voice but not the other way around. Also the call drops automatically after a few seconds. I have configured my sip.conf and rtp.conf to deal with NAT issues according to this http://wiki.ljackson.us/Asterisk_Firewall. I have also forwarded the following ports on my ddwrt mega router as below.

ports 5060 and 5061 to asterisk server with IP 192.168.10.1 (main asterisk control ports)
ports 10000 to 20000 to asterisk server with IP 192.168.10.1 (rtp ports for audio)
My sip.conf changes:
;settings for NAT issues
externip = xxxxxx.dyndns.org
localnet = 192.168.10.0/255.255.255.0
canreinvite=no;

I was successfully running an asterisk server with these settings on a windows box with IP 192.168.10.130. But these are not working for the asterisk on the asus router anymore for me. I am using xxxx.dyndns.org so externip in sip.conf has no issue of being changed. The output of my /tmp/.ipt looks like this.
*mangle
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
COMMIT
*nat
:PREROUTING ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A PREROUTING -p tcp -m tcp -d 67.164.43.200 --dport 22 -j DNAT --to-destination 192.168.10.1:22
-A PREROUTING -p icmp -d 67.164.43.200 -j DNAT --to-destination 192.168.10.1
-A PREROUTING -p tcp -m tcp -d 67.164.43.200 --dport 3389 -j DNAT --to-destination 192.168.10.130:3389
-A PREROUTING -p udp -m udp -d 67.164.43.200 --dport 3389 -j DNAT --to-destination 192.168.10.130:3389
-A PREROUTING -p tcp -m tcp -d 67.164.43.200 --dport 5060 -j DNAT --to-destination 192.168.10.1:5060
-A PREROUTING -p udp -m udp -d 67.164.43.200 --dport 5060 -j DNAT --to-destination 192.168.10.1:5060
-A PREROUTING -p tcp -m tcp -d 67.164.43.200 --dport 5061 -j DNAT --to-destination 192.168.10.1:5061
-A PREROUTING -p udp -m udp -d 67.164.43.200 --dport 5061 -j DNAT --to-destination 192.168.10.1:5061
-A PREROUTING -p tcp -m tcp -d 67.164.43.200 --dport 10000:20000 -j DNAT --to-destination 192.168.10.1
-A PREROUTING -p udp -m udp -d 67.164.43.200 --dport 10000:20000 -j DNAT --to-destination 192.168.10.1
-A PREROUTING -d 67.164.43.200 -j TRIGGER --trigger-type dnat
-A POSTROUTING -o vlan1 -j MASQUERADE
-A POSTROUTING -o br0 -m pkttype --pkt-type broadcast -j RETURN
-A POSTROUTING -o br0 -s 192.168.10.0/24 -d 192.168.10.0/24 -j MASQUERADE
COMMIT
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:logaccept - [0:0]
:logdrop - [0:0]
:logreject - [0:0]
:trigger_out - [0:0]
:lan2wan - [0:0]
:grp_1 - [0:0]
:advgrp_1 - [0:0]
:grp_2 - [0:0]
:advgrp_2 - [0:0]
:grp_3 - [0:0]
:advgrp_3 - [0:0]
:grp_4 - [0:0]
:advgrp_4 - [0:0]
:grp_5 - [0:0]
:advgrp_5 - [0:0]
:grp_6 - [0:0]
:advgrp_6 - [0:0]
:grp_7 - [0:0]
:advgrp_7 - [0:0]
:grp_8 - [0:0]
:advgrp_8 - [0:0]
:grp_9 - [0:0]
:advgrp_9 - [0:0]
:grp_10 - [0:0]
:advgrp_10 - [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p udp -i vlan1 --dport 520 -j DROP
-A INPUT -p udp -i br0 --dport 520 -j DROP
-A INPUT -p udp --dport 520 -j ACCEPT
-A INPUT -p tcp -m tcp -d 192.168.10.1 --dport 22 -j logaccept
-A INPUT -i vlan1 -p icmp -j DROP
-A INPUT -p igmp -j DROP
-A INPUT -p udp -i vlan1 --dport 5060 -j ACCEPT
-A INPUT -i lo -m state --state NEW -j ACCEPT
-A INPUT -i br0 -m state --state NEW -j logaccept
-A INPUT -j DROP
-A FORWARD -i br0 -o br0 -j ACCEPT
-A FORWARD -m state --state INVALID -j logdrop
-A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
-A FORWARD -j lan2wan
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
-I FORWARD -o vlan1 -s 192.168.10.1/24 -p tcp --dport 1723 -j ACCEPT
-I FORWARD -o vlan1 -s 192.168.10.1/24 -p gre -j ACCEPT
-A FORWARD -p tcp -m tcp -d 192.168.10.130 --dport 3389 -j ACCEPT
-A FORWARD -p udp -m udp -d 192.168.10.130 --dport 3389 -j ACCEPT
-A FORWARD -p tcp -m tcp -d 192.168.10.1 --dport 5060 -j ACCEPT
-A FORWARD -p udp -m udp -d 192.168.10.1 --dport 5060 -j ACCEPT
-A FORWARD -p tcp -m tcp -d 192.168.10.1 --dport 5061 -j ACCEPT
-A FORWARD -p udp -m udp -d 192.168.10.1 --dport 5061 -j ACCEPT
-A FORWARD -p tcp -m tcp -d 192.168.10.1 --dport 10000:20000 -j ACCEPT
-A FORWARD -p udp -m udp -d 192.168.10.1 --dport 10000:20000 -j ACCEPT
-A FORWARD -i vlan1 -o br0 -j TRIGGER --trigger-type in
-A FORWARD -i br0 -j trigger_out
-A FORWARD -i br0 -m state --state NEW -j ACCEPT
-A FORWARD -j DROP
-A lan2wan -j grp_1
-A logaccept -j ACCEPT
-A logdrop -j DROP
-A logreject -p tcp -m tcp -j REJECT --reject-with tcp-reset
COMMIT

Any help would be highly appreciated.
cgigate
DD-WRT User


Joined: 03 May 2007
Posts: 183

PostPosted: Fri Feb 12, 2010 6:51    Post subject: Reply with quote
BrainSlayer wrote:
rc7 does already contain asterisk. no need to installed it twice

BS,
It looks all V24PreSP2 fonera versions with broken Asterisk built-in. somebody should fix it.
Very old v24RC5's Asterisk was working fine.

Thanks

_________________
Goto page Previous  1, 2, 3 Display posts from previous:    Page 3 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum