I have the following tested and working:
(<61:>xxxxxxxx):aa($1)}
when a caller calls the PTSN line and hangs up after one ring, The caller id is transformed by the digit map and is the number is called back without the 61( only if it starts with 61)
For example if a cell phone calls in its caller id will show up as 6130480754
and the call back number used will be 3048 0754. The above rule will match the starting digits of 61 then strip them off. (This is needed so the AA can return a local call on the PSTN Line) THIS IS WORKING PERFECTLY!
For an auto call back from the AA on the PTSN line for an out of state call , the call needs to be handled in a very different way. Now the two digit area code needs to be kept, and additionally appended, with 041
I believe this rule will do this for any number that does not start with 61.
(<041>([1-5789][02-9]xxxxxxxx)
My Question is how to correctly combine these two rules?
This is my guess ( But I am not sure if I have the parentheses correct):
{(<041>([1-5789][02-9]xxxxxxxx)|(<61:>xxxxxxxx)):aa($1)}
It Is very hard for me to test this in Brazil because of the time difference and the difficulty in reaching people to have them call...
Any Help will be appreciated
Larry