Hi,
I want to realize a serial fork. With the function avp_db_load() I load
the addresses to forward the call and the function avp_pushto() rewrites
the address. I have this problem (see the debug output):
I try to call 309(a)192.168.9.97
309 does not answer
Go to failure_route to write 400(a)192.168.9.97
The problem is that it comes executed another time avp_db_load(), and I
don't understand why the voicemail is executed two times.
Thank's for all!
7(30331) AVP found for r-uri <sip:309@192.168.9.131;transport=udp> for
Call forward on Busy
14(30345) AVP inserted: r-uri <sip:400@192.168.9.97> for Call forward on
Busy
6(30329) AVP found for r-uri <sip:400@192.168.9.193> for Call forward
on Busy
14(30345) R-uri <sip:309@192.168.9.97> for VoiceMail
14(30345) ERROR:tm:t_forward_nonack: no branch for forwarding
14(30345) ERROR: w_t_relay_to: t_relay_to failed
14(30345) R-uri <sip:309@192.168.9.97> for VoiceMail
14(30345) ERROR:tm:t_forward_nonack: no branch for forwarding
14(30345) ERROR: w_t_relay_to: t_relay_to failed
9(30335) AVP found for r-uri <sip:400@192.168.9.193> for Call forward
on Busy
9(30335) ERROR: t_newtran: transaction already in process 0xb5da3d88
6(30329) ERROR:tm:t_should_relay_response: status rewrite by UAS:
stored: 408, received: 200
9(30335) ERROR: sl_reply_error used: I'm terribly sorry, server error
occurred (1/SL)
6(30329) ERROR:tm:t_should_relay_response: status rewrite by UAS:
stored: 408, received: 200
route{
..................
if (avp_db_load("$ruri","")) {
xlog ("L_ERR", "AVP found for r-uri <$ru> for Call forward on
Busy\n");
}
t_on_failure("1");
..........
}
failure_route[1] {
if (avp_pushto("$ruri", "s:fwdbusy")) {
xlog ("L_ERR", "AVP inserted: r-uri <$ru> for Call forward on
Busy\n");
avp_delete("s:fwdbusy");
append_branch();
t_relay();
t_on_failure("1");
}
else{
avp_pushto("$ruri","s:voicemail");
xlog ("L_ERR", "R-uri <$ru> for VoiceMail\n");
rewritehostport("192.168.9.97:5061");
append_branch();
t_relay_to_udp("192.168.9.97","5061");
t_relay();
}
=======================================
Matteo Piazza, Junior Researcher
CREATE-NET
Via Solteri, 38 - 38100 Trento - Italy
email: matteo.piazza(a)create-net.it
Tel: +39-0461-408400ext:308
www.create-net.it
=======================================