I'm using a VoiceGateway to get from the OBI to Asterisk (FreePBX/IncrediblePBX), with a custom context.
it looks like:
Name: GV to Asterisk
Access Number: sp4(192.168.200.91)
Digit Map: (xx.)
AuthUserId: <valid ID>
AuthPassword: <valid Password>
And on SP1:
X_InboundCallRoute vg1(<GV ph# for GV1>/$1)
And on SP3:
X_InboundCallRoute vg1(GV Ph# for GV3>/$1)
then on the Asterisk side I have
defaultuser=<Valid user>
type=friend
secret=<valid password>
context=custom-from-Obihai
disallow=all
allow=ulaw
host=dynamic
dtmfmode=rfc2833
canreinvite=no
deny=0.0.0.0/0.0.0.0
permit=192.168.200.0/255.255.255.0
for the "dummy" trunk
and in extensions_custom.conf:
[custom-from-Obihai]
exten => _X!,1,Set(CALLERID(num)=${CUT(EXTEN,/,2)})
exten => _X!,n,Set(CALLERID(ani)=${CALLERID(num)})
exten => _X!,n,Goto(from-trunk,${CUT(EXTEN,/,1)},1)
exten => h,1,Macro(hangupcall,)
And then inbound routes for each GV that end with it going to ext 702 (the obi's extension)
so, ideas?