Using avpops you can do this after you call lookup("aliases")
if (method=="INVITE") {
avp_write("$from", "i:34");
if (avp_check("i:34", "eq/$ruri/i")) {
if (is_user_in("Request-URI", "voicemail")) {
route(1); # send to voicemail server
break;
} else {
sl_send_reply("486", "Busy");
break;
};
};
};
Regards,
Paul
--- Giovanni Balasso <giaso(a)yahoo.it> wrote:
Hi serusers,
I know there must be a simple way to check if callee i same uri as caller in
ser.cfg, but I can't figure it out, any ideas?
thanks a lot
(maybe a dumb question, but I'm losing my head)
--
Giovanni Balasso
giaso(a)yahoo.it
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com