...
If you want all outgoing calls to have the same caller id (typically true if all or most users do not have a DID so incoming calls go to a single 'main' number), then you can associate the number you want with the gateway.
...
If you have users who have individual Direct Inward Dial (DID) numbers, and those users' extensions can be mapped to the DID numbers using some pattern, then you can configure the pattern once at the gateway. To do this transformation, check the 'Transform extension' checkbox, and then set the following two fields:
...