返回列表 發帖

Asterisk 11 + Multiple Google Voice accounts

本帖最後由 角色 於 2012-11-27 21:46 編輯

In order to simplify the following discussion, please follow the procedures when you set up multiple Google Voice accounts.

Google's talk service operates on port 5222; port=5222

1. Installation of Asterisk 11 from a tarball zipped source code

2. backup the files sip.conf, extensions.conf, extensions.ael, motif.conf and xmpp.conf and followed by empty these files.

3. sip.conf contains
  1. [general]

  2. bindport=5080
  3. bindaddr=192.168.1.6
  4. srvlookup = yes

  5. ;nat=force_rport,comedia
  6. nat=no

  7. [2001]
  8. type=friend
  9. secret=2001
  10. qualify=yes
  11. host=dynamic
  12. canreinvit=no
  13. context=internal

  14. [2002]
  15. type=friend
  16. secret=2002
  17. qualify=yes
  18. host=dynamic
  19. canreinvit=no
  20. context=internal
複製代碼
4. extensions.conf contains:
  1. [viaMotif]
  2. exten => _747XXXXXXXXXX,1,Dial(Motif/google1/+1${EXTEN:3}@voice.google.com,,r)
  3. exten => _748XXXXXXXXXX,1,Dial(Motif/google2/+1${EXTEN:3}@voice.google.com,,r)

  4. [internal]
  5. include => viaMotif

  6. exten => 2001,1,Dial(SIP/2001,,r)
  7. exten => 2002,1,Dial(SIP/2002,,r)

  8. ;Echo Test
  9. exten => 15,1,Playback(demo-echotest)
  10. exten => 15,n,Echo
  11. exten => 15,n,Playback(demo-echodone)


  12. [incoming-motif1]
  13. exten => s,1,NoOp()
  14. same => n,Wait(1)
  15. same => n,Answer()
  16. same => n,SendDTMF(1)
  17. same => n,Dial(SIP/2001,20)

  18. [incoming-motif2]
  19. exten => s,1,NoOp()
  20. same => n,Wait(1)
  21. same => n,Answer()
  22. same => n,SendDTMF(1)
  23. same => n,Dial(SIP/2002,20)
複製代碼
5. xmpp.conf contains
  1. [general]

  2. [google1]
  3. type=client
  4. serverhost=talk.google.com
  5. username=gv1@gmail.com
  6. secret=password_gv1
  7. priority=1
  8. port=5222
  9. usetls=yes
  10. usesasl=yes
  11. status=available
  12. statusmessage="I am available"
  13. timeout=5

  14. [google2]
  15. type=client
  16. serverhost=talk.google.com
  17. username=gv2@gmail.com
  18. secret=password_gv2
  19. priority=1
  20. port=5222
  21. usetls=yes
  22. usesasl=yes
  23. status=available
  24. statusmessage="I am available"
  25. timeout=5
複製代碼
6. motif contains
  1. [google1]
  2. context=incoming-motif1
  3. disallow=all
  4. allow=ulaw
  5. connection=google1

  6. [google2]
  7. context=incoming-motif2
  8. disallow=all
  9. allow=ulaw
  10. connection=google2
複製代碼
Outbound:
Prefix=747 + <9-digit US/CAN number> using GV1 account
Prefix=748 + <9-digit US/CAN number> using GV2 account

Inbound:
incoming call to GV1 to be picked up by extension 2001
incoming call to GV2 to be picked up by extension 2002

Extension 15 is used for Echo Test.

It was very strange, I was able to carry out Echo Test on each extension but there were voice problem when they were talked to each other.

TOP

In the previous Asterisk 1.8 (LTS), it sometimes missed incoming calls. Now with Asterisk 11 with new Motif Jabber channel driver, this missed call problem was fixed.

TOP

现在用了Asterisk 11安装Google Voice超爽!!!!以前打入的问题现在全没有!

TOP

Multiple Google Voice 我也成功設定好了。

TOP

是否与我不同呢?

TOP

GV昨天都是好好,但是过了一天就要restart个Asterisk才能恢复正常使用。

TOP

本帖最後由 角色 於 2012-11-8 07:34 編輯

今天一大早,测试一个我两个GV accounts,第一没有问题,可以打入,但是第二个就不行!不知道是否什么问题。

要restart过后,不行的那一个才能接入电话。

可能要多几个Version后,其他主要的bugs才能找出来。

TOP

回復 8# 角色


    I think there are more bugs than expected

TOP

但我仍然未有這些問題。

TOP

回復 10# bubblestar


你的 GV account 可能經常使用,所以佢地當你係美國佬

TOP

今天我的GV2没有问题,而问题出自GV1。

又要reboot Asterisk 11。

TOP

I believe that the problem of failure in one of my two GV accounts is due to problem of Asterisk 11. However I do not know how to report this using Asterisk ticket. If you know, please let me know it. Thank you.

TOP

謝謝角色兄.

我跟這個, 成功設定了2個GV射向2個不同的ATA. 打出打入戶打

TOP

不知道打入是否有问题呢?我以前的Asterisk 11,久不久就有打入来,callee没有反应,而caller那边就听到振铃,而没有接电话。

TOP

返回列表