Thank you for your advice, the change of the context works now.
I have a general question
The yate server must work as a proxy, like this
Yate get calls from different servers without registration but with authentication.
Yate has to register on another PBX
The call from the different servers comes in and will routed to the PBX where yate has registered itself.
So I made 2 accounts in accfile.conf
One account for the incomming calls without registration
[megactestin]
enabled=yes
protocol=sip
username=megactestin
description=Testaccount for Incomming
authname=megactestin
password=xxxxxxxxxxxx
One account for the registering to the PBX
[megactestout]
enabled=yes
protocol=sip
username=megactestout
description=Testaccount fuer Outgoing
interval=600
authname=megactestout
password=xxxxxxxxxxxxxx
registrar=213.69.XXX.XXX:5060
outbound=213.69.XXX.XXX:5060
For tests, I use a defined phone number range like this +4935121324241XX
In the past I worked with asterisk, but I think yate is smaller and also more performant
I configured in the file regexroute.conf the following context.
[megacall]
${called}^+4935121324241.*S=echo called is ${called}
${called}^+4935121324241.*$=sip/sip:\0@megactestout
Is this the right way ?
Many Thanks