Hi,
I'm not sure, but I think you can handle it this
way. You can add an
alias sip:mobilenumber@gateway to the user, and an alias to itself.
Then, after lookup(alias) you will have 2 brachnes, the original one and
the mobilenumber@gateway. Then, lookup(location) will add the branches
from the location table.
Unfortunately, I think it won't work because the first lookup (in aliases) will
rewrite the first contact as Req-URI and the second binding will be added as an extra
branch.
When you make the second lookup (in location), only the Req-URI is checked in the location
table (which is the one rewritten by the first lookup), loosing the branch obtained in the
first lookup (aliases).
Please, correct me if I'm wrong...
Samuel.
Unclassified.