Hi Dave
Thx for the answer. I am trying avpops module for failure_route with serial
forking directive with usr_preferences table. But i am getting several
issues with it. Here are the logs and part of my ser.cfg
fork=yes
modparam("avpops","avp_url","mysql://root:root@localhost/ser")
modparam("avpops","avp_table","usr_preferences")
modparam("avpops","avp_aliases","serial_fork1=i:665")
modparam("avpops","uuid_column","uuid")
modparam("avpops","username_column","username")
modparam("avpops","domain_column","domain")
modparam("avpops","attribute_column","attribute")
modparam("avpops","value_column","value")
modparam("avpops","type_column","type")
route {
...........
append_hf("P-hint: usrloc applied\r\n");
avp_write("sip:101@192.168.1.1", "$serial_fork1");
avp_write("sip:102@192.168.1.1", "$serial_fork1");
avp_write("sip:103@192.168.1.1", "$serial_fork1");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
# intercept failure replies
t_on_failure("2");
if (!t_relay()) {
sl_reply_error();
};
}
failure_route[2]
{
# use the first element of the list (if any) and delete it from list
if (avp_pushto("$ruri", "$serial_fork1"))
{
append_branch();
avp_delete("$serial_fork1");
t_on_failure("2");
t_relay();
}
}
But i am getting several issues. I have three UA's set 101,102,103. I am
calling from some other domain on 100 which is aliased to 101. I expect that
if 101 is free call shud come to it. Thats not happening. Then if 101 and
102 are busy or some other issue. call should reach last UA. I didn't get
any proper example to add AVP's to usr_preferences table. Can you give me
some example for it.
From: Dave <ddx66(a)yahoo.com>
To: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Call Hunting
Date: Tue, 31 May 2005 08:30:54 -0700 (PDT)
Yes it is. You need to use the AVPOPS module and the
failure_route directive to make it happen. Look at the
avpops docs and in there you will see an example
Dave
--- Kapil Dhawan <sersavvy(a)hotmail.com> wrote:
Hi List
Is it possible to do Call Hunting with SER.
_________________________________________________________________
Adore Arshad Warsi?
http://server1.msn.co.in/sp05/iifa/ Think he is the
funniest?
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
__________________________________
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________
Think Rani is the best?
http://server1.msn.co.in/sp05/iifa/ Make sure she
wins the award.