Yes, something like below should do what you want.
Exten = _90.,1,Dial(ZAP/g1/7980${EXTEN:2})
_____
From: Carlos Prieto [mailto:prieto.carlos@gmail.com]
Sent: Tuesday, November 22, 2005 1:20 AM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Using Long Distance Operators
Hi !
I'm in a project of deploying an Asterisk server instead of a Panasonic
PBX on a customer.
Actually, they use a different operator from their PRI supplier for long
and international calls. In the Panasonic PBX, is saved that when a user
tries to reach a long distance number, they dial 9 (for getting dial
tone) and then they dial the number: 0XXXX.... for long distance and
00XXXX.... for international calls; in the first case, the 0 is
replaced for the operator number, we say 789, so the Panasonic really
dials: 789-0-XXXX..... for long distance calls, and 789-00-XXXX.... for
international calls. So, the users don't dial the "789".
Is there a way to implement that dial plan in the Asterisk?
Thanks in advance for the help.