QuoteI'm trying to learn.
You want to learn, so here is the whole process.
1st this is how the AA processes a normal (non-callback) call.
After you select 2 and enter an outbound number the AA does:
Validates the number using the AA DigitMap
Routes the call using the AA outbound route.
For a callback the AA hacks its own process.
$1 is a variable that contains the inbound callerid.
The AA sends "00" to the AA DigitMap.
Rule <00:$1> in the DigitMap replaces 00 with the callerid
Now the AA outbound route receives the callerid as the dialed number.
When you do this to route the call to the aa:
{(<**1>(x.1234567890|x.2345678901)):aa($1)}
You prepend the callerid with "**1" before it's sent to the AA.
The AA outbound call route will use rule {(<**1:>(Msp1)):sp1} to route the call to SP1.
When you do this to route the call to the aa:
{(x.1234567890|x.2345678901):aa($1)}
The callerid is sent unchanged to the AA.
The AA outbound call route will use rule {(Mpli):pli} to route the call to route the call.
pli points to the AA Primary Line.
If the AA Primary Line is set to SP1 (Default) the callback will use SP1.
I don't know why removing "<**1>" didn't work for you unless the AA Primary Line wasn't set to SP1.
Note: The AA Primary Line and the Phone Port Primary Line can be different.