hi. For the sake of a lab test i need to have my system act as a fake provider.
i need the system to have 1000 numbers, that will not route to the outside world, only in my LAN. These numbers will have the following format 0049894874000-999. I need to create some users in sip.conf (eg 8000-8099) that each user will be the trunk from a different PBX. then on each of these numbers route 10 of the aforementioned DIDs. i was thinking of the following config on the provider_asterisk, please make your comments:
` exten => 004989487400X,1,Answer() exten => 004989487400X,n,Wait(1) exten => 004989487400X,n,Dial(SIP/8000,20) exten => 004989487400X,n,Busy(3) `
and for the sip.conf
 host=dynamic type=friend user=8000 secret=8000SuperDooperPasswd call-limit=2 context=AllCalls dtmfmode=rfc2833 qualify=yes disallow=all allow=alaw allow=g729 canreinvite=no deny=0.0.0.0/0.0.0.0 permit=192.168.0.0/255.255.0.0
with that the provider_asterisk will route 10 numbers to the 8000 extension. Then on the client_asterisk they will have to register 8000 and receive all the numbers through the 8000. Same applies for all registrations of extensions from 8000-8099, then all of the 0049894874XXX block of numbers will be routable between the PBXes, right? My question is regarding call routing. PBX A has a registration of 8000 and needs to call a numbers that belongs to 8001. It dials 0049894874011 but it receives error that the number is not in the extensions.
Am i missing something? Is this the correct approach? Also i see that the call from PBX A to the provider_asterisk goes as 8000 and it does not carry any DID.