I am configuring Lync with an AudioCodes Mediant 1000 MSBG with 4 FXO ports. The location I'm currently working on has 3 POTS lines. 2 of these lines are available for anyone to use and the 3rd is restricted to one person. Currently, every users' number is in +1XXXXXXXXXX;ext=XXXXX format. Do I configure Lync, that AudioCodes gateway, or both to accomplish this?
I have updated "IP to Trunk Group" routing in the AudioCodes gateway. However, it doesn't appear to be working. The call appears to be coming from the main number for the location, rather than from the 3rd line for the restricted user, so I don't think it is matching against my rule in the gateway.
If you are considering outbound calls from Lync client, then the gateway needs to be configured in the topology builder and the topology needs to be published. You would configure voice policy, routes, pstn usages in Lync to route the call to the gateway. Once the call reaches the gateway, the gateway need to handle which line it would use to send the call out.
If you are considering inbound calls, assuming the call would be routed to one of the line by the pstn provider, it depends what the caller dialed. If the PSTN caller is calling a DID number then once it reaches the gateway, the dialing rules on the gateway will define whether the call is to be sent to Lync, the normalization rule on Lync server will determine how the callee number is formatted and then call sent to the Lync client after reverse number lookup.
If the PSTN caller is calling +1XXXXXXXXXX then you need an IVR or Autoattentdant system like Exchange UM where the call will be routed too, the IVR will ask for extension and then transfer the call to the extension.