中華電信SIP-TRUNK設定

5,301 views
Skip to first unread message

Ishtar Lin

unread,
Jan 12, 2016, 10:04:45 PM1/12/16
to Taiwan Asterisk Users' Group - www.osslab.com.tw
最近公司採用中華電信的IP-CENTREX

中華電信僅提供以下資訊:
PBX設定:IP、GATEWAY、NETMASK
連線主機
帳號

可是未提供任何的其他細部設定,


在PBX->PBX Configuration->Trunks->SIP-TRUNK設定如下:
PEER DETAILS
type=friend
context=from-trunk
host=192.168.X.X
nat=yes
qualify=5000
canreinvite=no
dtmfmode=rfc2833
rfc2833compensate=yes
trustrpid=yes
disallow=all
allow=ulaw
username=886XXXXXXXX
fromuser=+886XXXXXXXX
fromdomain=XXXX.cht.com.tw

SIP-TRUNK看起來是有連線的
Name/username             Host                                    Dyn Forcerport Comedia    ACL Port     Status      Description
2222/2222                 (Unspecified)                            D  No         No          A  0        UNKNOWN
cht                       192.168.251.4                               Yes        Yes            5060     OK (63 ms)

但是不管我是撥出或是撥入都會聽到英文語音@@
有人有試過和中華電信的SIP TURNK對連嗎?不透過CS201

A-Lang Hsu, Asterisk/Linux/IT Expert, OSSLab Co-Founder

unread,
Jan 13, 2016, 3:43:09 AM1/13/16
to Asterisk/Elastix User Group in Taiwan - OSSLab.com.tw
我建議可以先從軟體電話做撥號及連線測試,只要對方系統是標準 SIP 而且沒有綁定特別的參數,應該是可以讓 Asterisk 連接。

至於 Asterisk 上的 Trunk 設定,可以從最基本必要的參數開始試,測不通時再一一加上其他參數看看。

我沒用過中華電信的 SIP 甚至不知道他們也有,我以為中華電信會用是方的系統,畢竟是他們轉投資的公司。



--
You received this message because you are subscribed to the Google Groups "Taiwan Asterisk Users' Group - www.osslab.com.tw" group.
To unsubscribe from this group and stop receiving emails from it, send an email to asterisk-tw...@googlegroups.com.
To post to this group, send email to aster...@googlegroups.com.
Visit this group at https://groups.google.com/group/asterisk-tw.
For more options, visit https://groups.google.com/d/optout.

Ishtar Lin

unread,
Jan 14, 2016, 1:47:19 AM1/14/16
to Taiwan Asterisk Users' Group - www.osslab.com.tw
目前測到是可以撥入了,但是很奇怪的問題是無法撥出
根據中華電信的說法,是我們沒有帶INVITE出去
可是有關invite的我都開了...

type=friend
context=from-trunk
host=192.168.X.X
qualify=5000
canreinvite=yes
trustrpid=yes
insecure=very
disallow=all
allow=ulaw
username=+866XXXXXXXX
fromuser=+886
XXXXXXXX
fromdomain=cht.com
invite=cht.com


A.Lang(WebAdmin)於 2016年1月13日星期三 UTC+8下午4時43分09秒寫道:

展帆 Fullsail

unread,
Apr 11, 2016, 12:56:40 AM4/11/16
to Taiwan Asterisk Users' Group - www.osslab.com.tw
你好
我是用中華電信SIP TRUNK
設定內容為
host=192.168.255.186
username=886978*****5...@ims.emome.net
type=peer
fromdomain=ims.emome.net
fromuser=886978*****5

這樣即能發話,但受話會變單通,目前設法處理中


Ishtar Lin於 2016年1月13日星期三 UTC+8上午11時04分45秒寫道:

Ishtar Lin

unread,
Apr 13, 2016, 11:32:23 AM4/13/16
to Taiwan Asterisk Users' Group - www.osslab.com.tw
hi, type有分peer:只能打、user:只能接、friend:能接能打

以下是我最終的SIP TRUNK設定
type=friend
context=from-trunk
host=ims1.cht.com.tw
qualify=5000
canreinvite=yes
trustrpid=yes
disallow=all
allow=ulaw
username=+866XXXXXXX
fromuser=+866XXXXXXX
fromdomain=ims1.cht.com.tw
insecure=port,invite
invite=ims1.cht.com.tw

展帆 Fullsail於 2016年4月11日星期一 UTC+8下午12時56分40秒寫道:

A-Lang Hsu, Asterisk/Linux/IT Expert, OSSLab Co-Founder

unread,
Apr 14, 2016, 12:47:49 AM4/14/16
to Taiwan Asterisk Users' Group - www.osslab.com.tw
+86 是大陸國碼,台灣是 +886

Ishtar Lin <isht...@gmail.com> 於 2016年4月13日 週三 下午11:32寫道:
--

Tiger Huang

unread,
May 22, 2016, 2:52:59 AM5/22/16
to Taiwan Asterisk Users' Group - www.osslab.com.tw
研究了幾天,終於搞定直接跟中華電信SIP Trunk了!

直接接在VTU-R上,不透過中華的FXS設備下車!

Ishtar Lin於 2016年1月13日星期三 UTC+8上午11時04分45秒寫道:
Reply all
Reply to author
Forward
0 new messages