[Serusers] caller==callee
Java Rockx
javarockx at yahoo.com
Tue Jan 18 21:20:22 CET 2005
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 at 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 at yahoo.it
>
> _______________________________________________
> Serusers mailing list
> serusers at 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
More information about the sr-users
mailing list