The problem here is identifying the sender:
I have a trunk OCS->pbxnsip
In OCS there are different users. Each user has an extension with the same name on pbxnsip.
"Assume that call comes from user" is set to a fixed extension, all calls are accounted to the same user. However, I need different Dial Plans per User so I need to identfy the sending user.
Leaving "Assume that call comes from user" empty, pbxnsip can recognize "From: user-extension@mediation-server" as local extension and works properly (old problem solved, see above)
When call forwarding comes into play, OCS sends a "From: external-number@mediation-server" header. The numbers are completly random... For these numbers there is no local extensions, therefore error "Could not identify user"
For this to work, I need a behaviour:
if "From:" matches a known extension use this one, else "Assume that calls come from fixed extension xyz"
Do you have any idea?
Markus