Samuel Osorio Calvo wrote:
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...
Yes, but if you have 2 aliases: 1. sip:a@a -> sip:a@a 2. sip:a@a -> sip:number@gateway
this should work - once I had misconfiured my aliases in this way and behave like this. Nevertheless, using a permanent entry in the location table is a much cleaner approach.
regards, klaus