返回列表 發帖
Another type of speeddial with superdial macro is

exten => 348,1,Set(GLOBAL(speeddial)=xxxxxxxxx)
exten => 348,n,Macro(superdial,SIP/133${speeddial}@hkbn2b,,m,,,1,,,,)
exten => 348,n,Macro(superdial,SIP/pstn-spa3k-d1/133${speeddial},,m,,,1,,,,)
exten => 348,n,Macro(superdial,SIP/**8133${speeddial}@obitrunk,,m,,,1,,,,)
exten => 348,n,Macro(superdial,Datacard/datacard0/133${speeddial},,m,,,1,,,,)
exten => 348,n,Macro(superdial,Dongle/dongle0/133${speeddial},,m,,,1,,,,)
exten => 348,n,Hangup()

TOP

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

Another trick:

This is to set up a remote trunk IP01 (asterisk 1.4) to dial my asterisk server (1.8) with gtalk and google voice out. The aim is to use specific GV account to dial out so that the caller ID will be correct.

In asterisk server set up a calling rule for the user at remote side

[CallingRule_usergv]
exten => _813XXXXXXXXXX,1,Dial(gtalk/user/+1${EXTEN:3}@voice.google.com)

user is set up in jabber.conf as

[user]
type = client
serverhost = talk.google.com
username = username@gmail.com/Talk
secret = password
port = 5222
usetls = yes
usesasl = yes
statusmessage = "Hi, I am user."
timeout = 100

AT IP01, since it does not have gtalk/jabber module. I have to bridge the call to my asterisk server and dial via an account belong to user i.e. maintain proper caller ID

I have a US calling rule as
exten=_001XXXXXXXXXX,1,Macro(superdial,SIP/813${EXTEN:3}@sipns,,m,,,1,,,,)
exten=_001XXXXXXXXXX,n,Macro(superdial,SIP/**1${EXTEN:2}@obitrunk,,m,,,1,,,,)
exten=_001XXXXXXXXXX,n,Hangup()

In this calling rule, when I dial a US number 0012345678900, the first line will change the number as 8132345678900 and pass to the sip trunk sipns; then my asterisk server responds and using callingrule_usergv, it then dials via a specific account as

gtalk/user/12345678900@voice.google.com

in my server CLI, I can use the call is made by user@gmail.com and hence its callerID is brought together.

TOP

返回列表