CiscoPhones-->AsteriskA-->WAN-->AsteriskB-->PSTN

Hi Everyone,

My current working setup is:
CiscoPhones–>WAN Link–>AsteriskB–>PSTN

I am planning to install a new Asterisk server at remote location for better reasons.

My proposed setup is:
CiscoPhones–>AsteriskA–>WAN Link–>AsteriskB–>PSTN

I purchased G729A licenses and installed on AsteriskB. Do i need to have G729 also for AsteriskA? Is there a way i can avoid purchasing codecs again? i cannot have ulaw running over my WAN for bandwidth reasons.

Please suggest.

Thanks
Sekhar.