i**w 发帖数: 883 | 1 别做梦了,VD和nonoh是一个东家,免费的套路都是一样的 |
|
d********g 发帖数: 10550 | 2 因为楼主没有写全,这两个脚本一个是启动asterisk一个是启动gui的,楼主漏了gui的
脚本,也漏了另外一个执行/opt/etc/init.d下文件的脚本。gui脚本漏了无所谓,
S51astadmin也可以不要,不过执行init.d下文件的脚本漏了是肯定没办法把asterisk
启动起来的。具体参考原始地址:
http://www.fivn.com/products/asterisk.html
要简单就直接在router里用/opt/sbin/asterisk -q,知道怎么写bash脚本可以把
S50asterisk那个拿来参考,里面也是用asterisk -q启动的,只是多了自动备份和恢复
一些数据的功能,可要可不要
最简单的启动脚本写在router里即可(假设optware装在/jffs/opt,同时挂在/opt):
if [ ! -d /opt/etc ]; then
mount -o bind /jffs/opt /opt
/opt/sbin/asterisk -q
fi
这个主要是检查一下/opt是否已经mount了,不然router不稳定的情况会触发好多次
... 阅读全帖 |
|
y******g 发帖数: 120 | 3 记得 nonoh 用 00 而不是 011 做国际区号开头。我只找到楼主在以下设置了 01186
用 nonoh 打出。楼主在什么地方替换011为00呢? 还是不需要?我的电话簿都用的
0086,不想改到01186 了。试了下,照以下设置,01186可以打,0086打不通。
[custom-international]
exten => _01186X.,1,Set(CALLERID(num)=${1XXXX#})
exten => _01186X.,n,Dial(SIP/${EXTEN}@nonoh,50,trg)
exten => _01186X.,n,Hangup
some
directly, |
|
h***y 发帖数: 43 | 4 installed successfully, the only problem is no caller ID shown when
receiving a phone call. |
|
t*******f 发帖数: 2634 | 5 I used your simple script to auto-start asterisk. It worked. Thanks:)
I also checked using "ps"
There are many "asterisk" running.
The same if I "core stop now" then run "asterisk"
Is this normal? Why so many are running at the same time?
asterisk |
|
d********g 发帖数: 10550 | 6 正常,父进程都是一样的,是asterisk自己开的 |
|
|
s*******y 发帖数: 851 | 8 Can you receive call to your google number? I got busy tone when I try to
call my number. |
|
t***n 发帖数: 546 | 9 试了半天,还是只能出不能进。有电话打进时,asterisk -rvvvv 里面没有任何反应。
已经把google voice里面的call forwarding里面其他的电话uncheck了,只有google
chat。 call screening也关掉了。
话说就算折腾好了,可是这个号不能forward到手机,办公室。。。岂不是也相当于废
了?
还是说搞个dummy的google voice号码,打出是显示Caller ID是自己常用的,接入时用
自己常用的号码先forward到这个dummy号码,然后用电话听? |
|
t***n 发帖数: 546 | 10 能具体说一下怎么设置吗?
是把端口5060,10000:20000 forward到192.168.1.1 (router address)还是 pap2的
address?
我两个都试了,还是一样的问题。 |
|
r*****8 发帖数: 2697 | 11 add the following lines in sip.conf
[general]
externip=your_external_ip_address
localnet=192.168.1.0/255.255.255.0 |
|
t***n 发帖数: 546 | 12 不行阿,还是显示:
ERROR[19443]: pbx.c:3491 ast_func_read: Function DB_EXISTS not registered |
|
r*****8 发帖数: 2697 | 13 这些都是我在GoFlex上的经验, 我没有神由, 所以就不知道更多了. 你再琢磨琢磨
router上的port forwarding吧. |
|
c**s 发帖数: 771 | 14 你改过 modules.conf吗?
我有遇到过这个错误,可能是DB_Exists 没有load. 我用了缺省的 modules.conf的设
置就好了。 |
|
t***n 发帖数: 546 | 15 你用GoFlex时在router上做了port forwarding吗?
是哪些端口?forward到哪?(router,Gofelx还是ATA?) |
|
t***n 发帖数: 546 | 16 缺省的module.conf几乎什么都没有load,连jabber都用不了。 下面是我现在用的,能
帮忙看看缺什么
吗?
[modules]
autoload=no
load => func_odbc.so ;NEW ADD BY MY SLET FOR THE Function DB not
load => format_pcm.so ; uLaw/ALaw
load => codec_ulaw.so ; mu-Law
load => format_g726.so ; Raw G.726
load => codec_g726.so ; g-726
load => format_gsm.so ; Raw gsm
load => codec_gsm.so ; gsm Coder/Decoder
load => app_dial.so ; Dialing
load => app_macro.so ... 阅读全帖 |
|
r*****8 发帖数: 2697 | 17 forward all ports from external to GoFlex. |
|
|
t***n 发帖数: 546 | 19 autoload=yes crashes the asterisk, lot's of modules cannot be found.
did some research, seems function DB_EXIST is not available.
Here is some result from asterisk debug console:
tomato-asus-rt-n16*CLI> module show
Module Description Use
Count
res_adsi ADSI Resource 0
res_jabber.so AJI - Asterisk Jabber Interface 0
format_pcm.so Raw/Sun uLaw/ALaw 8KHz (... 阅读全帖 |
|
c**s 发帖数: 771 | 20 Sorry, I meant to say that DB was not loaded.Acutally DB_exists is a
function.
But mine was on Dockstar, and it worked fine when I used the autoload=yes.
The problem only happend when I set that autoload=no, and loaded some other
modules. Once I changed it back to autoload=yes in modules.conf, it worked
fine again. |
|
t***n 发帖数: 546 | 21 Could you please do a:
module show
in asterisk console? So I can see which modules you loaded through autoload,
maybe I can add it manually.
other |
|
t***n 发帖数: 546 | 22 based on the function name, I added:
load => func_db.so
At least The error is gone. Will test later to see if I can really pick up
the call. |
|
t***n 发帖数: 546 | 23 终于可以接电话了。接着折腾多个google voice 帐号 |
|
c*******o 发帖数: 1722 | 24 能具体说说怎么打中国么?我是用的Dockstar. thx
some
directly, |
|
|
|
t***n 发帖数: 546 | 27 优点在于:
1. 多个人用同一个电话时,可以在电话号码上加前缀决定从谁的google voice走。也
决定了对方的来电显
示显示的是谁的电话。
2. 当某人有自己的专属电话时,可以默认所有电话都从他自己的google voice走 |
|
m******m 发帖数: 445 | 28 按照教程一步步走到最后,发现不能打出,下面是错误信息(假设GV账号是abc@gmail.
com, 要打的号
码是1234567890)
== Parsing '/opt/etc/asterisk/asterisk.conf': == Found
== Parsing '/opt/etc/asterisk/extconfig.conf': == Found
Connected to Asterisk 1.8.4 currently running on unknown (pid = 20585)
Verbosity is at least 4
-- Remote UNIX connection
== Using SIP RTP CoS mark 5
-- Executing [11234567890@outbound:1] Dial("SIP/101-00000000",
"Gtalk/abc/1*********[email protected]") in new stack
[May 28 15:13:23] ERROR[20669]: c_g... 阅读全帖 |
|
m******m 发帖数: 445 | 29 我这个是装好了么?
Type Description Devicestate
Indications
Transfer |
|
t***n 发帖数: 546 | 30 seems the google talk client is not connected.
try: jabber show connetions
do you see your account connected?
gmail. |
|
m******m 发帖数: 445 | 31 似乎连上的。
Jabber Users and their status:
[Your_GV] a*[email protected] - Connected |
|
t***n 发帖数: 546 | 32 seems your jabber.conf is not consistent with your gtalk.conf
in your jabber.conf, you use:
[Your_GV] as the context
and in your gtalk.conf
you may entered:
connetion=abc
Is this the case?
if so, you need to change Your_GV to abc |
|
m******m 发帖数: 445 | 33 多谢。我改了jabber设置文件后出现了你之前提到的
pbx.c:3491 ast_func_read: Function DB_EXISTS not registered
pbx.c:3491 ast_func_read: Function DB not registered
所以我在modules.conf文件中加了你提到的两行
load => func_odbc.so ;NEW ADD BY MY SLET FOR THE Function DB not
load => func_db.so ;NEW ADD BY MY SLET FOR THE Function DB not
这个错误信息没了,出现了别的错误信息。现在的情况是打入不行,打出对方能听到声
音,但是这边听不
到对方的声音。
打入时的信息是:
Verbosity is at least 4
-- Executing [a*[email protected]@google-in:1] GotoIf("Gtalk/+1xxxxxxxxxx-
3729", "0?bridged") in... 阅读全帖 |
|
t***n 发帖数: 546 | 34 not quite sure what is the problem.
one thing you can try is to add another SIP connection, 102 in sip.conf,
similar to 101 that you already have.
then in extension.conf, context [local-devices], change to:
exten => 101, 1, Dial(SIP/101,30)
exten => 102, 1, Dial(SIP/102,30)
use another sip client, either a softphone from PC or iphone, connect to 102
. now you should have two phones connected to asterisk
at phone 102, dial 101 to ring the PAP2, check the voice. then at PAP2, dial
102 to ring the ... 阅读全帖 |
|
m******m 发帖数: 445 | 35 多谢!
问一下iphone有什么sip client比较容易设置接入到asterisk?
102
dial |
|
|
x*g 发帖数: 689 | 37 如果安装在usb drive里面(或者SD卡可以吗?),应该要哪些改动?
some
directly, |
|
f*u 发帖数: 5576 | 38 It work on either USB drive or HD, no difference. |
|
w***w 发帖数: 1552 | 39 俺的神由发现重启后不能自动启动asterisk,ssh上去后可以手动开启。试了s50,S51
,S90 script和前面有人贴的simple script,都不行。ssh上去后命令行运行这些
script都是可以启动asterisk的,有什么好的建议?谢谢 |
|
w***w 发帖数: 1552 | 40 最后在/opt下面放了个.autorun,里面就一条启动asterisk的命令,搞定不知道为什么
init.d下面的不行。BTW,我是usb外置了个2.5的硬盘
S51 |
|
|
d********g 发帖数: 10550 | 42 S开头那些脚本能用才怪,教程都没有写全。我贴那个简单脚本是直接放Tomato系列固
件的开机脚本一栏的,DD-WRT也应该可以用
实际上最关键的无非就是asterisk -q,别的都是浮云,用来检查这个检查那个,拷这
个备份那个的
S51 |
|
|
w***w 发帖数: 1552 | 44 好像是压根就不执行init.d下的文件,换成最简单的就一个asterisk -q也不行。ssh上
去命令行可以执行,开机不会自动执行。 |
|
d********g 发帖数: 10550 | 45 ……
脚本写在固件自带的网页界面设置里,不是让你手动放那下面
你非要用init.d方式来启动,参照这个教程吧:
http://www.fivn.com/products/asterisk.html
上面教程是针对openwrt的,大同小异,但可能需要自己看要不要修改
一句话,忘掉init.d,我就是在linux下都不用它了,Arch Linux直接用rc.conf配置,
方便得不得了 |
|
x*g 发帖数: 689 | 46 我在神座上安装了asterisk,SSH进去发现用了100+MB的内存,好像有点多。 用ps看
了一下,有好几个apache2的进程,是不是必要的? 如果不必要,怎么让他不要开机启
动? |
|
F******k 发帖数: 7375 | 47 感谢楼主以及各位兄弟的辛勤劳动。
俺问个问题:楼主原帖里说Search "Your_GV" as replace and replace with your
google voice account,这里这个google voice account是指GV Number还是指登陆
google account用的email地址?谢谢! |
|
F******k 发帖数: 7375 | 48
google voice account,这里这个google voice account是指GV Number还是指登陆
google account用的email地址?谢谢!
Anyone knows? Thanks! |
|
F******k 发帖数: 7375 | 49 Anyone knows? Please help.... |
|
|