Board logo

標題: 【角色茶桌】—— Asterisk 1.8 Google Voice Incoming问题 [打印本頁]

作者: 角色    時間: 2011-9-25 09:31     標題: 【角色茶桌】—— Asterisk 1.8 Google Voice Incoming问题

因为Google Voice的来电会问你是否愿意接受来电,如果想得话请按1号键,还有GV的进入要用public或者用default channel,而没有特等的channel,这样做成有些不便。

; * This extension is where any external SIP calls should route to
[default]
exten => s,1,Dial(SIP/2002,20,D(:1))

不知道大家是否能想其他VoIP公司一样,在注册的时候,有incoming trunk指向?


角色
作者: bubblestar    時間: 2011-9-25 15:27

若不想多此一舉地先選擇option 1 或 2,可以考用這個方式,自動送出option 1 後直接接聽。

exten => s,1,SendDTMF(1)
same => n,Dial(SIP/2002,30)
作者: 角色    時間: 2011-9-25 16:55

本帖最後由 角色 於 2011-9-25 16:59 編輯

现在问题是,如果你需要每次都听GV发过来的message,用下面的command

extern => 1,Dial(SIP/2000,30)

理论上,你每次都会听到GV发过来的Voice Message,但是由于你的Pickup phone signal,没有被GV识别出来(中间传送出了问题,究竟问题在哪里呢?),那么你在等GV发过来的声音,而Caller只听到ringing,大家都是一个等字。

MT说,没有在FreeSwitch和OBi1xx的device听到,那么问题出自Asterisk 1.8本身就非常大。
http://pbxinaflash.com/forum/sho ... 41&postcount=57

角色
作者: ckleea    時間: 2011-9-25 17:05

本帖最後由 ckleea 於 2011-9-27 21:18 編輯

回復 3# 角色
Try this
  1. [from-GV]                                               
  2. ;exten => _[@Xa-z].,1,Noop(Incoming Google Voice call for ${EXTEN})
  3. ;exten => _[@Xa-z].,n,Set(CALLERID(number)=${CALLERID(name):2:10})        ; make known of the calling party
  4. ;exten => _[@Xa-z].,n,Set(CALLERID(name)=${CALLERID(number)})
  5. ;exten => _[@Xa-z].,n,Answer()
  6. ;exten => _[@Xa-z].,n,Wait(2)
  7. ;exten => _[@Xa-z].,n,SendDTMF(1)
  8. ;exten => _[@Xa-z].,n,Dial(Local/900xxxxxx&SIP/9xxxxxxxx@hkbn2b)
  9. ;exten => h,1,Hangup()

  10. exten => account1@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
  11. exten => account1@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
  12. exten => account1@gmail.com,n,Answer()
  13. exten => account1@gmail.com,n,Wait(2)
  14. exten => account1@gmail.com,n,SendDTMF(1)
  15. exten => account1@gmail.com,n,Dial(LOCAL/6100,60,r)

  16. exten => account2@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
  17. exten => account2@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
  18. exten => account2@gmail.com,n,Answer()
  19. exten => account2@gmail.com,n,Wait(2)
  20. exten => account2@gmail.com,n,SendDTMF(1)
  21. exten => account2@gmail.com,n,Dial(LOCAL/6100,60,r)

  22. exten => account3@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
  23. exten => account3@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
  24. exten => account3@gmail.com,n,Answer()
  25. exten => account3@gmail.com,n,Wait(2)
  26. exten => account3@gmail.com,n,SendDTMF(1)
  27. exten => account3@gmail.com,n,Dial(LOCAL/6100,60,r)

  28. exten => account4@gmail.com,1,Set(CALLERID(number)=${CALLERID(name):2:10})
  29. exten => account4@gmail.com,n,Set(CALLERID(name)=${CALLERID(number)})
  30. exten => account4@gmail.com,n,Answer()
  31. exten => account4@gmail.com,n,Wait(2)
  32. exten => account4@gmail.com,n,SendDTMF(1)
  33. exten => account4@gmail.com,n,Dial(LOCAL/2006,60,r)
複製代碼

作者: 角色    時間: 2011-9-25 17:23

May I have a look at your files gtalk.conf and jabber.conf for completeness?

YH
作者: 角色    時間: 2011-9-25 17:24

回復 4# ckleea

How can we set the incoming context [from-GV] in either jabber.conf or/and gtalk.conf?

YH
作者: ckleea    時間: 2011-9-25 17:35

本帖最後由 ckleea 於 2011-9-25 20:47 編輯

Gtalk.conf
  1. ;!
  2. ;! Automatically generated configuration file
  3. ;! Filename: gtalk.conf (/etc/asterisk/gtalk.conf)
  4. ;! Generator: Manager
  5. ;! Creation Date: Tue May 17 20:26:29 2011
  6. ;!
  7. [general]
  8. allowguests = yes
  9. bindaddr = 0.0.0.0
  10. externhost = xxx.xxxx.xxxx
  11. allowguest = no
  12. ; Optional arguments
  13. ; externip=<external IP of server>
  14. ; stunaddr=stun.yourdomain.tld

  15. [guest]
  16. disallow = all
  17. allow = ulaw
  18. allow = alaw
  19. context = from-GV
  20. connection = asterisk
複製代碼

作者: 角色    時間: 2011-9-25 17:52

Many thanks。

YH
作者: 角色    時間: 2011-9-26 07:23

回復 7# ckleea

With the context = from-GV, now the incoming call from GV can be separately directed to the one that want instead of the general/public entry of "s".

YH
作者: ckleea    時間: 2011-9-26 08:10

回復 9# 角色


   That is the trick. Enjoy
作者: 角色    時間: 2011-9-26 08:54

I would like to have a complete example for Asterisk 1.8 + Multiple GV accounts including the configurations in gtalk.conf jabber.conf, sip.conf, users.conf, and extensions.conf such that we may refer them whenever needed. Also it would provide a very good reference to other people who would like to do the same task since there are not many examples showing the GV incoming task.

YH
作者: 角色    時間: 2011-9-27 00:53

The GV incoming problem has already been solved. For details, please take a look at the following thread: http://www.telecom-cafe.com/foru ... &extra=page%3D1

YH




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2