On Tue, 5 Oct 2004, Bogdan-Andrei IANCU wrote:
Hi Marian,
Thanks for the reply. You're right on the code snippet that you've
sent. That's exactly what I want :). But what I'm thinking if it's
possible to do it via the dbase? Because I'm afraid this won't scale if
the number of domains grow and need to restart ser everytime I add a
domain.
Now what I'm thinking is to create aliases for each of the entries I
have. Do you think that's a good idea? Or any better solution?
thanks.
Hi,
is this what you want to do?
if ( uri=~"sip:.*@domain1" ) {
prefix("111");
} else if (......) {
......
}
for revert operation (prefix->domain translation) there is already a
module (pdt). But afaik not for what you want.
regards,
Marian
kcassidy(a)kakelma.mine.nu wrote:
Hi All,
Is it possible to add a prefix to a uri based on domain? I'm trying to
play around with multiple domains and I want users under the same domain
to dial only a few numbers to get in touch with each other (ala pabx).
Any hints?
TIA
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers