Hi,
It depends on how the setup is. There are multiple ways to do it:
1. External phone number Mask: You can populate the external phone number mask under the agent DN as the main pilot number and on the route pattern/route list check "Use Calling Party's External Phone Number Mask"
2. Translation Rules: You can use the voice translation rules on the gateway to mask the agent extensions with main line number. For example if the agent extensions are 4 digit between 2000 and 2999 then you can create a rule:
Voice translation rule 1
rule 1 /^2\(...\)/ /2224446666/
3. You can also mask the Calling Party Transform Mask under route pattern or route list with the main line number.
Aseem
(Please rate if useful)