amygrant
Guru
- Joined
- Apr 4, 2010
- Messages
- 132
- Reaction score
- 3
Due to the great work done by others integrating gvoice into xivo,I started playing around with a multi-tenant xivo setup.
I love the "entities" aspect of xivo. It is very intuitive and works great for tenancy. Out of the box, the piaf xivo iso lets me get up and running with a multi-tenant setup involving trunks from sip providers such as vitelity.
I then started adding some backup googlevoice trunks which went off pretty easy but ran into a problem with inbound calls.
The script add-gvtrunk to add a googlevoice number adds code to /etc/asterisk/extensions_extra.d/gv.conf:
The problem comes from the "from-extern" name for the default context which is automatically generated inside the line "same = n,Goto(from-extern,${GV_DID},1)".
All you have to do is manually modify the context name to match whatever you are using for the relevant tenant entity and it works swimmingly!
Not sure if this will help anyone but I figured I would add my problem/solution I had in case someone experiences the same.
I love the "entities" aspect of xivo. It is very intuitive and works great for tenancy. Out of the box, the piaf xivo iso lets me get up and running with a multi-tenant setup involving trunks from sip providers such as vitelity.
I then started adding some backup googlevoice trunks which went off pretty easy but ran into a problem with inbound calls.
The script add-gvtrunk to add a googlevoice number adds code to /etc/asterisk/extensions_extra.d/gv.conf:
Code:
exten = s,1,Set(XIVO_CALLOPTIONS=r)
same = n,Return()
;# // BEGIN gvusername
[from_gvusername]
exten = s,1,NoOp()
same = n,Set(GV_DID=*10DIGITS*)
same = n,Set(crazygooglecid=${CALLERID(name)})
same = n,Set(stripcrazysuffix=${CUT(crazygooglecid,@,1)})
same = n,Set(CALLERID(all)=${stripcrazysuffix:2})
same = n,Wait(1)
same = n,Answer()
same = n,SendDTMF(1)
same = n,Goto(from-extern,${GV_DID},1)
;# // END gvusername
The problem comes from the "from-extern" name for the default context which is automatically generated inside the line "same = n,Goto(from-extern,${GV_DID},1)".
All you have to do is manually modify the context name to match whatever you are using for the relevant tenant entity and it works swimmingly!
Not sure if this will help anyone but I figured I would add my problem/solution I had in case someone experiences the same.