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 [EMAIL PROTECTED]
309 does not answer
Go to failure_route to write [EMAIL PROTECTED]
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:[EMAIL PROTECTED];transport=udp> for Call forward on Busy 14(30345) AVP inserted: r-uri <sip:[EMAIL PROTECTED]> for Call forward on Busy 6(30329) AVP found for r-uri <sip:[EMAIL PROTECTED]> for Call forward on Busy
14(30345) R-uri <sip:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
 Tel: +39-0461-408400ext:308
 www.create-net.it
=======================================

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to