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)
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@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@yahoo.it
Serusers mailing list serusers@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
With the module avpops, you can try this,
avp_write("$ruri","s:ruri_addr");
if (avp_check("s:ruri_addr","eq/$from/i")) { ... }
Richard
-----Original Message----- From: serusers-bounces@iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Giovanni Balasso Sent: Tuesday, January 18, 2005 9:53 AM To: serusers@lists.iptel.org Subject: [Serusers] caller==callee
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@yahoo.it
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers