找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: stevemorrislian

树莓派+LEDE,用asterisk,手机可以用wifi打出到电话网,费用算在固定电话上

  [复制链接]
 楼主| 发表于 2016-10-3 20:18 | 显示全部楼层
好像不装lede的树莓派更加稳定,问题可能出在openwrt的luci-pbx-gui图形管理界面上。我自己现在没装这个,挺稳定。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-7 11:11 | 显示全部楼层
学习了,谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-10-7 19:44 | 显示全部楼层
本帖最后由 stevemorrislian 于 2016-10-7 19:45 编辑

今天试成了,在A服务器登录,通过B服务打出电话。也就是说,只要总部买一个SIP账号,分布各地的asterisk服务器都可以用这个总部的服务器打出电话。各个分布与不同地点的机构可以显示统一的电话号码
很多公司都没有做wifi漫游/覆盖,这是个备用方法

点评

或者你总部有自己的中继线,就是自己的号码了  详情 回复 发表于 2016-10-8 16:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-8 16:51 | 显示全部楼层
stevemorrislian 发表于 2016-10-7 19:44
今天试成了,在A服务器登录,通过B服务打出电话。也就是说,只要总部买一个SIP账号,分布各地的asterisk服 ...

或者你总部有自己的中继线,就是自己的号码了

点评

不是语音网关  发表于 2016-10-8 20:44
我只用了一个sip账号。 实际上我是用wifi覆盖/漫游的,各个分支和总部的wifi是同一个SSID(修改任何参数都只要改一次)。任何地方得到的IP都在同一个网段。我的asterisk用的也是这个网段的一个固定私有IP 我只  详情 回复 发表于 2016-10-8 20:42
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-10-8 20:42 | 显示全部楼层
jujiapeng 发表于 2016-10-8 16:51
或者你总部有自己的中继线,就是自己的号码了

我只用了一个sip账号。

实际上我是用wifi覆盖/漫游的,各个分支和总部的wifi是同一个SSID(修改任何参数都只要改一次)。任何地方得到的IP都在同一个网段。我的asterisk用的也是这个网段的一个固定私有IP

我只是说,没必要买多个sip账号,即使物理位置分布在不同地方,只要网络是通的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-10-18 20:21 | 显示全部楼层
本帖最后由 stevemorrislian 于 2016-10-19 20:18 编辑

当前的几个文件
sip.conf
[general]
context=default-incoming-call-context
;register => 2015:truestar@10.33.1.2
register => AST218:hsR906@172.16.203.218

allowoverlaa=yes
allowtransfer=yes
realm=asterisk
bindaddr=0.0.0.0
srvlookup=yes
maxexpiry=600
minexpiry=60
defaultexpiry=300
qualifyfreq=55
disallow=all
allow=ulaw
allow=alaw
dtmfmode = inband
alwaysauthreject = yes
t1min=100
timert1=500
timerb=16000
rtptimeout=600
rtpkeepalive=30
useragent=PBX
localnet=192.168.0.0/16
localnet=10.0.0.0/8
localnet=172.16.0.0/12
nat=yes
directmedia=no
sipdebug=no

registertimeout=20
registerattempts=10

#include sip_registrations.conf

[authentication]

#include sip_peers.conf
#include sip_users.conf

sip_users.conf
[201]
type=friend
host=dynamic
secret=201
context=local
dtmfmode=rfc2833

[202]
type=friend
host=dynamic
secret=202
context=local
dtmfmode=rfc2833

[203]
type=friend
host=dynamic
secret=203
context=local
dtmfmode=rfc2833

[204]
type=friend
host=dynamic
secret=204
context=local
dtmfmode=rfc2833

[ast3]
type=friend
secret=pwg1101
host=dynamic
username=ast3
disallow=all
allow=ulaw
allow=alaw
context=local


sip_peers.conf
[AST218]
type=friend
username=AST218
secret=hsR906
host=172.16.203.218
fromuser=AST218
context=local
dtmfmode=rfc2833
insecure=very
disallow=all
allow=ulaw
allow=alaw

extensions.conf
[general]
static = yes
writeprotect = yes
clearglobalvars = no

[globals]
RINGTIME => 30

[default]

[context-user-hangup-call-context]
exten =>   s,1,Hangup()
exten => _X.,1,Hangup()

[context-catch-all]
exten   => _[!-~].,1,Dial(SIP/${EXTEN},60,r)

#include extensions_default.conf
#include extensions_voicemail.conf
#include extensions_incoming.conf
#include extensions_incoming_gtalk.conf
#include extensions_blacklist.conf
#include extensions_callthrough.conf
#include extensions_user.conf


extensions_user.conf
[local]
;exten => _9XXXX.,1,Set(CALLERID(num)=31332015)
exten => _9XXXX.,1,Dial(SIP/AST218/${EXTEN:1},60)

exten => _1XX,1,Dial(sip/AST218/${EXTEN},40)

exten => 201,1,Dial(sip/201)
exten => 202,1,Dial(sip/202)
exten => 203,1,Dial(sip/203)
exten => 204,1,Dial(sip/204)
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-19 09:14 | 显示全部楼层
本帖最后由 zhangxiyi5277 于 2016-10-19 09:17 编辑

很多安卓系统自带客户端,,,在电话设置,里面 有个互联网电话。上次在我家的移动宽带  好不容易拿到了公网ip,然后在op上撞了下,配置了下,,跟马来西亚的一朋友通话,,不错不错的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-19 09:15 | 显示全部楼层
弄个gsm网关配上,噢耶。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-19 09:16 | 显示全部楼层
然而我虚商几分钱一分钟的全国 跑的话费,,,唉
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-19 11:12 来自手机 | 显示全部楼层
改天电脑看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-10-20 14:28 | 显示全部楼层
...图有点少啊~

点评

直接用conf文件配置啊  详情 回复 发表于 2016-10-20 14:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-10-20 14:55 | 显示全部楼层

直接用conf文件配置啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-10-23 16:28 | 显示全部楼层
可以装个虚拟机,出国时打电话回家就不要钱了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-4-13 22:00 | 显示全部楼层
家里的电话也是epon接出来的,里面用的也是sip方法。关键是怎么把密码弄出来

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

我已经弄出来了,用光猫超级密码去查,光猫型号不同,方法不同,我是中兴f612.  详情 回复 发表于 2017-5-15 14:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-5-13 17:05 | 显示全部楼层
主要还是通过电讯基站没法监听你的手机电话。也不需要像祁同伟同志那样冒着imei号被查的风险销毁sim卡。
就像微信不是不能查,而是你要去腾讯查,而如果服务器在自己的路由器上,至少也要先过你设置的防火墙
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 01:25

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表