Asterisk

無法使用星號和Google語音撥打電話

  • June 23, 2018

我無法使用星號和Google語音撥打或接聽電話。我記得幾年前使用過這個設置,所以我希望它應該可以工作,但只需要一個非常微妙的調整。

我可以看到我已連接:

*CLI> xmpp show connections
Jabber Users and their status:
      [xx] xx@gmail.com     - Connected
----
  Number of clients: 1

在詳細模式下使用星號,這是我得到的輸出:

*CLI>   == Using SIP RTP CoS mark 5
      > 0x7ff3b40073a0 -- Strict RTP learning after remote address set to: 192.168.1.15:4010
   -- Executing [18008008000@xx-google-out:1] Dial("SIP/xx-00000000", "Motif/xx/+18008008000@voice.google.com,,r") in new stack
   -- Called Motif/xx/+18008008000@voice.google.com
   -- Motif/+18008008000@voice.google.com-d60e is proceeding passing it to SIP/xx-00000000
 == Everyone is busy/congested at this time (1:0/0/1)
   -- Auto fallthrough, channel 'SIP/xx-00000000' status is 'CHANUNAVAIL'
 == Using SIP RTP CoS mark 5
      > 0x7ff3b4000910 -- Strict RTP learning after remote address set to: 192.168.1.15:4012
   -- Executing [18008008000@xx-google-out:1] Dial("SIP/xx-00000001", "Motif/xx/+18008008000@voice.google.com,,r") in new stack
   -- Called Motif/xx/+18008008000@voice.google.com
   -- Motif/+18008008000@voice.google.com-dce1 is proceeding passing it to SIP/xx-00000001
 == Everyone is busy/congested at this time (1:0/0/1)
   -- Auto fallthrough, channel 'SIP/xx-00000001' status is 'CHANUNAVAIL'
      > Saved useragent "CSipSimple_achill-22/r2457" for peer xx

extensions.conf:

[general]
static=yes
;writeprotect=no

; added from forum ...
writeprotect=yes

priorityjumping=no
autofallthrough=yes

[global]
;DIALOUT=9
;RINGTIME=30

[default]
include => xx-google-out
include => xx-google-in

;https://wiki.asterisk.org/wiki/display/AST/Calling+using+Google

[xx-google-out]
;exten => _1XXXXXXXXXX,1,Dial(Motif/xx/${EXTEN}@voice.google.com,,r)
;exten => _XXXXXXXXXX,1,Dial(Motif/xx/${EXTEN}@voice.google.com,,r)
;exten => _+1XXXXXXXXXX,1,Dial(Motif/xx/${EXTEN}@voice.google.com,,r)
exten => _1XXXXXXXXXX,1,Dial(Motif/xx/+${EXTEN}@voice.google.com,,r)


[xx-google-in]
exten => s,1,NoOp()
same => n,Set(crazygooglecid=${CALLERID(name)})
same => n,Set(stripcrazysuffix=${CUT(crazygooglecid,@,1)})
same => n,Set(CALLERID(all)=${stripcrazysuffix})
same => n,Dial(SIP/xx,20,D(:1))

模組.conf

[modules]
autoload=yes

;#load => chan_motif.so
;#load => res_xmpp.so

模式.conf:

[xx]
context=xx-google-in
disallow=all
allow=ulaw,g722
connection=xx

rtp.conf:

[general]
; specify start and end port range so firewall rules are easier to write
rtpstart=10000
rtpend=20000
icesupport=yes

sip.conf:

[xx]
allow=all
allowguest=no
type=peer
secret=SECRETGOESHERE
host=dynamic
context=xx-google-out

xmpp.conf:

[general]
[xx]
type=client
serverhost=talk.google.com
username=xx@gmail.com
secret=SECRETGOESHERE
priority=25
port=5222
usetls=yes
usesasl=yes
status=available
statusmessage=Asterisk Instance - Google Talk - VoIP
timeout=5

asterik 與 Google Voice 的集成已經在 Google 中逐漸失寵了一段時間。第三方 XMPP 自 2014-2015 年以來一直沒有得到官方支持,剩下的舊實現現在已經停用。

來自Google 語音幫助論壇

關於 XMPP 互操作功能的更新

de Aaron G. - 產品支持經理 28/04

從 2018 年 6 月 18 日開始,我們將完成將 Google Voice 的最後一個 XMPP 互操作功能遷移到新的 Voice 平台。這種遷移將使我們能夠創建強大的新 VoIP 功能,這些功能將使語音使用者受益並取悅語音使用者。

如果您將 Google Voice 與使用 XMPP 互操作功能的受支持設備一起使用,請聯繫您的供應商以確定最佳遷移路徑以避免服務中斷。

引用自:https://unix.stackexchange.com/questions/451411